/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | ntype_bytecode_lowering.cpp | 157 GateRef currentEnv = acc_.GetValueIn(gate, 2); // 2: the third parameter in LowerLdLexVar() local 164 result = builder_.LoadFromTaggedArray(currentEnv, indexValue); in LowerLdLexVar() 166 auto parentEnv = builder_.LoadFromTaggedArray(currentEnv, LexicalEnv::PARENT_ENV_INDEX); in LowerLdLexVar() 180 GateRef currentEnv = acc_.GetValueIn(gate, 2); // 2: the third parameter in LowerStLexVar() local 188 result = builder_.StoreToTaggedArray(currentEnv, indexValue, value); in LowerStLexVar() 190 auto parentEnv = builder_.LoadFromTaggedArray(currentEnv, LexicalEnv::PARENT_ENV_INDEX); in LowerStLexVar()
|
H A D | interpreter_stub.cpp | 1010 DEFVARIABLE(currentEnv, VariableType::JS_ANY(), GetEnvFromFrame(state));
in DECLARE_ASM_HANDLER() 1018 currentEnv = GetParentEnv(*currentEnv);
in DECLARE_ASM_HANDLER() 1024 GateRef variable = GetPropertiesFromLexicalEnv(*currentEnv, slot);
in DECLARE_ASM_HANDLER() 1039 DEFVARIABLE(currentEnv, VariableType::JS_ANY(), GetEnvFromFrame(state));
in DECLARE_ASM_HANDLER() 1047 currentEnv = GetParentEnv(*currentEnv);
in DECLARE_ASM_HANDLER() 1053 GateRef variable = GetPropertiesFromLexicalEnv(*currentEnv, slot);
in DECLARE_ASM_HANDLER() 1067 DEFVARIABLE(currentEnv, VariableType::JS_ANY(), GetEnvFromFrame(state));
in DECLARE_ASM_HANDLER() 1075 currentEnv in DECLARE_ASM_HANDLER() 4567 GateRef currentEnv = GetEnvFromFrame(GetFrame(sp)); DECLARE_ASM_HANDLER() local 4580 GateRef currentEnv = GetEnvFromFrame(GetFrame(sp)); DECLARE_ASM_HANDLER() local [all...] |
H A D | new_object_stub_builder.h | 64 GateRef CloneProperties(GateRef glue, GateRef currentEnv, GateRef elements, GateRef obj);
66 GateRef CloneObjectLiteral(GateRef glue, GateRef literal, GateRef currentEnv);
67 GateRef CreateObjectHavingMethod(GateRef glue, GateRef literal, GateRef currentEnv);
|
H A D | slowpath_lowering.cpp | 2314 GateRef currentEnv = acc_.GetValueIn(gate, 0); in LowerPopLexicalEnv() local 2316 GateRef parentEnv = builder_.GetValueFromTaggedArray(currentEnv, index); in LowerPopLexicalEnv() 2608 DEFVALUE(currentEnv, (&builder_), VariableType::JS_ANY(), acc_.GetValueIn(gate, 2)); // 2: Get current lexEnv in LowerLdLexVar() 2615 currentEnv = builder_.GetValueFromTaggedArray(*currentEnv, index); in LowerLdLexVar() 2623 currentEnv = builder_.GetValueFromTaggedArray(*currentEnv, index); in LowerLdLexVar() 2631 GateRef result = builder_.GetValueFromTaggedArray(*currentEnv, valueIndex); in LowerLdLexVar() 2643 DEFVALUE(currentEnv, (&builder_), VariableType::JS_ANY(), builder_.GetSendableEnvFromModule(module)); in LowerLdSendableVar() 2650 currentEnv in LowerLdSendableVar() 2700 builder_.SetValueToTaggedArray(VariableType::JS_ANY(), glue_, *currentEnv, valueIndex, value); LowerStLexVar() local 2737 builder_.SetValueToTaggedArray(VariableType::JS_ANY(), glue_, *currentEnv, valueIndex, value); LowerStSendableVar() local [all...] |
H A D | circuit_builder.cpp | 1077 DEFVALUE(currentEnv, env_, VariableType::JS_ANY(), lexicalEnv); in GetKeyFromLexivalEnv() 1083 currentEnv = GetParentEnv(*currentEnv); in GetKeyFromLexivalEnv() 1091 result = GetPropertiesFromLexicalEnv(*currentEnv, slotIndex); in GetKeyFromLexivalEnv()
|
H A D | new_object_stub_builder.cpp | 148 GateRef NewObjectStubBuilder::CloneProperties(GateRef glue, GateRef currentEnv,
in CloneProperties() argument 205 SetLexicalEnvToFunction(glue, newFunc, currentEnv);
in CloneProperties() 254 GateRef NewObjectStubBuilder::CloneObjectLiteral(GateRef glue, GateRef literal, GateRef currentEnv)
in CloneObjectLiteral() argument 285 GateRef newElements = CloneProperties(glue, currentEnv, elements, result);
in CloneObjectLiteral() 289 GateRef newProperties = CloneProperties(glue, currentEnv, properties, result);
in CloneObjectLiteral() 335 SetLexicalEnvToFunction(glue, newFunc, currentEnv);
in CloneObjectLiteral() 368 GateRef NewObjectStubBuilder::CreateObjectHavingMethod(GateRef glue, GateRef literal, GateRef currentEnv)
in CreateObjectHavingMethod() argument 375 auto objLiteral = CloneObjectLiteral(glue, literal, currentEnv);
in CreateObjectHavingMethod()
|
/arkcompiler/ets_runtime/ecmascript/compiler/baseline/ |
H A D | baseline_stubs.cpp | 875 GateRef currentEnv = GetEnvFromFrame(frame); in GenerateCircuit() local 878 GateRef res = CallRuntime(glue, RTSTUB_ID(CreateObjectHavingMethod), { result, currentEnv }); in GenerateCircuit() 894 GateRef currentEnv = GetEnvFromFrame(GetFrame(sp)); in GenerateCircuit() local 897 GateRef res = CallRuntime(glue, RTSTUB_ID(CreateObjectHavingMethod), { result, currentEnv }); in GenerateCircuit() 2680 DEFVARIABLE(currentEnv, VariableType::JS_ANY(), GetEnvFromFrame(GetFrame(sp))); in GenerateCircuit() 2688 currentEnv = GetParentEnv(*currentEnv); in GenerateCircuit() 2694 GateRef variable = GetPropertiesFromLexicalEnv(*currentEnv, slot); in GenerateCircuit() 2707 DEFVARIABLE(currentEnv, VariableType::JS_ANY(), GetEnvFromFrame(GetFrame(sp))); in GenerateCircuit() 2715 currentEnv in GenerateCircuit() [all...] |
/arkcompiler/toolchain/tooling/agent/ |
H A D | debugger_impl.cpp | 1819 JSTaggedValue currentEnv = envHandle.GetTaggedValue(); in GetClosureScopeChains() local 1820 if (!currentEnv.IsTaggedArray()) { in GetClosureScopeChains() 1821 LOG_DEBUGGER(DEBUG) << "GetClosureScopeChains: currentEnv is invalid"; in GetClosureScopeChains() 1827 // currentEnv = currentEnv->parent until currentEnv becomes undefined in GetClosureScopeChains() 1828 for (; currentEnv.IsTaggedArray(); currentEnv = LexicalEnv::Cast(currentEnv.GetTaggedObject())->GetParentEnv()) { in GetClosureScopeChains() 1829 LexicalEnv *lexicalEnv = LexicalEnv::Cast(currentEnv in GetClosureScopeChains() [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 2470 JSTaggedValue currentEnv(env.GetTaggedValue()); 2472 ASSERT(currentEnv.IsLexicalEnv()); 2473 currentEnv = LexicalEnv::Cast(currentEnv.GetTaggedObject())->GetParentEnv(); 2475 ASSERT(currentEnv.IsJSSharedFunction()); 2476 return currentEnv;
|