Home
last modified time | relevance | path

Searched refs:ConstPoolType (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dconstpool_value.h22 enum class ConstPoolType : uint8_t { enum
38 ConstPoolValue(ConstPoolType type, uint32_t index) in ConstPoolValue()
58 inline ConstPoolType GetConstpoolType() const in GetConstpoolType()
67 using ConstPoolTypeField = BitField<ConstPoolType, 32, 4>; // 32: offset, 4: 4bit
Djs_pandafile.cpp107 uint32_t JSPandaFile::GetOrInsertConstantPool(ConstPoolType type, uint32_t offset, in GetOrInsertConstantPool()
310 FunctionKind JSPandaFile::GetFunctionKind(ConstPoolType type) in GetFunctionKind()
314 case ConstPoolType::BASE_FUNCTION: in GetFunctionKind()
317 case ConstPoolType::NC_FUNCTION: in GetFunctionKind()
320 case ConstPoolType::GENERATOR_FUNCTION: in GetFunctionKind()
323 case ConstPoolType::ASYNC_FUNCTION: in GetFunctionKind()
326 case ConstPoolType::CLASS_FUNCTION: in GetFunctionKind()
329 case ConstPoolType::METHOD: in GetFunctionKind()
332 case ConstPoolType::ASYNC_GENERATOR_FUNCTION: in GetFunctionKind()
Dpanda_file_translator.cpp164 ConstPoolType type = value.GetConstpoolType(); in ParseConstPool()
165 if (type == ConstPoolType::STRING) { in ParseConstPool()
171 } else if (type == ConstPoolType::OBJECT_LITERAL) { in ParseConstPool()
190 } else if (type == ConstPoolType::ARRAY_LITERAL) { in ParseConstPool()
199 } else if (type == ConstPoolType::CLASS_LITERAL) { in ParseConstPool()
207 ASSERT(type == ConstPoolType::BASE_FUNCTION || type == ConstPoolType::NC_FUNCTION || in ParseConstPool()
208 … type == ConstPoolType::GENERATOR_FUNCTION || type == ConstPoolType::ASYNC_FUNCTION || in ParseConstPool()
209 type == ConstPoolType::CLASS_FUNCTION || type == ConstPoolType::METHOD || in ParseConstPool()
210 type == ConstPoolType::ASYNC_GENERATOR_FUNCTION); in ParseConstPool()
240 ConstPoolType type = value.GetConstpoolType(); in ParseFuncAndLiteralConstPool()
[all …]
Dprogram_object.h248 template <ConstPoolType type>
251 … static_assert(type == ConstPoolType::OBJECT_LITERAL || type == ConstPoolType::ARRAY_LITERAL); in GetLiteralFromCache()
273 case ConstPoolType::OBJECT_LITERAL: { in GetLiteralFromCache()
298 case ConstPoolType::ARRAY_LITERAL: { in GetLiteralFromCache()
327 template <ConstPoolType type>
Djs_pandafile.h168 uint32_t PUBLIC_API GetOrInsertConstantPool(ConstPoolType type, uint32_t offset,
374 static FunctionKind GetFunctionKind(ConstPoolType type);
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Djs_pandafile_test.cpp176 uint32_t index1 = pf->GetOrInsertConstantPool(ConstPoolType::METHOD, methodId[0].GetOffset()); in HWTEST_F_L0()
177 uint32_t index2 = pf->GetOrInsertConstantPool(ConstPoolType::METHOD, methodId[1].GetOffset()); in HWTEST_F_L0()
178 uint32_t index3 = pf->GetOrInsertConstantPool(ConstPoolType::METHOD, methodId[2].GetOffset()); in HWTEST_F_L0()
190 ConstPoolType type1 = constPoolValue1.GetConstpoolType(); in HWTEST_F_L0()
191 ConstPoolType type2 = constPoolValue2.GetConstpoolType(); in HWTEST_F_L0()
192 ConstPoolType type3 = constPoolValue3.GetConstpoolType(); in HWTEST_F_L0()
196 EXPECT_EQ(type1, ConstPoolType::METHOD); in HWTEST_F_L0()
197 EXPECT_EQ(type2, ConstPoolType::METHOD); in HWTEST_F_L0()
198 EXPECT_EQ(type3, ConstPoolType::METHOD); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dntype_mcr_lowering.cpp107 JSTaggedValue arr = ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in LowerCreateArrayWithBuffer()
Dcircuit_builder.cpp1463 ConstPoolType type) in GetObjectFromConstPool()
1471 GateRef index, ConstPoolType type) in GetObjectFromConstPool()
1484 if (type == ConstPoolType::STRING) { in GetObjectFromConstPool()
1487 } else if (type == ConstPoolType::ARRAY_LITERAL) { in GetObjectFromConstPool()
1490 } else if (type == ConstPoolType::OBJECT_LITERAL) { in GetObjectFromConstPool()
1501 if (type == ConstPoolType::METHOD) { in GetObjectFromConstPool()
1510 } else if (type == ConstPoolType::ARRAY_LITERAL) { in GetObjectFromConstPool()
1519 } else if (type == ConstPoolType::OBJECT_LITERAL) { in GetObjectFromConstPool()
Dntype_hcr_lowering.cpp153 JSTaggedValue arr = ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in LowerNTypedCreateArrayWithBuffer()
Dcircuit_builder.h614 …ectFromConstPool(GateRef glue, GateRef hirGate, GateRef jsFunc, GateRef index, ConstPoolType type);
616 ConstPoolType type);
Dslowpath_lowering.cpp1116 ConstPoolType::STRING); in LowerThrowUndefinedIfHoleWithName()
1477 ConstPoolType::OBJECT_LITERAL); in LowerCreateObjectWithBuffer()
2457 …auto method = builder_.GetObjectFromConstPool(glue_, gate, jsFunc, methodId, ConstPoolType::METHOD… in LowerDefineFunc()
2732 …auto method = builder_.GetObjectFromConstPool(glue_, gate, jsFunc, methodId, ConstPoolType::METHOD… in LowerDefineMethod()
Dstub_builder.cpp4845 …tBuilder()->GetObjectFromConstPool(glue, hirGate, constpool, module, index, ConstPoolType::STRING); in GetStringFromConstPool()
4852 …tBuilder()->GetObjectFromConstPool(glue, hirGate, constpool, module, index, ConstPoolType::METHOD); in GetMethodFromConstPool()
4859 ConstPoolType::ARRAY_LITERAL); in GetArrayLiteralFromConstPool()
4866 ConstPoolType::OBJECT_LITERAL); in GetObjectLiteralFromConstPool()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.cpp841 JSTaggedValue obj = ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in ParseObjectPGOType()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp827 return ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in DEF_RUNTIME_STUBS()
837 return ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in DEF_RUNTIME_STUBS()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h4458 JSArray *result = JSArray::Cast(GET_LITERA_FROM_CACHE(imm, ConstPoolType::ARRAY_LITERAL, in RunInternal()
4471 JSArray *result = JSArray::Cast(GET_LITERA_FROM_CACHE(imm, ConstPoolType::ARRAY_LITERAL, in RunInternal()
4496 JSObject *result = JSObject::Cast(GET_LITERA_FROM_CACHE(imm, ConstPoolType::OBJECT_LITERAL, in RunInternal()
4510 JSObject *result = JSObject::Cast(GET_LITERA_FROM_CACHE(imm, ConstPoolType::OBJECT_LITERAL, in RunInternal()
Dinterpreter_assembly.cpp7330 ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in HandleCreateobjectwithbufferImm16Id16()
7353 ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in HandleCreateobjectwithbufferImm8Id16()
7392 ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in HandleCreatearraywithbufferImm8Id16()