/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | frame_test.cpp | 71 frameHandler.GetVReg(0).SetReference(nullptr); in TEST_F() 72 EXPECT_TRUE(frameHandler.GetVReg(0).HasObject()); in TEST_F() 73 frameHandler.GetVReg(0).SetPrimitive(0); in TEST_F() 74 EXPECT_FALSE(frameHandler.GetVReg(0).HasObject()); in TEST_F() 78 frameHandler.GetVReg(0).SetPrimitive(v64); in TEST_F() 79 EXPECT_EQ(frameHandler.GetVReg(0).GetLong(), v64); in TEST_F() 80 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<int64_t>(), v64); in TEST_F() 82 frameHandler.GetVReg(1).MovePrimitive(frameHandler.GetVReg(0)); in TEST_F() 83 EXPECT_FALSE(frameHandler.GetVReg( in TEST_F() [all...] |
H A D | i2c_bridge_test.cpp | 182 frameHandler.GetVReg(0).SetReference(obj2); in TEST_F() 479 frame->GetVReg(1).Set(5U); in TEST_F() 496 frame->GetVReg(1).Set(0); in TEST_F() 519 frameHandler.GetVReg(0).SetReference(obj); in TEST_F() 520 frameHandler.GetVReg(1).Set(5U); in TEST_F() 537 frameHandler.GetVReg(1).Set(0); in TEST_F() 559 frameHandler.GetVReg(1).Set(5U); in TEST_F() 576 frameHandler.GetVReg(1).Set(0); in TEST_F() 597 frameHandler.GetVReg(0).Set(2U); in TEST_F() 598 frameHandler.GetVReg( in TEST_F() [all...] |
H A D | interpreter_test.cpp | 99 frameHandler.GetVReg(i).Set(static_cast<int64_t>(0)); in InitializeFrame() 224 frameHandler.GetVReg(V4_MAX - 1).SetPrimitive(IMM64_MAX - 1L); in TEST_F() 225 frameHandler.GetVReg(V8_MAX - 1).SetPrimitive(IMM64_MAX - 2L); in TEST_F() 226 frameHandler.GetVReg(V16_MAX - 1).SetPrimitive(IMM64_MAX - 3L); in TEST_F() 228 frameHandler.GetVReg(V4_MAX - 3U).SetPrimitive(IMM64_MAX - 4L); in TEST_F() 229 frameHandler.GetVReg(V16_MAX - 3U).SetPrimitive(IMM64_MAX - 5L); in TEST_F() 231 frameHandler.GetVReg(V4_MAX - 5U).SetReference(obj1); in TEST_F() 232 frameHandler.GetVReg(V8_MAX - 5U).SetReference(obj2); in TEST_F() 233 frameHandler.GetVReg(V16_MAX - 5U).SetReference(obj3); in TEST_F() 239 EXPECT_EQ(frameHandler.GetVReg( in TEST_F() [all...] |
H A D | debugger_test.cpp | 91 frameHandler.GetVReg(i).SetReference(ToPtr(regs[i].value)); in SetVRegs() 93 frameHandler.GetVReg(i).SetPrimitive(static_cast<int64_t>(regs[i].value)); in SetVRegs() 127 EXPECT_EQ(debugFrame.GetVReg(i), regs[i].value); in CheckFrame() 152 EXPECT_EQ(debugFrame.GetVReg(i), regs[i].value); in CheckFrame()
|
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | vregister_iterator.h | 31 return instn_.GetVReg<FORMAT, 0>(); in GetVRegIdx() 34 return instn_.GetVReg<FORMAT, 1>(); in GetVRegIdx() 42 return instn_.GetVReg<FORMAT, 0U>(); in GetVRegIdx() 45 return instn_.GetVReg<FORMAT, 1U>(); in GetVRegIdx() 48 return instn_.GetVReg<FORMAT, 2U>(); in GetVRegIdx() 51 return instn_.GetVReg<FORMAT, 3U>(); in GetVRegIdx() 57 return instn_.GetVReg<FORMAT, 0>() + paramIdx; in GetVRegIdx() 67 return frame_->GetVReg(GetVRegIdx(paramIdx)).template GetAs<T>(); in GetAs()
|
H A D | interpreter-inl.h | 135 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMov() 136 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMov() 139 curFrameHandler.GetVReg(vd).MovePrimitive(curFrameHandler.GetVReg(vs)); in HandleMov() 146 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovWide() 147 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMovWide() 150 curFrameHandler.GetVReg(vd).MovePrimitive(curFrameHandler.GetVReg(vs)); in HandleMovWide() 157 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovObj() 158 uint16_t vs = this->GetInst().template GetVReg<FORMA in HandleMovObj() [all...] |
H A D | frame.h | 64 // You can use the `FrameHandler` to access the vregisters list and GetVReg will return `VRegisterRef` 135 ALWAYS_INLINE inline const interpreter::VRegister &GetVReg(size_t i) const in GetVReg() function in ark::Frame 140 ALWAYS_INLINE inline interpreter::VRegister &GetVReg(size_t i) in GetVReg() function in ark::Frame 636 ALWAYS_INLINE inline interpreter::StaticVRegisterRef GetVReg(size_t i) in GetVReg() function in ark::StaticFrameHandler 659 ALWAYS_INLINE inline interpreter::DynamicVRegisterRef GetVReg(size_t i) in GetVReg() function in ark::DynamicFrameHandler
|
H A D | interpreter_impl.cpp | 145 std::cerr << pad << "v" << i << "." << frameHandler.GetVReg(i).DumpVReg() << std::endl; in DebugDump()
|
H A D | instruction_handler_base.h | 107 << frameHandler.GetVReg(i).DumpVReg(); in DumpVRegs()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
H A D | bytecode_instruction_tests.cpp | 34 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST() 42 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST() 69 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 77 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST() 104 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM16, 0>()), 0x10); in TEST() 112 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM16, 0>()), 0xff); in TEST() 139 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM32, 0>()), 0x04); in TEST() 147 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM32, 0>()), 0xaa); in TEST() 174 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM64, 0>()), 0x11); in TEST() 182 EXPECT_EQ((inst.GetVReg<BytecodeInstructio in TEST() [all...] |
/arkcompiler/runtime_core/static_core/libpandafile/tests/ |
H A D | bytecode_instruction_tests.cpp | 37 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST() 45 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST() 69 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 77 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST() 101 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM16, 0>()), 0x10); in TEST() 109 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM16, 0>()), 0xff); in TEST() 133 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM32, 0>()), 0x04); in TEST() 141 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM32, 0>()), 0xaa); in TEST() 165 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM64, 0>()), 0x11); in TEST() 173 EXPECT_EQ((inst.GetVReg<BytecodeInstructio in TEST() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
H A D | interpreter-inl.h | 46 LOG_INST() << "launch.short v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunchShort() 47 << this->GetInst().template GetVReg<FORMAT, 1>() << ", " << std::hex << "0x" << id; in HandleEtsLaunchShort() 55 LOG_INST() << "launch v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunch() 56 << this->GetInst().template GetVReg<FORMAT, 1>() << ", v" in HandleEtsLaunch() 57 << this->GetInst().template GetVReg<FORMAT, 2>() << ", v" in HandleEtsLaunch() 58 << this->GetInst().template GetVReg<FORMAT, 3>() << ", " << std::hex << "0x" << id; in HandleEtsLaunch() 66 LOG_INST() << "launch.range v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", " << std::hex << "0x" in HandleEtsLaunchRange() 75 LOG_INST() << "launch.virt.short v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunchVirtShort() 76 << this->GetInst().template GetVReg<FORMAT, 1>() << ", " << std::hex << "0x" << id; in HandleEtsLaunchVirtShort() 84 LOG_INST() << "launch.virt v" << this->GetInst().template GetVReg<FORMA in HandleEtsLaunchVirt() [all...] |
/arkcompiler/runtime_core/static_core/verification/absint/ |
H A D | abs_int_inl.h | 313 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMov() 314 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMov() 332 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovWide() 333 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMovWide() 351 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovObj() 352 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMovObj() 390 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleMovi() 402 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleMoviWide() 414 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleFmovi() 426 uint16_t vd = inst_.GetVReg<FORMA in HandleFmoviWide() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/ |
H A D | ets_inst_builder.cpp | 62 auto nullCheck = graph_->CreateInstNullCheck(DataType::REFERENCE, pc, GetDefinition(bcInst->GetVReg(0)), saveState); in BuildLdObjByName() 166 auto nullCheck = graph_->CreateInstNullCheck(DataType::REFERENCE, pc, GetDefinition(bcInst->GetVReg(0)), saveState); in BuildStObjByName() 198 Inst *obj1 = GetDefinition(bcInst->GetVReg(0)); in BuildEquals() 199 Inst *obj2 = GetDefinition(bcInst->GetVReg(1)); in BuildEquals()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
H A D | inst_builder-inl.h | 129 auto startReg = bcInst_->GetVReg(0); in SetCallArgs() 527 return GetDefinition(bcInst->GetVReg(idx)); in GetArgDefinition() 532 return GetDefinition(bcInst->GetVReg(idx - 1)); in GetArgDefinition() 534 return GetDefinition(bcInst->GetVReg(idx)); in GetArgDefinition() 540 auto startReg = bcInst->GetVReg(0); in GetArgDefinitionRange() 707 GetDefinition(bcInst->GetVReg(IS_ACC_WRITE ? 0 : 1)), saveState); in BuildLoadObject() 751 UpdateDefinition(bcInst->GetVReg(0), inst); in BuildLoadObject() 794 GetDefinition(bcInst->GetVReg(IS_ACC_READ ? 0 : 1)), saveState); in BuildStoreObject() 810 storeVal = GetDefinition(bcInst->GetVReg(0)); in BuildStoreObject() 983 BuildChecksBeforeArray(pc, GetDefinition(bcInst->GetVReg( in BuildLoadArray() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/ |
H A D | debugger.cpp | 193 return StaticFrameHandler(frame).GetVReg(thisRegNum); in GetThisAddrVRegByPandaFrame() 201 return DynamicFrameHandler(frame).GetVReg(thisRegNum); in GetThisAddrVRegByPandaFrameDyn() 241 return StaticFrameHandler(frame).GetVReg(uint32_t(regNumber)); in GetVRegByPandaFrame() 256 return DynamicFrameHandler(frame).GetVReg(uint32_t(regNumber)); in GetVRegByPandaFrameDyn() 721 interpreter::VRegister ® = thread->GetCurrentFrame()->GetVReg(inst.GetVReg()); in HandlePropertyAccess() 769 interpreter::VRegister ® = thread->GetCurrentFrame()->GetVReg(inst.GetVReg()); in HandlePropertyModify() 909 auto vregReg = frameHandler.GetVReg(i); in FillRegisters() 917 auto argReg = frameHandler.GetVReg( in FillRegisters() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | reg_alloc_verifier.h | 182 LocationState &GetVReg(Register reg) 187 const LocationState &GetVReg(Register reg) const
|
H A D | reg_alloc_verifier.cpp | 54 return state.GetVReg(location.GetValue() + (isHigh ? 1U : 0U)); in GetPhiLocationState() 69 return state->GetVReg(location.GetValue() + (isHigh ? 1U : 0U)); in GetPhiLocationState() 291 return currentState_->GetVReg(offset); in GetLocationState()
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | bytecode_instruction.h | 246 uint16_t GetVReg() const; 249 uint16_t GetVReg(size_t idx) const; 260 uint16_t GetVReg(size_t idx = 0) const;
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | method-inl.h | 62 staticFrameHelper.GetVReg(numVregs + i).SetReference(argsSpan[i].GetAs<ObjectHeader *>()); in InitActualArgs() 64 staticFrameHelper.GetVReg(numVregs + i).SetPrimitive(argsSpan[i].GetAs<int64_t>()); in InitActualArgs() 100 dynamicFrameHelper.GetVReg(numVregs + i).SetValue(argsSpan[i].GetRawData()); in InitActualArgs() 104 dynamicFrameHelper.GetVReg(numVregs + i).SetValue(TaggedValue::VALUE_UNDEFINED); in InitActualArgs() 322 dynamicFrameHelper.GetVReg(i).SetValue(argsSpan[i].GetRawData()); in InvokeContext()
|
H A D | stack_walker-inl.h | 138 auto vreg = frameHandler.GetVReg(i); in IterateRegsForIFrameInternal()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
H A D | test_frame.h | 61 uint64_t GetVReg(size_t index) const override
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | stack_walker.cpp | 298 return GetIFrame()->GetVReg(vregNum); in GetVRegValue() 324 auto vreg = GetFrameHandler<IS_DYNAMIC>(GetIFrame()).GetVReg(regInfo.GetIndex()); in SetVRegValue() 546 auto regRef = frameHandler.GetVReg(i); in GetFrameFromPrevFrame() 570 auto regRef = isAcc ? frame->GetAccAsVReg() : frameHandler.GetVReg(i); in GetFrameFromPrevFrame()
|
H A D | osr.cpp | 120 value = iframe->GetVReg(vreg.GetIndex()).GetValue(); in GetValueFromVregAcc()
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | bytecode_instruction.h | 246 uint16_t GetVReg() const; 255 uint16_t GetVReg(size_t idx = 0) const;
|