/arkcompiler/ets_runtime/ecmascript/ |
D | lexical_env.h | 22 class LexicalEnv : public TaggedArray { 28 static LexicalEnv *Cast(TaggedObject *object) in Cast() 31 return static_cast<LexicalEnv *>(object); in Cast()
|
D | object_factory-inl.h | 104 LexicalEnv *ObjectFactory::InlineNewLexicalEnv(int numSlots) in InlineNewLexicalEnv() 107 size_t size = LexicalEnv::ComputeSize(numSlots); in InlineNewLexicalEnv() 113 LexicalEnv *array = LexicalEnv::Cast(header); in InlineNewLexicalEnv() 114 …array->InitializeWithSpecialValue(JSTaggedValue::Hole(), numSlots + LexicalEnv::RESERVED_ENV_LENGT… in InlineNewLexicalEnv()
|
D | js_generator_object.h | 47 ACCESSORS(LexicalEnv, GENERATOR_LEXICALENV_OFFSET, GENERATOR_NREGS_OFFSET)
|
D | object_factory.h | 52 class LexicalEnv; variable 278 JSHandle<LexicalEnv> NewLexicalEnv(int numSlots); 280 inline LexicalEnv *InlineNewLexicalEnv(int numSlots);
|
D | js_function.h | 244 ACCESSORS(LexicalEnv, LEXICAL_ENV_OFFSET, HOME_OBJECT_OFFSET)
|
D | js_object.h | 42 class LexicalEnv; variable
|
D | object_factory.cpp | 2071 JSHandle<LexicalEnv> ObjectFactory::NewLexicalEnv(int numSlots) in NewLexicalEnv() 2074 size_t size = LexicalEnv::ComputeSize(numSlots); in NewLexicalEnv() 2077 JSHandle<LexicalEnv> array(thread_, header); in NewLexicalEnv() 2078 …array->InitializeWithSpecialValue(JSTaggedValue::Hole(), numSlots + LexicalEnv::RESERVED_ENV_LENGT… in NewLexicalEnv()
|
D | dump.cpp | 2438 void LexicalEnv::Dump(std::ostream &os) const in Dump() 5140 void LexicalEnv::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
|
D | js_object.cpp | 2005 maybeGlobalEnv = LexicalEnv::Cast(maybeGlobalEnv.GetTaggedObject())->GetParentEnv(); in GetFunctionRealm()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | dropframe_manager.cpp | 99 … slot < LexicalEnv::Cast(env.GetTaggedObject())->GetLength() - LexicalEnv::RESERVED_ENV_LENGTH && in MethodEntry() 101 … JSTaggedValue value = LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot); in MethodEntry() 108 … JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in MethodEntry() 136 …ASSERT(slot < LexicalEnv::Cast(env.GetTaggedObject())->GetLength() - LexicalEnv::RESERVED_ENV_LENG… in DropLastFrame() 137 …LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, valueHandle.GetTaggedValue()); in DropLastFrame()
|
D | debugger_api.cpp | 320 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in GetProperties() 324 JSTaggedValue value = LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot); in GetProperties() 334 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in SetProperties() 339 LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(ecmaVm->GetJSThread(), slot, target); in SetProperties() 347 …for (; curEnv.IsTaggedArray(); curEnv = LexicalEnv::Cast(curEnv.GetTaggedObject())->GetParentEnv()… in GetLevelSlot() 348 LexicalEnv *lexicalEnv = LexicalEnv::Cast(curEnv.GetTaggedObject()); in GetLevelSlot()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | lexical_env_test.cpp | 53 JSHandle<LexicalEnv> lexicalEnv = thread->GetEcmaVM()->GetFactory()->NewLexicalEnv(0); in HWTEST_F_L0()
|
D | js_function_test.cpp | 76 JSHandle<LexicalEnv> lexicalEnv = thread->GetEcmaVM()->GetFactory()->NewLexicalEnv(0); in HWTEST_F_L0()
|
D | object_factory_test.cpp | 171 JSHandle<LexicalEnv> newLexicalEnv = factory->NewLexicalEnv(0); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ntype_bytecode_lowering.cpp | 113 indexValue += LexicalEnv::RESERVED_ENV_LENGTH; in LowerLdLexVar() 118 auto parentEnv = builder_.LoadFromTaggedArray(currentEnv, LexicalEnv::PARENT_ENV_INDEX); in LowerLdLexVar() 137 indexValue += LexicalEnv::RESERVED_ENV_LENGTH; in LowerStLexVar() 142 auto parentEnv = builder_.LoadFromTaggedArray(currentEnv, LexicalEnv::PARENT_ENV_INDEX); in LowerStLexVar()
|
D | new_object_stub_builder.cpp | 38 auto length = Int32Add(numSlots, Int32(LexicalEnv::RESERVED_ENV_LENGTH)); in NewLexicalEnv() 54 result->ReadVariable(), Hole(), Int32(LexicalEnv::RESERVED_ENV_LENGTH), length); in NewLexicalEnv() 57 glue_, result->ReadVariable(), Int32(LexicalEnv::SCOPE_INFO_INDEX), Hole()); in NewLexicalEnv() 59 glue_, result->ReadVariable(), Int32(LexicalEnv::PARENT_ENV_INDEX), parent); in NewLexicalEnv()
|
D | slowpath_lowering.cpp | 2000 GateRef index = builder_.Int32(LexicalEnv::PARENT_ENV_INDEX); in LowerPopLexicalEnv() 2282 GateRef index = builder_.Int32(LexicalEnv::PARENT_ENV_INDEX); in LowerLdLexVar() 2303 GateRef valueIndex = builder_.Int32Add(slot, builder_.Int32(LexicalEnv::RESERVED_ENV_LENGTH)); in LowerLdLexVar() 2316 GateRef index = builder_.Int32(LexicalEnv::PARENT_ENV_INDEX); in LowerStLexVar() 2337 GateRef valueIndex = builder_.Int32Add(slot, builder_.Int32(LexicalEnv::RESERVED_ENV_LENGTH)); in LowerStLexVar()
|
D | stub_builder-inl.h | 2547 GateRef index = Int32(LexicalEnv::PARENT_ENV_INDEX); in GetParentEnv() 2553 GateRef valueIndex = Int32Add(index, Int32(LexicalEnv::RESERVED_ENV_LENGTH)); in GetPropertiesFromLexicalEnv() 2559 GateRef valueIndex = Int32Add(index, Int32(LexicalEnv::RESERVED_ENV_LENGTH)); in SetPropertiesToLexicalEnv()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 1360 currentLexicalEnv = LexicalEnv::Cast(currentLexicalEnv.GetTaggedObject())->GetParentEnv(); in RuntimeLdPrivateProperty() 1363 …JSTaggedValue key = LexicalEnv::Cast(currentLexicalEnv.GetTaggedObject())->GetProperties(slotIndex… in RuntimeLdPrivateProperty() 1391 currentLexicalEnv = LexicalEnv::Cast(currentLexicalEnv.GetTaggedObject())->GetParentEnv(); in RuntimeStPrivateProperty() 1394 …JSTaggedValue key = LexicalEnv::Cast(currentLexicalEnv.GetTaggedObject())->GetProperties(slotIndex… in RuntimeStPrivateProperty() 1428 currentLexicalEnv = LexicalEnv::Cast(currentLexicalEnv.GetTaggedObject())->GetParentEnv(); in RuntimeTestIn() 1431 …JSTaggedValue key = LexicalEnv::Cast(currentLexicalEnv.GetTaggedObject())->GetProperties(slotIndex… in RuntimeTestIn() 2039 JSHandle<LexicalEnv> newEnv = factory->NewLexicalEnv(numVars); in RuntimeNewLexicalEnv() 2253 currentEnv = LexicalEnv::Cast(currentEnv.GetTaggedObject())->GetParentEnv(); in RuntimeLdSendableClass() 2451 JSHandle<LexicalEnv> newEnv = factory->NewLexicalEnv(numVars); in RuntimeNewLexicalEnvWithName() 2519 JSHandle<LexicalEnv> newEnv = factory->NewLexicalEnv(numVars); in RuntimeOptNewLexicalEnvWithName() [all …]
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | fast_runtime_stub-inl.h | 268 LexicalEnv *newEnv = factory->InlineNewLexicalEnv(numVars); in NewLexicalEnv()
|
D | interpreter-inl.h | 4474 … JSTaggedValue parentLexenv = LexicalEnv::Cast(currentLexenv.GetTaggedObject())->GetParentEnv(); in RunInternal() 4481 … JSTaggedValue parentLexenv = LexicalEnv::Cast(currentLexenv.GetTaggedObject())->GetParentEnv(); in RunInternal() 5874 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in RunInternal() 5878 SET_ACC(LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot)); in RunInternal() 5891 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in RunInternal() 5895 SET_ACC(LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot)); in RunInternal() 5908 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in RunInternal() 5912 SET_ACC(LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot)); in RunInternal() 5925 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in RunInternal() 5929 LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, value); in RunInternal() [all …]
|
D | interpreter_assembly.cpp | 1644 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in HandleLdlexvarImm8Imm8() 1648 SET_ACC(LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot)); in HandleLdlexvarImm8Imm8() 1665 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in HandleLdlexvarImm4Imm4() 1669 SET_ACC(LexicalEnv::Cast(env.GetTaggedObject())->GetProperties(slot)); in HandleLdlexvarImm4Imm4() 1686 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in HandleWideStlexvarPrefImm16Imm16() 1690 LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, value); in HandleWideStlexvarPrefImm16Imm16() 1708 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in HandleStlexvarImm8Imm8() 1712 LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, value); in HandleStlexvarImm8Imm8() 1730 JSTaggedValue taggedParentEnv = LexicalEnv::Cast(env.GetTaggedObject())->GetParentEnv(); in HandleStlexvarImm4Imm4() 1734 LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, value); in HandleStlexvarImm4Imm4() [all …]
|
/arkcompiler/toolchain/tooling/agent/ |
D | debugger_impl.cpp | 1532 …for (; currentEnv.IsTaggedArray(); currentEnv = LexicalEnv::Cast(currentEnv.GetTaggedObject())->Ge… in GetClosureScopeChains() 1533 LexicalEnv *lexicalEnv = LexicalEnv::Cast(currentEnv.GetTaggedObject()); in GetClosureScopeChains() 1549 lexicalEnv = LexicalEnv::Cast(currentEnv.GetTaggedObject()); in GetClosureScopeChains()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins.cpp | 2108 JSHandle<LexicalEnv> lexicalEnv = factory_->NewLexicalEnv(0); in InitializeArray()
|