| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_instruction.h | 38 class BytecodeId { 40 constexpr explicit BytecodeId(uint32_t id) : id_(id) {} in BytecodeId() function 42 constexpr BytecodeId() = default; 44 ~BytecodeId() = default; 46 DEFAULT_COPY_SEMANTIC(BytecodeId); 47 NO_MOVE_SEMANTIC(BytecodeId); 70 bool operator==(BytecodeId id) const noexcept 75 friend std::ostream &operator<<(std::ostream &stream, BytecodeId id) 243 BytecodeId GetId() const; 251 BytecodeId GetId(size_t idx = 0) const; [all …]
|
| D | file_reader.cpp | 1289 BytecodeId b_id = inst.GetId(); in AddIndexDependencyInstFlag() 1297 BytecodeId b_id = inst.GetId(); in AddIndexDependencyInstFlag() 1305 BytecodeId b_id = inst.GetId(); in AddIndexDependencyInstFlag() 1313 BytecodeId b_id = inst.GetId(); in AddIndexDependencyInstFlag() 1363 BytecodeId b_id = inst.GetId(); in UpdateIdInstFlag() 1370 inst.UpdateId(BytecodeId(index)); in UpdateIdInstFlag() 1372 BytecodeId b_id = inst.GetId(); in UpdateIdInstFlag() 1379 inst.UpdateId(BytecodeId(index)); in UpdateIdInstFlag() 1381 BytecodeId b_id = inst.GetId(); in UpdateIdInstFlag() 1388 inst.UpdateId(BytecodeId(index)); in UpdateIdInstFlag() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/interpreter/ |
| D | test_runtime_interface.h | 157 static constexpr BytecodeId METHOD_ID {0xaabb}; 158 static constexpr BytecodeId FIELD_ID {0xeeff}; 159 static constexpr BytecodeId TYPE_ID {0x5566}; 160 static constexpr BytecodeId LITERALARRAY_ID {0x7788}; 163 BytecodeId id) in ResolveLiteralArray() 171 BytecodeId id) in ResolveMethod() 178 BytecodeId id) in ResolveField() 186 BytecodeId id) in ResolveClass() 433 …const uint8_t *GetMethodName([[maybe_unused]] Method *caller, [[maybe_unused]] BytecodeId methodId) in GetMethodName() 438 …static Class *GetMethodClass([[maybe_unused]] Method *caller, [[maybe_unused]] BytecodeId methodId) in GetMethodClass() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | bytecode_instruction.h | 38 class BytecodeId { 40 constexpr explicit BytecodeId(uint32_t id) : id_(id) {} in BytecodeId() function 42 constexpr BytecodeId() = default; 44 ~BytecodeId() = default; 46 DEFAULT_COPY_SEMANTIC(BytecodeId); 47 NO_MOVE_SEMANTIC(BytecodeId); 70 bool operator==(BytecodeId id) const noexcept 75 friend std::ostream &operator<<(std::ostream &stream, BytecodeId id) 243 BytecodeId GetId() const; 255 BytecodeId GetId(size_t idx = 0) const; [all …]
|
| D | file_reader.cpp | 1077 BytecodeId bId = inst.GetId(); in InstCheckByFlags() 1085 BytecodeId bId = inst.GetId(); in InstCheckByFlags() 1093 BytecodeId bId = inst.GetId(); in InstCheckByFlags() 1101 BytecodeId bId = inst.GetId(); in InstCheckByFlags() 1208 BytecodeId bId = inst.GetId(); in ComputeLayoutAndUpdateIndices() 1215 inst.UpdateId(BytecodeId(index)); in ComputeLayoutAndUpdateIndices() 1217 BytecodeId bId = inst.GetId(); in ComputeLayoutAndUpdateIndices() 1224 inst.UpdateId(BytecodeId(index)); in ComputeLayoutAndUpdateIndices() 1226 BytecodeId bId = inst.GetId(); in ComputeLayoutAndUpdateIndices() 1233 inst.UpdateId(BytecodeId(index)); in ComputeLayoutAndUpdateIndices() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/ |
| D | runtime_interface.h | 40 static Method *ResolveMethod(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveMethod() 57 static const uint8_t *GetMethodName(const Method *caller, BytecodeId methodId) in GetMethodName() 65 static Class *GetMethodClass(const Method *caller, BytecodeId methodId) in GetMethodClass() 76 static uint32_t GetMethodArgumentsCount(Method *caller, BytecodeId methodId) in GetMethodArgumentsCount() 85 static Field *ResolveField(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveField() 103 static Class *ResolveClass(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveClass() 123 static coretypes::Array *ResolveLiteralArray(PandaVM *vm, const Method &caller, BytecodeId id) in ResolveLiteralArray()
|
| D | interpreter-inl.h | 3037 ALWAYS_INLINE coretypes::Array *ResolveLiteralArray(BytecodeId id) in ResolveLiteralArray() 3042 ALWAYS_INLINE Method *ResolveMethod(BytecodeId id) in ResolveMethod() 3065 ALWAYS_INLINE Field *ResolveField(BytecodeId id) in ResolveField() 3091 ALWAYS_INLINE Class *ResolveType(BytecodeId id) in ResolveType() 3710 ALWAYS_INLINE void InitializeObject(BytecodeId &methodId) in InitializeObject()
|
| /arkcompiler/runtime_core/static_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 216 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::ID32>()), BytecodeId(0xabcdeef1)); in TEST() 226 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V4_V4_ID16>()), BytecodeId(0xeef1)); in TEST() 235 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V8_ID16>()), BytecodeId(0xeef1)); in TEST() 247 … EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V4_V4_V4_V4_ID16>()), BytecodeId(0xeef1)); in TEST() 448 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::ID32>()), BytecodeId(0xabcdeef1)); in TEST() 458 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_ID16>()), BytecodeId(0xeef1)); in TEST() 467 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V8_ID16>()), BytecodeId(0xeef1)); in TEST() 479 … EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_V4_V4_ID16>()), BytecodeId(0xeef1)); in TEST() 652 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::ID32>()), BytecodeId(0xcdeef1)); in TEST() 666 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_ID16>()), BytecodeId(0xf1)); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/static_linker/ |
| D | linker_code_parser_context.cpp | 176 a.inst.UpdateId(BytecodeId(idx)); in Patch() 179 a.inst.UpdateId(BytecodeId(off)); in Patch() 182 a.inst.UpdateId(BytecodeId(off)); in Patch() 232 BytecodeId bId = inst.GetId(); in ProcessCodeData() 239 BytecodeId bId = inst.GetId(); in ProcessCodeData()
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 238 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::ID32, 0>()), BytecodeId(0xabcdeef1)); in TEST() 251 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V4_V4_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 260 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V8_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 272 … EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V4_V4_V4_V4_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 497 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::ID32, 0>()), BytecodeId(0xabcdeef1)); in TEST() 507 … EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 516 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V8_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 528 …EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_V4_V4_ID16, 0>()), BytecodeId(0xeef1)… in TEST() 728 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::ID32, 0>()), BytecodeId(0xcdeef1)); in TEST() 745 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_ID16, 0>()), BytecodeId(0xf1)); in TEST() [all …]
|
| /arkcompiler/runtime_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 90 inline BytecodeId BytecodeInst<Mode>::GetId() const { 106 return BytecodeId(static_cast<uint32_t>(Read<<%= offsets[0] %>, <%= widths[0] %>>())); 110 return BytecodeId(static_cast<uint32_t>(Read<OFFSETS[idx], WIDTHS[idx]>())); 119 inline void BytecodeInst<Mode>::UpdateId(BytecodeId new_id, uint32_t idx /* = 0 */) { 150 inline BytecodeId BytecodeInst<Mode>::GetId(size_t idx /* = 0 */) const { 171 return BytecodeId(static_cast<uint32_t>(Read64(OFFSETS[idx], WIDTHS[idx])));
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | panda_vm.cpp | 78 void PandaVM::HandleLdaStr(Frame *frame, BytecodeId stringId) in HandleLdaStr()
|
| /arkcompiler/runtime_core/static_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 128 inline BytecodeId BytecodeInst<MODE>::GetId() const { 144 return BytecodeId(static_cast<uint32_t>(Read<OFFSETS[IDX], WIDTHS[IDX]>())); 152 inline void BytecodeInst<MODE>::UpdateId(BytecodeId newId, uint32_t idx /* = 0 */) { 184 inline BytecodeId BytecodeInst<MODE>::GetId(size_t idx /* = 0 */) const { 205 return BytecodeId(static_cast<uint32_t>(Read64(OFFSETS[idx], WIDTHS[idx])));
|
| /arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
| D | entrypoints.cpp | 1174 auto resolvedId = caller->GetClass()->ResolveClassIndex(BytecodeId(classId).AsIndex()); in GetClassIdEntrypoint() 1182 …auto *klass = interpreter::RuntimeInterface::ResolveClass<true>(thread, *caller, BytecodeId(classI… in CreateArrayByIdEntrypoint() 1194 … auto nargs = interpreter::RuntimeInterface::GetMethodArgumentsCount(caller, BytecodeId(methodId)); in CreateMultiDimArray() 1265 …return interpreter::RuntimeInterface::ResolveLiteralArray(thread->GetVM(), *caller, BytecodeId(typ… in ResolveLiteralArrayByIdEntrypoint() 1272 … auto klass = interpreter::RuntimeInterface::ResolveClass<false>(thread, *caller, BytecodeId(id)); in ResolveTypeByIdEntrypoint() 1284 auto resolvedId = caller->GetClass()->ResolveFieldIndex(BytecodeId(fieldId).AsIndex()); in GetFieldByIdEntrypoint() 1297 auto *field = interpreter::RuntimeInterface::ResolveField(thread, *caller, BytecodeId(fieldId)); in GetStaticFieldByIdEntrypoint() 1310 …auto *method = interpreter::RuntimeInterface::ResolveMethod(thread, *caller, BytecodeId(calleeId)); in GetCalleeMethodFromBytecodeId() 1321 Class *klass = interpreter::RuntimeInterface::GetMethodClass(method, BytecodeId(methodId)); in GetMethodClassById()
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | panda_vm.h | 95 virtual void HandleLdaStr(Frame *frame, BytecodeId stringId);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
| D | interpreter-inl.h | 514 ALWAYS_INLINE void HandleLaunchVirt(BytecodeId methodId) in HandleLaunchVirt() 533 ALWAYS_INLINE void HandleLaunch(BytecodeId methodId) in HandleLaunch() 641 ALWAYS_INLINE Method *ResolveMethod(BytecodeId id) in ResolveMethod()
|