1. implement indexed Storages for function

2. implement function call

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2016-11-30 23:08:42 +09:00
commit d587becaf3
25 changed files with 817 additions and 59 deletions

View file

@ -24,7 +24,7 @@ Script::ScriptExecuteResult Script::execute(Context* ctx)
ExecutionState stateForInit(ctx);
LexicalEnvironment* globalEnvironment = new LexicalEnvironment(new GlobalEnvironmentRecord(stateForInit, m_topCodeBlock, ctx->globalObject()), nullptr);
ExecutionContext ec(ctx, globalEnvironment);
ExecutionContext ec(ctx, globalEnvironment, m_topCodeBlock->isStrict());
Value resultValue;
ExecutionState state(ctx, &ec, &resultValue);
ByteCodeIntrepreter::interpret(state, m_topCodeBlock);