mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Reduce ObjectStructure memory usage
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
cb31d43274
commit
ea0c2c4c82
2 changed files with 10 additions and 2 deletions
|
|
@ -4350,6 +4350,8 @@ NEVER_INLINE void ByteCodeInterpreter::setObjectOpcodeSlowCase(ExecutionState& s
|
|||
Object* obj = willBeObject.toObject(state);
|
||||
if (willBeObject.isPrimitive()) {
|
||||
obj->preventExtensions(state);
|
||||
} else {
|
||||
obj->markThisObjectDontNeedStructureTransitionTable();
|
||||
}
|
||||
bool result = obj->setIndexedProperty(state, property, registerFile[code->m_loadRegisterIndex]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue