/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | constpool_value.h | 22 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
|
D | js_pandafile.cpp | 107 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()
|
D | panda_file_translator.cpp | 164 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 …]
|
D | program_object.h | 248 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>
|
D | js_pandafile.h | 168 uint32_t PUBLIC_API GetOrInsertConstantPool(ConstPoolType type, uint32_t offset, 374 static FunctionKind GetFunctionKind(ConstPoolType type);
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
D | js_pandafile_test.cpp | 176 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/ |
D | ntype_mcr_lowering.cpp | 107 JSTaggedValue arr = ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in LowerCreateArrayWithBuffer()
|
D | circuit_builder.cpp | 1463 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()
|
D | ntype_hcr_lowering.cpp | 153 JSTaggedValue arr = ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in LowerNTypedCreateArrayWithBuffer()
|
D | circuit_builder.h | 614 …ectFromConstPool(GateRef glue, GateRef hirGate, GateRef jsFunc, GateRef index, ConstPoolType type); 616 ConstPoolType type);
|
D | slowpath_lowering.cpp | 1116 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()
|
D | stub_builder.cpp | 4845 …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/ |
D | ts_type_parser.cpp | 841 JSTaggedValue obj = ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in ParseObjectPGOType()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 827 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/ |
D | interpreter-inl.h | 4458 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()
|
D | interpreter_assembly.cpp | 7330 ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in HandleCreateobjectwithbufferImm16Id16() 7353 ConstantPool::GetLiteralFromCache<ConstPoolType::OBJECT_LITERAL>( in HandleCreateobjectwithbufferImm8Id16() 7392 ConstantPool::GetLiteralFromCache<ConstPoolType::ARRAY_LITERAL>( in HandleCreatearraywithbufferImm8Id16()
|