mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Use default argument value in ByteCodeInterpreter::interpret() (#173)
Signed-off-by: Roland Takacs <rtakacs.uszeged@partner.samsung.com>
This commit is contained in:
parent
3f3366e1c4
commit
8a37c3ad68
4 changed files with 10 additions and 14 deletions
|
|
@ -76,8 +76,7 @@ Value Script::execute(ExecutionState& state, bool isEvalMode, bool needNewEnv, b
|
|||
literalStorage[i] = src[i];
|
||||
}
|
||||
|
||||
size_t unused;
|
||||
Value resultValue = ByteCodeInterpreter::interpret(newState, m_topCodeBlock->byteCodeBlock(), 0, registerFile, &unused);
|
||||
Value resultValue = ByteCodeInterpreter::interpret(newState, m_topCodeBlock->byteCodeBlock(), 0, registerFile);
|
||||
clearStack<512>();
|
||||
|
||||
return resultValue;
|
||||
|
|
@ -183,8 +182,7 @@ Value Script::executeLocal(ExecutionState& state, Value thisValue, InterpretedCo
|
|||
}
|
||||
}
|
||||
|
||||
size_t unused;
|
||||
Value resultValue = ByteCodeInterpreter::interpret(newState, m_topCodeBlock->byteCodeBlock(), 0, registerFile, &unused);
|
||||
Value resultValue = ByteCodeInterpreter::interpret(newState, m_topCodeBlock->byteCodeBlock(), 0, registerFile);
|
||||
clearStack<512>();
|
||||
|
||||
return resultValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue