| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| 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(0).HasObject()); in TEST_F() 84 EXPECT_EQ(frameHandler.GetVReg(0).Get(), static_cast<int32_t>(v64)); in TEST_F() [all …]
|
| 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(1).Set(5U); in TEST_F() [all …]
|
| 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(0).GetLong(), IMM4_MAX); in TEST_F() [all …]
|
| 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/ |
| 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<FORMAT, 1>(); in HandleMovObj() 161 curFrameHandler.GetVReg(vd).MoveReference(curFrameHandler.GetVReg(vs)); in HandleMovObj() 168 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovDyn() [all …]
|
| 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()
|
| D | frame.h | 64 // You can use the `FrameHandler` to access the vregisters list and GetVReg will return `VRegisterR… 135 ALWAYS_INLINE inline const interpreter::VRegister &GetVReg(size_t i) const in GetVReg() function 140 ALWAYS_INLINE inline interpreter::VRegister &GetVReg(size_t i) in GetVReg() function 636 ALWAYS_INLINE inline interpreter::StaticVRegisterRef GetVReg(size_t i) in GetVReg() function 659 ALWAYS_INLINE inline interpreter::DynamicVRegisterRef GetVReg(size_t i) in GetVReg() function
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| 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<BytecodeInstruction::Format::V8_IMM64, 0>()), 0xab); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 36 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST() 44 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST() 68 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 76 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST() 100 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM16, 0>()), 0x10); in TEST() 108 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM16, 0>()), 0xff); in TEST() 132 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM32, 0>()), 0x04); in TEST() 140 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM32, 0>()), 0xaa); in TEST() 164 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM64, 0>()), 0x11); in TEST() 172 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM64, 0>()), 0xab); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| D | inst_templates.yaml | 35 inst_check->SetInput(0, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 1>())); 44 inst->SetInput(0, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); 45 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 51 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 63 … GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>()), 64 … GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 1>())); 66 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 73 … GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 1>())); 75 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 78 inst->SetInput(0, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); [all …]
|
| D | inst_builder-inl.h | 111 auto startReg = bcInst_->GetVReg(0); in SetCallArgs() 511 return GetDefinition(bcInst->GetVReg(idx)); in GetArgDefinition() 516 return GetDefinition(bcInst->GetVReg(idx - 1)); in GetArgDefinition() 518 return GetDefinition(bcInst->GetVReg(idx)); in GetArgDefinition() 524 auto startReg = bcInst->GetVReg(0); in GetArgDefinitionRange() 670 … GetDefinition(bcInst->GetVReg(IS_ACC_WRITE ? 0 : 1)), saveState); in BuildLoadObject() 714 UpdateDefinition(bcInst->GetVReg(0), inst); in BuildLoadObject() 757 … GetDefinition(bcInst->GetVReg(IS_ACC_READ ? 0 : 1)), saveState); in BuildStoreObject() 773 storeVal = GetDefinition(bcInst->GetVReg(0)); in BuildStoreObject() 946 BuildChecksBeforeArray(pc, GetDefinition(bcInst->GetVReg(0))); in BuildLoadArray() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
| 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::he… 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<FORMAT, 0>() << ", v" in HandleEtsLaunchVirt() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/absint/ |
| D | abs_int_inl.h | 310 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMov() 311 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMov() 329 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovWide() 330 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMovWide() 348 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovObj() 349 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMovObj() 387 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleMovi() 399 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleMoviWide() 411 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleFmovi() 423 uint16_t vd = inst_.GetVReg<FORMAT>(); in HandleFmoviWide() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_templates.yaml | 46 inst->SetInput(0, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); 53 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 71 inst->SetInput(1, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); 82 inst->SetInput(1, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); 98 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreate32BitConstant(instru… 100 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateConstant(instruction… 103 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateConstant(instruction… 107 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), GetDefinition(instruction->GetVR… 112 … UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateFloatConstant(imm)); 115 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateDoubleConstant(imm)); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/ |
| D | ets_inst_builder.cpp | 61 …graph_->CreateInstNullCheck(DataType::REFERENCE, pc, GetDefinition(bcInst->GetVReg(0)), saveState); in BuildLdObjByName() 165 …graph_->CreateInstNullCheck(DataType::REFERENCE, pc, GetDefinition(bcInst->GetVReg(0)), saveState); in BuildStObjByName() 197 Inst *obj1 = GetDefinition(bcInst->GetVReg(0)); in BuildEquals() 198 Inst *obj2 = GetDefinition(bcInst->GetVReg(1)); in BuildEquals()
|
| D | ets_inst_templates.yaml | 29 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), graph_->GetOrCreateUndefinedInst…
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/ |
| 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(i + nregs); in FillRegisters()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | reg_alloc_verifier.h | 182 LocationState &GetVReg(Register reg) in GetVReg() function 187 const LocationState &GetVReg(Register reg) const in GetVReg() function
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| 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/ |
| 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()
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
| D | test_frame.h | 61 uint64_t GetVReg(size_t index) const override in GetVReg() function
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_instruction.h | 246 uint16_t GetVReg() const; 255 uint16_t GetVReg(size_t idx = 0) const;
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | inst_builder_gen.cpp.erb | 44 return "GetDefinition(instruction->GetVReg<#{get_format}, #{get_input_idx(index, :reg?)}>())" 317 auto input = GetDefinition(bc_inst->GetVReg<<%= format %>, <%= vreg_index %>>()); 343 size_t start_reg = bc_inst->GetVReg<<%= format %>, <%= range_reg_idx %>>();
|
| /arkcompiler/runtime_core/abc2program/common/ |
| D | abc_inst_convert.cpp.erb | 52 ins.regs.push_back(bc_ins.GetVReg(<%=reg_count%>));
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 49 ins.regs.push_back(bc_ins.GetVReg(<%=reg_count%>));
|