Home
last modified time | relevance | path

Searched refs:LexicalEnv (Results 1 – 24 of 24) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Dlexical_env.h22 class LexicalEnv : public TaggedArray {
28 static LexicalEnv *Cast(TaggedObject *object) in Cast()
31 return static_cast<LexicalEnv *>(object); in Cast()
Dobject_factory-inl.h104 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()
Djs_generator_object.h47 ACCESSORS(LexicalEnv, GENERATOR_LEXICALENV_OFFSET, GENERATOR_NREGS_OFFSET)
Dobject_factory.h52 class LexicalEnv; variable
278 JSHandle<LexicalEnv> NewLexicalEnv(int numSlots);
280 inline LexicalEnv *InlineNewLexicalEnv(int numSlots);
Djs_function.h244 ACCESSORS(LexicalEnv, LEXICAL_ENV_OFFSET, HOME_OBJECT_OFFSET)
Djs_object.h42 class LexicalEnv; variable
Dobject_factory.cpp2071 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()
Ddump.cpp2438 void LexicalEnv::Dump(std::ostream &os) const in Dump()
5140 void LexicalEnv::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
Djs_object.cpp2005 maybeGlobalEnv = LexicalEnv::Cast(maybeGlobalEnv.GetTaggedObject())->GetParentEnv(); in GetFunctionRealm()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddropframe_manager.cpp99 … 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()
137LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, valueHandle.GetTaggedValue()); in DropLastFrame()
Ddebugger_api.cpp320 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/
Dlexical_env_test.cpp53 JSHandle<LexicalEnv> lexicalEnv = thread->GetEcmaVM()->GetFactory()->NewLexicalEnv(0); in HWTEST_F_L0()
Djs_function_test.cpp76 JSHandle<LexicalEnv> lexicalEnv = thread->GetEcmaVM()->GetFactory()->NewLexicalEnv(0); in HWTEST_F_L0()
Dobject_factory_test.cpp171 JSHandle<LexicalEnv> newLexicalEnv = factory->NewLexicalEnv(0); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dntype_bytecode_lowering.cpp113 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()
Dnew_object_stub_builder.cpp38 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()
Dslowpath_lowering.cpp2000 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()
Dstub_builder-inl.h2547 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/
Druntime_stubs-inl.h1360 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/
Dfast_runtime_stub-inl.h268 LexicalEnv *newEnv = factory->InlineNewLexicalEnv(numVars); in NewLexicalEnv()
Dinterpreter-inl.h4474 … 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 …]
Dinterpreter_assembly.cpp1644 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/
Ddebugger_impl.cpp1532 …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/
Dbuiltins.cpp2108 JSHandle<LexicalEnv> lexicalEnv = factory_->NewLexicalEnv(0); in InitializeArray()