Lines Matching refs:m
42 ArtMethod* m = GetMethod(); in GetThisObject() local
43 if (m->IsStatic()) { in GetThisObject()
45 } else if (m->IsNative()) { in GetThisObject()
48 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetThisObject()
49 CHECK(code_item != nullptr) << PrettyMethod(m); in GetThisObject()
56 ArtMethod* m = GetMethod(); in GetThisObject() local
57 if (m->IsStatic()) { in GetThisObject()
125 ArtMethod* m = GetMethod(); in GetThisObject() local
126 if (m->IsStatic()) { in GetThisObject()
128 } else if (m->IsNative()) { in GetThisObject()
131 reinterpret_cast<char*>(cur_quick_frame_) + m->GetHandleScopeOffset().SizeValue()); in GetThisObject()
136 } else if (m->IsProxyMethod()) { in GetThisObject()
143 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetThisObject()
146 << PrettyMethod(m); in GetThisObject()
151 bool success = GetVReg(m, reg, kReferenceVReg, &value); in GetThisObject()
153 CHECK(success) << "Failed to read the this object in " << PrettyMethod(m); in GetThisObject()
164 bool StackVisitor::IsReferenceVReg(ArtMethod* m, uint16_t vreg) { in IsReferenceVReg() argument
166 if (m->IsNative() || m->IsRuntimeMethod() || m->IsProxyMethod()) { in IsReferenceVReg()
169 if (m->IsOptimized(sizeof(void*))) { in IsReferenceVReg()
172 const uint8_t* native_gc_map = m->GetNativeGcMap(sizeof(void*)); in IsReferenceVReg()
173 CHECK(native_gc_map != nullptr) << PrettyMethod(m); in IsReferenceVReg()
174 const DexFile::CodeItem* code_item = m->GetCodeItem(); in IsReferenceVReg()
176 DCHECK(code_item != nullptr) << PrettyMethod(m); in IsReferenceVReg()
182 const void* entry_point = runtime->GetInstrumentation()->GetQuickCodeFor(m, sizeof(void*)); in IsReferenceVReg()
183 uintptr_t native_pc_offset = m->NativeQuickPcOffset(GetCurrentQuickFramePc(), entry_point); in IsReferenceVReg()
191 bool StackVisitor::GetVReg(ArtMethod* m, uint16_t vreg, VRegKind kind, uint32_t* val) const { in GetVReg() argument
194 DCHECK(m == GetMethod()); in GetVReg()
195 if (m->IsOptimized(sizeof(void*))) { in GetVReg()
196 return GetVRegFromOptimizedCode(m, vreg, kind, val); in GetVReg()
198 return GetVRegFromQuickCode(m, vreg, kind, val); in GetVReg()
207 bool StackVisitor::GetVRegFromQuickCode(ArtMethod* m, uint16_t vreg, VRegKind kind, in GetVRegFromQuickCode() argument
209 const void* code_pointer = m->GetQuickOatCodePointer(sizeof(void*)); in GetVRegFromQuickCode()
211 const VmapTable vmap_table(m->GetVmapTable(code_pointer, sizeof(void*))); in GetVRegFromQuickCode()
212 QuickMethodFrameInfo frame_info = m->GetQuickFrameInfo(code_pointer); in GetVRegFromQuickCode()
221 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetVRegFromQuickCode()
222 DCHECK(code_item != nullptr) << PrettyMethod(m); // Can't be null or how would we compile in GetVRegFromQuickCode()
230 bool StackVisitor::GetVRegFromOptimizedCode(ArtMethod* m, uint16_t vreg, VRegKind kind, in GetVRegFromOptimizedCode() argument
232 const void* code_pointer = m->GetQuickOatCodePointer(sizeof(void*)); in GetVRegFromOptimizedCode()
234 uint32_t native_pc_offset = m->NativeQuickPcOffset(cur_quick_frame_pc_); in GetVRegFromOptimizedCode()
235 CodeInfo code_info = m->GetOptimizedCodeInfo(); in GetVRegFromOptimizedCode()
237 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetVRegFromOptimizedCode()
238 DCHECK(code_item != nullptr) << PrettyMethod(m); // Can't be null or how would we compile in GetVRegFromOptimizedCode()
294 bool StackVisitor::GetVRegPair(ArtMethod* m, uint16_t vreg, VRegKind kind_lo, in GetVRegPair() argument
306 DCHECK(m == GetMethod()); in GetVRegPair()
307 if (m->IsOptimized(sizeof(void*))) { in GetVRegPair()
308 return GetVRegPairFromOptimizedCode(m, vreg, kind_lo, kind_hi, val); in GetVRegPair()
310 return GetVRegPairFromQuickCode(m, vreg, kind_lo, kind_hi, val); in GetVRegPair()
319 bool StackVisitor::GetVRegPairFromQuickCode(ArtMethod* m, uint16_t vreg, VRegKind kind_lo, in GetVRegPairFromQuickCode() argument
321 const void* code_pointer = m->GetQuickOatCodePointer(sizeof(void*)); in GetVRegPairFromQuickCode()
323 const VmapTable vmap_table(m->GetVmapTable(code_pointer, sizeof(void*))); in GetVRegPairFromQuickCode()
324 QuickMethodFrameInfo frame_info = m->GetQuickFrameInfo(code_pointer); in GetVRegPairFromQuickCode()
335 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetVRegPairFromQuickCode()
336 DCHECK(code_item != nullptr) << PrettyMethod(m); // Can't be null or how would we compile in GetVRegPairFromQuickCode()
346 bool StackVisitor::GetVRegPairFromOptimizedCode(ArtMethod* m, uint16_t vreg, in GetVRegPairFromOptimizedCode() argument
351 bool success = GetVRegFromOptimizedCode(m, vreg, kind_lo, &low_32bits); in GetVRegPairFromOptimizedCode()
352 success &= GetVRegFromOptimizedCode(m, vreg + 1, kind_hi, &high_32bits); in GetVRegPairFromOptimizedCode()
378 bool StackVisitor::SetVReg(ArtMethod* m, uint16_t vreg, uint32_t new_value, in SetVReg() argument
382 DCHECK(m == GetMethod()); in SetVReg()
383 if (m->IsOptimized(sizeof(void*))) { in SetVReg()
386 return SetVRegFromQuickCode(m, vreg, new_value, kind); in SetVReg()
394 bool StackVisitor::SetVRegFromQuickCode(ArtMethod* m, uint16_t vreg, uint32_t new_value, in SetVRegFromQuickCode() argument
397 DCHECK(m == GetMethod()); in SetVRegFromQuickCode()
398 const void* code_pointer = m->GetQuickOatCodePointer(sizeof(void*)); in SetVRegFromQuickCode()
400 const VmapTable vmap_table(m->GetVmapTable(code_pointer, sizeof(void*))); in SetVRegFromQuickCode()
401 QuickMethodFrameInfo frame_info = m->GetQuickFrameInfo(code_pointer); in SetVRegFromQuickCode()
410 const DexFile::CodeItem* code_item = m->GetCodeItem(); in SetVRegFromQuickCode()
411 DCHECK(code_item != nullptr) << PrettyMethod(m); // Can't be null or how would we compile in SetVRegFromQuickCode()
452 bool StackVisitor::SetVRegPair(ArtMethod* m, uint16_t vreg, uint64_t new_value, in SetVRegPair() argument
463 DCHECK(m == GetMethod()); in SetVRegPair()
464 if (m->IsOptimized(sizeof(void*))) { in SetVRegPair()
467 return SetVRegPairFromQuickCode(m, vreg, new_value, kind_lo, kind_hi); in SetVRegPair()
477 ArtMethod* m, uint16_t vreg, uint64_t new_value, VRegKind kind_lo, VRegKind kind_hi) { in SetVRegPairFromQuickCode() argument
478 const void* code_pointer = m->GetQuickOatCodePointer(sizeof(void*)); in SetVRegPairFromQuickCode()
480 const VmapTable vmap_table(m->GetVmapTable(code_pointer, sizeof(void*))); in SetVRegPairFromQuickCode()
481 QuickMethodFrameInfo frame_info = m->GetQuickFrameInfo(code_pointer); in SetVRegPairFromQuickCode()
492 const DexFile::CodeItem* code_item = m->GetCodeItem(); in SetVRegPairFromQuickCode()
493 DCHECK(code_item != nullptr) << PrettyMethod(m); // Can't be null or how would we compile in SetVRegPairFromQuickCode()
651 ArtMethod* m = GetMethod(); in DescribeLocation() local
652 if (m == nullptr) { in DescribeLocation()
655 result += PrettyMethod(m); in DescribeLocation()