Searched refs:BytecodeId (Results 1 – 4 of 4) sorted by relevance
/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 UpdateCodeAndDebugInfoDependencies() 1297 BytecodeId b_id = inst.GetId(); in UpdateCodeAndDebugInfoDependencies() 1305 BytecodeId b_id = inst.GetId(); in UpdateCodeAndDebugInfoDependencies() 1313 BytecodeId b_id = inst.GetId(); in UpdateCodeAndDebugInfoDependencies() 1387 BytecodeId b_id = inst.GetId(); in ComputeLayoutAndUpdateIndices() 1394 inst.UpdateId(BytecodeId(index)); in ComputeLayoutAndUpdateIndices() 1396 BytecodeId b_id = inst.GetId(); in ComputeLayoutAndUpdateIndices() 1403 inst.UpdateId(BytecodeId(index)); in ComputeLayoutAndUpdateIndices() 1405 BytecodeId b_id = inst.GetId(); in ComputeLayoutAndUpdateIndices() 1412 inst.UpdateId(BytecodeId(index)); in ComputeLayoutAndUpdateIndices() [all …]
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | bytecode_instruction_tests.cpp | 214 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::ID32, 0>()), BytecodeId(0xabcdeef1)); in TEST() 224 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V4_V4_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 233 EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V8_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 245 … EXPECT_EQ((inst.GetId<BytecodeInstruction::Format::V4_V4_V4_V4_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 446 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::ID32, 0>()), BytecodeId(0xabcdeef1)); in TEST() 456 … EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 465 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V8_ID16, 0>()), BytecodeId(0xeef1)); in TEST() 477 …EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::V4_V4_V4_V4_ID16, 0>()), BytecodeId(0xeef1)… in TEST() 650 EXPECT_EQ((inst.GetId<BytecodeInstructionSafe::Format::ID32, 0>()), BytecodeId(0xcdeef1)); in TEST() 664 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])));
|