mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
wip
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
109be415d1
commit
96293e2716
7 changed files with 82 additions and 74 deletions
|
|
@ -42,7 +42,8 @@ Value Script::execute(ExecutionState& state, bool isEvalMode, bool needNewEnv, b
|
|||
Value resultValue;
|
||||
ExecutionState newState(state.context(), &ec, &resultValue);
|
||||
|
||||
ByteCodeInterpreter::interpret(newState, m_topCodeBlock, 0, nullptr);
|
||||
Value* registerFile = (Value*)alloca(m_topCodeBlock->byteCodeBlock()->m_requiredRegisterFileSizeInValueSize * sizeof(Value));
|
||||
ByteCodeInterpreter::interpret(newState, m_topCodeBlock, 0, registerFile, nullptr);
|
||||
|
||||
return resultValue;
|
||||
}
|
||||
|
|
@ -108,7 +109,8 @@ Value Script::executeLocal(ExecutionState& state, bool isEvalMode, bool needNewR
|
|||
stackStorage[i] = Value();
|
||||
}
|
||||
|
||||
ByteCodeInterpreter::interpret(newState, m_topCodeBlock, 0, stackStorage);
|
||||
Value* registerFile = (Value*)alloca(m_topCodeBlock->byteCodeBlock()->m_requiredRegisterFileSizeInValueSize * sizeof(Value));
|
||||
ByteCodeInterpreter::interpret(newState, m_topCodeBlock, 0, registerFile, stackStorage);
|
||||
|
||||
return resultValue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue