1. implement rest of TypedArray builtin functions for octane

2. fix find arguments in typeof expression

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2017-01-06 19:57:00 +09:00
commit 7490ff4a3c
9 changed files with 180 additions and 137 deletions

View file

@ -12,13 +12,13 @@
namespace Escargot {
Value Script::execute(Context* ctx, bool isEvalMode, bool needNewEnv)
Value Script::execute(Context* ctx, bool isEvalMode, bool needNewEnv, bool isOnGlobal)
{
Node* programNode = m_topCodeBlock->cachedASTNode();
ASSERT(programNode && programNode->type() == ASTNodeType::Program);
ByteCodeGenerator g;
g.generateByteCode(ctx, m_topCodeBlock, programNode, isEvalMode);
g.generateByteCode(ctx, m_topCodeBlock, programNode, isEvalMode, isOnGlobal);
m_topCodeBlock->m_cachedASTNode = nullptr;