| /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() 225 frameHandler.GetVReg(V4_MAX - 1).SetPrimitive(IMM64_MAX - 1L); in TEST_F() 226 frameHandler.GetVReg(V8_MAX - 1).SetPrimitive(IMM64_MAX - 2L); in TEST_F() 227 frameHandler.GetVReg(V16_MAX - 1).SetPrimitive(IMM64_MAX - 3L); in TEST_F() 229 frameHandler.GetVReg(V4_MAX - 3U).SetPrimitive(IMM64_MAX - 4L); in TEST_F() 230 frameHandler.GetVReg(V16_MAX - 3U).SetPrimitive(IMM64_MAX - 5L); in TEST_F() 232 frameHandler.GetVReg(V4_MAX - 5U).SetReference(obj1); in TEST_F() 233 frameHandler.GetVReg(V8_MAX - 5U).SetReference(obj2); in TEST_F() 234 frameHandler.GetVReg(V16_MAX - 5U).SetReference(obj3); in TEST_F() 240 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 | 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 | interpreter-inl.h | 134 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMov() 135 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMov() 138 curFrameHandler.GetVReg(vd).MovePrimitive(curFrameHandler.GetVReg(vs)); in HandleMov() 145 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovWide() 146 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMovWide() 149 curFrameHandler.GetVReg(vd).MovePrimitive(curFrameHandler.GetVReg(vs)); in HandleMovWide() 156 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovObj() 157 uint16_t vs = this->GetInst().template GetVReg<FORMAT, 1>(); in HandleMovObj() 160 curFrameHandler.GetVReg(vd).MoveReference(curFrameHandler.GetVReg(vs)); in HandleMovObj() 167 uint16_t vd = this->GetInst().template GetVReg<FORMAT, 0>(); in HandleMovDyn() [all …]
|
| 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 | 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<BytecodeInstruction::Format::V8_IMM64, 0>()), 0xab); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
| D | interpreter-inl.h | 48 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsLdobjName() 53 ObjectHeader *obj = this->GetFrame()->GetVReg(vs).GetReference(); in HandleEtsLdobjName() 85 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsLdobjNameWide() 90 ObjectHeader *obj = this->GetFrame()->GetVReg(vs).GetReference(); in HandleEtsLdobjNameWide() 122 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsLdobjNameObj() 127 ObjectHeader *obj = this->GetFrame()->GetVReg(vs).GetReference(); in HandleEtsLdobjNameObj() 161 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsStobjName() 166 ObjectHeader *obj = this->GetFrame()->GetVReg(vs).GetReference(); in HandleEtsStobjName() 198 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsStobjNameWide() 203 ObjectHeader *obj = this->GetFrame()->GetVReg(vs).GetReference(); in HandleEtsStobjNameWide() [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>())); 47 inst->SetInput(0, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); 48 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 54 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 66 … GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>()), 67 … GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 1>())); 69 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 76 … GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 1>())); 78 UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), inst); 81 inst->SetInput(0, GetDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>())); [all …]
|
| D | inst_builder-inl.h | 134 auto startReg = bcInst_->GetVReg(0); in SetCallArgs() 521 return GetDefinition(bcInst->GetVReg(idx)); in GetArgDefinition() 526 return GetDefinition(bcInst->GetVReg(idx - 1)); in GetArgDefinition() 528 return GetDefinition(bcInst->GetVReg(idx)); in GetArgDefinition() 534 auto startReg = bcInst->GetVReg(0); in GetArgDefinitionRange() 695 … GetDefinition(bcInst->GetVReg(IS_ACC_WRITE ? 0 : 1)), saveState); in BuildLoadObject() 739 UpdateDefinition(bcInst->GetVReg(0), inst); in BuildLoadObject() 782 … GetDefinition(bcInst->GetVReg(IS_ACC_READ ? 0 : 1)), saveState); in BuildStoreObject() 798 storeVal = GetDefinition(bcInst->GetVReg(0)); in BuildStoreObject() 973 BuildChecksBeforeArray(pc, GetDefinition(bcInst->GetVReg(0))); in BuildLoadArray() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/absint/ |
| 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<FORMAT>(); in HandleFmoviWide() [all …]
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/ |
| D | inst_templates.yaml | 42 inst->SetInput(0, GetDefinition(instruction->GetVReg())); 45 UpdateDefinition(instruction->GetVReg(), inst); 63 inst->SetInput(1, GetDefinition(instruction->GetVReg())); 73 …GetDefinition(instruction->GetVReg()), compiler::<%= get_type(inst.type(0)) %>, <%= get_cc(inst) %… 83 …UpdateDefinition(instruction->GetVReg(), FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get… 85 …UpdateDefinition(instruction->GetVReg(), FindOrCreateConstant(instruction->GetImm<<%=inst.get_form… 89 UpdateDefinition(instruction->GetVReg(), GetDefinition(instruction->GetVReg(1))); 94 UpdateDefinition(instruction->GetVReg(), FindOrCreateFloatConstant(imm)); 97 UpdateDefinition(instruction->GetVReg(), FindOrCreateDoubleConstant(imm)); 100 UpdateDefinition(instruction->GetVReg(), GetDefinitionAcc()); [all …]
|
| D | inst_builder_dyn_gen.cpp.erb | 44 return "GetDefinition(instruction->GetVReg(#{get_input_idx(index, :reg?)}))" 344 auto input = GetDefinition(bcInst->GetVReg(<%= vreg_index %>)); 370 size_t startReg = bcInst->GetVReg(<%= range_reg_idx %>);
|
| /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 | 74 …graph_->CreateInstNullCheck(DataType::REFERENCE, pc, GetDefinition(bcInst->GetVReg(0)), saveState); in BuildLdObjByName() 172 …graph_->CreateInstNullCheck(DataType::REFERENCE, pc, GetDefinition(bcInst->GetVReg(0)), saveState); in BuildStObjByName() 209 Inst *obj1 = GetDefinition(bcInst->GetVReg(0)); in BuildEquals() 210 Inst *obj2 = GetDefinition(bcInst->GetVReg(1)); in BuildEquals() 243 Inst *obj = GetDefinition(bcInst->GetVReg(0)); in BuildTypeof() 263 Inst *obj = GetDefinition(bcInst->GetVReg(0)); in BuildIstrue() 285 auto startReg = bcInst->GetVReg(0); in BuildCallByName() 321 … call->AppendInput(GetDefinition(bcInst->GetVReg(i + 1)), GetMethodArgumentType(methodId, i)); in BuildCallByName()
|
| D | ets_inst_templates.yaml | 35 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), graph_->GetOrCreateUniqueObjectI…
|
| /arkcompiler/runtime_core/libabckit/src/templates/abckit_intrinsics/ |
| D | inst_builder_abckit_intrinsics.inc.erb | 121 auto input = GetDefinition(bcInst->GetVReg(<%= vreg_index %>)); 155 UpdateDefinition(bcInst->GetVReg(<%= out_idx %>), inst); 184 auto startReg = bcInst->GetVReg(0); 191 inst->AppendInput(GetDefinition(bcInst->GetVReg(i))); 228 inst->AppendInput(GetDefinition(bcInst->GetVReg(IS_ACC_WRITE ? 0 : 1))); 237 UpdateDefinition(bcInst->GetVReg(0), inst); 273 storeVal = GetDefinition(bcInst->GetVReg(0)); 277 inst->AppendInput(GetDefinition(bcInst->GetVReg(IS_ACC_READ ? 0 : 1))); 381 inst->AppendInput(GetDefinition(bcInst->GetVReg(0))); 420 inst->AppendInput(GetDefinition(bcInst->GetVReg(0))); [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/ |
| D | debugger.cpp | 191 return StaticFrameHandler(frame).GetVReg(thisRegNum); in GetThisAddrVRegByPandaFrame() 199 return DynamicFrameHandler(frame).GetVReg(thisRegNum); in GetThisAddrVRegByPandaFrameDyn() 239 return StaticFrameHandler(frame).GetVReg(uint32_t(regNumber)); in GetVRegByPandaFrame() 254 return DynamicFrameHandler(frame).GetVReg(uint32_t(regNumber)); in GetVRegByPandaFrameDyn() 760 interpreter::VRegister ® = thread->GetCurrentFrame()->GetVReg(inst.GetVReg()); in HandlePropertyAccess() 808 interpreter::VRegister ® = thread->GetCurrentFrame()->GetVReg(inst.GetVReg()); in HandlePropertyModify() 948 auto vregReg = frameHandler.GetVReg(i); in FillRegisters() 956 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/tooling/inspector/tests/ |
| D | test_frame.h | 61 uint64_t GetVReg(size_t index) const override in GetVReg() function
|
| /arkcompiler/toolchain/tooling/static/tests/ |
| D | test_frame.h | 61 uint64_t GetVReg(size_t index) const override in GetVReg() function
|
| /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() 324 dynamicFrameHelper.GetVReg(i).SetValue(argsSpan[i].GetRawData()); in InvokeContext()
|