Use default argument value in ByteCodeInterpreter::interpret() (#173)

Signed-off-by: Roland Takacs <rtakacs.uszeged@partner.samsung.com>
This commit is contained in:
Roland Takacs 2019-04-02 07:12:43 +02:00 committed by yichoi
commit 8a37c3ad68
4 changed files with 10 additions and 14 deletions

View file

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