diff options
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r-- | runtime/stack.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc index 2d0060e..b8b10d2 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -115,18 +115,22 @@ uint32_t StackVisitor::GetDexPc(bool abort_on_failure) const { mirror::Object* StackVisitor::GetThisObject() const { mirror::ArtMethod* m = GetMethod(); if (m->IsStatic()) { - return NULL; + return nullptr; } else if (m->IsNative()) { - if (cur_quick_frame_ != NULL) { + if (cur_quick_frame_ != nullptr) { HandleScope* hs = reinterpret_cast<HandleScope*>( reinterpret_cast<char*>(cur_quick_frame_) + m->GetHandleScopeOffsetInBytes()); return hs->GetReference(0); } else { return cur_shadow_frame_->GetVRegReference(0); } + } else if (m->IsOptimized()) { + // TODO: Implement, currently only used for exceptions when jdwp is enabled. + LOG(WARNING) << "StackVisitor::GetThisObject is unimplemented with the optimizing compiler"; + return nullptr; } else { const DexFile::CodeItem* code_item = m->GetCodeItem(); - if (code_item == NULL) { + if (code_item == nullptr) { UNIMPLEMENTED(ERROR) << "Failed to determine this object of abstract or proxy method: " << PrettyMethod(m); return nullptr; |