mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Binding function object in interpreter and compute required stack size early
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
b76294bcca
commit
ebf4756480
15 changed files with 105 additions and 56 deletions
|
|
@ -83,12 +83,7 @@ NEVER_INLINE void ScriptFunctionObject::generateByteCodeBlock(ExecutionState& st
|
|||
if (hasTag(g_scriptFunctionObjectTag)) {
|
||||
auto cb = m_codeBlock->asInterpretedCodeBlock();
|
||||
auto byteCb = cb->byteCodeBlock();
|
||||
size_t registerSize = byteCb->m_requiredRegisterFileSizeInValueSize;
|
||||
size_t identifierOnStackCount = cb->identifierOnStackCount();
|
||||
size_t stackStorageSize = cb->totalStackAllocatedVariableSize();
|
||||
size_t literalStorageSize = byteCb->m_numeralLiteralData.size();
|
||||
size_t registerFileSize = registerSize + stackStorageSize + literalStorageSize;
|
||||
|
||||
size_t registerFileSize = byteCb->m_requiredRegisterFileSizeInValueSize;
|
||||
bool isStrict = cb->isStrict();
|
||||
bool shouldClearStack = byteCb->m_shouldClearStack;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue