mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Add InlineStorage for FunctionEnvironmentRecordOnHeap
for runnung octane, we should make 1.05M copies of FunctionEnvironmentRecordOnHeap. but almost copies(0.84M) of FunctionEnvironmentRecordOnHeap use under 5 heapStorage. If we inline heapStorage, we can reduce count of GC_MALLOC. Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
c7c7320f5a
commit
ba1393c8e1
4 changed files with 135 additions and 18 deletions
|
|
@ -161,7 +161,7 @@ void ScriptFunctionObject::generateArgumentsObject(ExecutionState& state, size_t
|
|||
if (v[i].m_needToAllocateOnStack) {
|
||||
stackStorage[v[i].m_indexForIndexedStorage] = newArgumentsObject;
|
||||
} else {
|
||||
environmentRecordWillArgumentsObjectBeLocatedIn->heapStorage()[v[i].m_indexForIndexedStorage] = newArgumentsObject;
|
||||
environmentRecordWillArgumentsObjectBeLocatedIn->setHeapValueByIndex(state, v[i].m_indexForIndexedStorage, newArgumentsObject);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue