mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
Implement additional ECMAScript Features for Web Browsers
* Implement VariableStatement in catch rules * Implement Function Declation rules Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
a656f7e4dd
commit
5a284d486b
6 changed files with 75 additions and 98 deletions
|
|
@ -152,7 +152,7 @@ Value ByteCodeInterpreter::interpret(ExecutionState* state, ByteCodeBlock* byteC
|
|||
GetGlobalVariable* code = (GetGlobalVariable*)programCounter;
|
||||
ASSERT(byteCodeBlock->m_codeBlock->context() == state->context());
|
||||
Context* ctx = state->context();
|
||||
GlobalObject* globalObject = state->context()->globalObject();
|
||||
GlobalObject* globalObject = ctx->globalObject();
|
||||
auto slot = code->m_slot;
|
||||
auto idx = slot->m_lexicalIndexCache;
|
||||
bool isCacheWork = false;
|
||||
|
|
@ -185,7 +185,7 @@ Value ByteCodeInterpreter::interpret(ExecutionState* state, ByteCodeBlock* byteC
|
|||
SetGlobalVariable* code = (SetGlobalVariable*)programCounter;
|
||||
ASSERT(byteCodeBlock->m_codeBlock->context() == state->context());
|
||||
Context* ctx = state->context();
|
||||
GlobalObject* globalObject = state->context()->globalObject();
|
||||
GlobalObject* globalObject = ctx->globalObject();
|
||||
auto slot = code->m_slot;
|
||||
auto idx = slot->m_lexicalIndexCache;
|
||||
|
||||
|
|
@ -2594,7 +2594,7 @@ NEVER_INLINE Value ByteCodeInterpreter::blockOperation(ExecutionState*& state, B
|
|||
if (LIKELY(shouldUseIndexedStorage)) {
|
||||
newRecord = new DeclarativeEnvironmentRecordIndexed(*state, code->m_blockInfo);
|
||||
} else {
|
||||
newRecord = new DeclarativeEnvironmentRecordNotIndexed(*state);
|
||||
newRecord = new DeclarativeEnvironmentRecordNotIndexed(*state, false, code->m_blockInfo->m_nodeType == ASTNodeType::CatchClause);
|
||||
|
||||
auto& iv = code->m_blockInfo->m_identifiers;
|
||||
auto siz = iv.size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue