Lines Matching refs:vreg

197 bool StackVisitor::GetVRegFromDebuggerShadowFrame(uint16_t vreg,  in GetVRegFromDebuggerShadowFrame()  argument
205 if (updated_vreg_flags[vreg]) { in GetVRegFromDebuggerShadowFrame()
209 shadow_frame->GetVRegReference(vreg))); in GetVRegFromDebuggerShadowFrame()
211 *val = shadow_frame->GetVReg(vreg); in GetVRegFromDebuggerShadowFrame()
221 uint16_t vreg, in GetVReg() argument
229 if (GetVRegFromDebuggerShadowFrame(vreg, kind, val)) { in GetVReg()
236 ? NterpGetVRegReference(cur_quick_frame_, vreg) in GetVReg()
237 : NterpGetVReg(cur_quick_frame_, vreg); in GetVReg()
246 DCHECK_EQ(result, GetVRegFromOptimizedCode(m, vreg, kind, &val2)); in GetVReg()
249 result = GetVRegFromOptimizedCode(m, vreg, kind, val); in GetVReg()
264 cur_shadow_frame_->GetVRegReference(vreg))); in GetVReg()
266 *val = cur_shadow_frame_->GetVReg(vreg); in GetVReg()
272 bool StackVisitor::GetVRegFromOptimizedCode(ArtMethod* m, uint16_t vreg, VRegKind kind, in GetVRegFromOptimizedCode() argument
279 DCHECK_LT(vreg, number_of_dex_registers); in GetVRegFromOptimizedCode()
294 DexRegisterLocation::Kind location_kind = dex_register_map[vreg].GetKind(); in GetVRegFromOptimizedCode()
297 const int32_t offset = dex_register_map[vreg].GetStackOffsetInBytes(); in GetVRegFromOptimizedCode()
308 uint32_t reg = dex_register_map[vreg].GetMachineRegister(); in GetVRegFromOptimizedCode()
320 uint32_t reg = dex_register_map[vreg].GetMachineRegister(); in GetVRegFromOptimizedCode()
324 uint32_t result = dex_register_map[vreg].GetConstant(); in GetVRegFromOptimizedCode()
334 LOG(FATAL) << "Unexpected location kind " << dex_register_map[vreg].GetKind(); in GetVRegFromOptimizedCode()
393 bool StackVisitor::GetVRegPairFromDebuggerShadowFrame(uint16_t vreg, in GetVRegPairFromDebuggerShadowFrame() argument
399 bool success = GetVRegFromDebuggerShadowFrame(vreg, kind_lo, &low_32bits); in GetVRegPairFromDebuggerShadowFrame()
400 success &= GetVRegFromDebuggerShadowFrame(vreg + 1, kind_hi, &high_32bits); in GetVRegPairFromDebuggerShadowFrame()
407 bool StackVisitor::GetVRegPair(ArtMethod* m, uint16_t vreg, VRegKind kind_lo, in GetVRegPair() argument
418 if (GetVRegPairFromDebuggerShadowFrame(vreg, kind_lo, kind_hi, val)) { in GetVRegPair()
423 *val = cur_shadow_frame_->GetVRegLong(vreg); in GetVRegPair()
427 uint64_t val_lo = NterpGetVReg(cur_quick_frame_, vreg); in GetVRegPair()
428 uint64_t val_hi = NterpGetVReg(cur_quick_frame_, vreg + 1); in GetVRegPair()
436 return GetVRegPairFromOptimizedCode(m, vreg, kind_lo, kind_hi, val); in GetVRegPair()
439 bool StackVisitor::GetVRegPairFromOptimizedCode(ArtMethod* m, uint16_t vreg, in GetVRegPairFromOptimizedCode() argument
444 bool success = GetVRegFromOptimizedCode(m, vreg, kind_lo, &low_32bits); in GetVRegPairFromOptimizedCode()
445 success &= GetVRegFromOptimizedCode(m, vreg + 1, kind_hi, &high_32bits); in GetVRegPairFromOptimizedCode()
471 ShadowFrame* StackVisitor::PrepareSetVReg(ArtMethod* m, uint16_t vreg, bool wide) { in PrepareSetVReg() argument
486 thread_->GetUpdatedVRegFlags(frame_id)[vreg] = true; in PrepareSetVReg()
488 thread_->GetUpdatedVRegFlags(frame_id)[vreg + 1] = true; in PrepareSetVReg()
494 bool StackVisitor::SetVReg(ArtMethod* m, uint16_t vreg, uint32_t new_value, VRegKind kind) { in SetVReg() argument
496 ShadowFrame* shadow_frame = PrepareSetVReg(m, vreg, /* wide= */ false); in SetVReg()
500 shadow_frame->SetVReg(vreg, new_value); in SetVReg()
504 bool StackVisitor::SetVRegReference(ArtMethod* m, uint16_t vreg, ObjPtr<mirror::Object> new_value) { in SetVRegReference() argument
505 ShadowFrame* shadow_frame = PrepareSetVReg(m, vreg, /* wide= */ false); in SetVRegReference()
509 shadow_frame->SetVRegReference(vreg, new_value); in SetVRegReference()
514 uint16_t vreg, in SetVRegPair() argument
526 ShadowFrame* shadow_frame = PrepareSetVReg(m, vreg, /* wide= */ true); in SetVRegPair()
530 shadow_frame->SetVRegLong(vreg, new_value); in SetVRegPair()