Reduce ObjectStructure memory usage

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2022-10-24 10:46:45 +09:00 committed by Hyukwoo Park
commit ea0c2c4c82
2 changed files with 10 additions and 2 deletions

View file

@ -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]);