Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2017-01-12 22:15:52 +09:00
commit 96293e2716
7 changed files with 82 additions and 74 deletions

View file

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