summaryrefslogtreecommitdiffstats
path: root/runtime/stack.cc
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2015-02-03 15:08:39 -0800
committerJeff Hao <jeffhao@google.com>2015-02-05 14:14:43 -0800
commitc7d11887725e28db2796c848f4485e59d5eb690c (patch)
tree97f39432ca9d94969f53cae91baaf8de57cf785d /runtime/stack.cc
parenta0acc2d5dbf8764b346da3d9e6ce1a91427fc4b5 (diff)
downloadart-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.cc3
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";