diff options
author | Jeff Hao <jeffhao@google.com> | 2015-02-03 15:08:39 -0800 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2015-02-05 14:14:43 -0800 |
commit | c7d11887725e28db2796c848f4485e59d5eb690c (patch) | |
tree | 97f39432ca9d94969f53cae91baaf8de57cf785d /runtime/stack.cc | |
parent | a0acc2d5dbf8764b346da3d9e6ce1a91427fc4b5 (diff) | |
download | art-c7d11887725e28db2796c848f4485e59d5eb690c.zip art-c7d11887725e28db2796c848f4485e59d5eb690c.tar.gz art-c7d11887725e28db2796c848f4485e59d5eb690c.tar.bz2 |
Handle variable size of methods properly between 32 and 64 bit.
Bug: 19100762
Change-Id: I62358905fa882284d0201ed3c1e97e1286ccec5f
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r-- | runtime/stack.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc index b771aa7..b39aebf 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -134,7 +134,8 @@ mirror::Object* StackVisitor::GetThisObject() const { } else { return cur_shadow_frame_->GetVRegReference(0); } - } else if (m->IsOptimized(sizeof(void*))) { + } else if (m->IsOptimized(GetInstructionSetPointerSize( + Runtime::Current()->GetInstructionSet()))) { // TODO: Implement, currently only used for exceptions when jdwp is enabled. UNIMPLEMENTED(WARNING) << "StackVisitor::GetThisObject is unimplemented with the optimizing compiler"; |