@@ -3507,7 +3507,7 @@ void ByteCodeGenerator::StartEmitFunction(ParseNodeFnc *pnodeFnc)
35073507
35083508 if (funcInfo->byteCodeFunction ->IsFunctionParsed () && funcInfo->root ->pnodeBody != nullptr )
35093509 {
3510- if (funcInfo->GetParsedFunctionBody ()->GetByteCode () == nullptr && !(flags & (fscrEval | fscrImplicitThis | fscrImplicitParents )))
3510+ if (funcInfo->GetParsedFunctionBody ()->GetByteCode () == nullptr && !(flags & (fscrEval | fscrImplicitThis)))
35113511 {
35123512 // Only set the environment depth if it's truly known (i.e., not in eval or event handler).
35133513 funcInfo->GetParsedFunctionBody ()->SetEnvDepth (this ->envDepth );
@@ -3993,7 +3993,7 @@ void ByteCodeGenerator::StartEmitCatch(ParseNodeCatch *pnodeCatch)
39933993 FuncInfo *funcInfo = scope->GetFunc ();
39943994
39953995 // Catch scope is a dynamic object if it can be passed to a scoped lookup helper (i.e., eval is present or we're in an event handler).
3996- if (funcInfo->GetCallsEval () || funcInfo->GetChildCallsEval () || (this ->flags & (fscrEval | fscrImplicitThis | fscrImplicitParents )))
3996+ if (funcInfo->GetCallsEval () || funcInfo->GetChildCallsEval () || (this ->flags & (fscrEval | fscrImplicitThis)))
39973997 {
39983998 scope->SetIsObject ();
39993999 }
@@ -4069,7 +4069,7 @@ void ByteCodeGenerator::StartEmitBlock(ParseNodeBlock *pnodeBlock)
40694069 PushBlock (pnodeBlock);
40704070
40714071 Scope *scope = pnodeBlock->scope ;
4072- if (pnodeBlock->GetCallsEval () || pnodeBlock->GetChildCallsEval () || (this ->flags & (fscrEval | fscrImplicitThis | fscrImplicitParents )))
4072+ if (pnodeBlock->GetCallsEval () || pnodeBlock->GetChildCallsEval () || (this ->flags & (fscrEval | fscrImplicitThis)))
40734073 {
40744074 Assert (scope->GetIsObject ());
40754075 }
@@ -4301,7 +4301,7 @@ void ByteCodeGenerator::EmitLoadInstance(Symbol *sym, IdentPtr pid, Js::RegSlot
43014301
43024302 if (sym == nullptr || sym->GetIsGlobal ())
43034303 {
4304- if (this ->flags & (fscrEval | fscrImplicitThis | fscrImplicitParents ))
4304+ if (this ->flags & (fscrEval | fscrImplicitThis))
43054305 {
43064306 // Load of a symbol with unknown scope from within eval.
43074307 // Get it from the closure environment.
@@ -4731,11 +4731,11 @@ void ByteCodeGenerator::EmitPropStore(Js::RegSlot rhsLocation, Symbol *sym, Iden
47314731 this ->m_writer .ElementP (GetScopedStFldOpCode (funcInfo, isConsoleScopeLetConst), rhsLocation, cacheId);
47324732 }
47334733 }
4734- else if (this ->flags & ( fscrImplicitThis | fscrImplicitParents) )
4734+ else if (this ->flags & fscrImplicitThis)
47354735 {
47364736 uint cacheId = funcInfo->FindOrAddInlineCacheId (funcInfo->GetEnvRegister (), propertyId, false , true );
47374737
4738- // In "eval" , store to a symbol with unknown scope goes through the closure environment.
4738+ // In HTML event handler , store to a symbol with unknown scope goes through the closure environment.
47394739 this ->m_writer .ElementP (GetScopedStFldOpCode (funcInfo, isConsoleScopeLetConst), rhsLocation, cacheId);
47404740 }
47414741 else
@@ -5106,11 +5106,11 @@ void ByteCodeGenerator::EmitPropLoad(Js::RegSlot lhsLocation, Symbol *sym, Ident
51065106 this ->m_writer .ElementP (Js::OpCode::ScopedLdFld, lhsLocation, cacheId);
51075107 }
51085108 }
5109- else if (this ->flags & ( fscrImplicitThis | fscrImplicitParents) )
5109+ else if (this ->flags & fscrImplicitThis)
51105110 {
51115111 uint cacheId = funcInfo->FindOrAddInlineCacheId (funcInfo->GetEnvRegister (), propertyId, false , false );
51125112
5113- // Load of a symbol with unknown scope from within eval or event handler.
5113+ // Load of a symbol with unknown scope from within event handler.
51145114 // Get it from the closure environment.
51155115 this ->m_writer .ElementP (Js::OpCode::ScopedLdFld, lhsLocation, cacheId);
51165116 }
@@ -5323,7 +5323,7 @@ void ByteCodeGenerator::EmitPropDelete(Js::RegSlot lhsLocation, Symbol *sym, Ide
53235323 if (sym == nullptr || sym->GetIsGlobal ())
53245324 {
53255325 Js::PropertyId propertyId = sym ? sym->EnsurePosition (this ) : pid->GetPropertyId ();
5326- if (this ->flags & (fscrEval | fscrImplicitThis | fscrImplicitParents ))
5326+ if (this ->flags & (fscrEval | fscrImplicitThis))
53275327 {
53285328 this ->m_writer .ScopedProperty (Js::OpCode::ScopedDeleteFld, lhsLocation,
53295329 funcInfo->FindOrAddReferencedPropertyId (propertyId));
@@ -5511,7 +5511,7 @@ void ByteCodeGenerator::EmitPropTypeof(Js::RegSlot lhsLocation, Symbol *sym, Ide
55115511 this ->EmitTypeOfFld (funcInfo, propertyId, lhsLocation, funcInfo->GetEnvRegister (), Js::OpCode::ScopedLdFldForTypeOf);
55125512 }
55135513 }
5514- else if (this ->flags & ( fscrImplicitThis | fscrImplicitParents) )
5514+ else if (this ->flags & fscrImplicitThis)
55155515 {
55165516 this ->EmitTypeOfFld (funcInfo, propertyId, lhsLocation, funcInfo->GetEnvRegister (), Js::OpCode::ScopedLdFldForTypeOf);
55175517 }
0 commit comments