diff options
| author | 2014-10-17 02:29:32 +0000 | |
|---|---|---|
| committer | 2014-10-17 02:29:32 +0000 | |
| commit | b3f18cf7466f85e15c6b7f005f544867a4d6847a (patch) | |
| tree | 62035f08dc38038b74c9796118ae0bab0e7608fb /runtime/quick_exception_handler.cc | |
| parent | cb142101f29a4f1e097f03a220db3da6d4bd679f (diff) | |
| parent | 6f3dbbadf4ce66982eb3d400e0a74cb73eb034f3 (diff) | |
Merge "Make ART compile with GCC -O0 again."
Diffstat (limited to 'runtime/quick_exception_handler.cc')
| -rw-r--r-- | runtime/quick_exception_handler.cc | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index 2c158ba963..8e578374c0 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -19,6 +19,7 @@  #include "arch/context.h"  #include "dex_instruction.h"  #include "entrypoints/entrypoint_utils.h" +#include "entrypoints/runtime_asm_entrypoints.h"  #include "handle_scope-inl.h"  #include "mirror/art_method-inl.h"  #include "mirror/class-inl.h" @@ -96,7 +97,7 @@ class CatchBlockStackVisitor FINAL : public StackVisitor {        if (found_dex_pc != DexFile::kDexNoIndex) {          exception_handler_->SetHandlerMethod(method.Get());          exception_handler_->SetHandlerDexPc(found_dex_pc); -        exception_handler_->SetHandlerQuickFramePc(method->ToNativePc(found_dex_pc)); +        exception_handler_->SetHandlerQuickFramePc(method->ToNativeQuickPc(found_dex_pc));          exception_handler_->SetHandlerQuickFrame(GetCurrentQuickFrame());          return false;  // End stack walk.        } @@ -308,7 +309,7 @@ class InstrumentationStackVisitor : public StackVisitor {      size_t current_frame_depth = GetFrameDepth();      if (current_frame_depth < frame_depth_) {        CHECK(GetMethod() != nullptr); -      if (UNLIKELY(GetQuickInstrumentationExitPc() == GetReturnPc())) { +      if (UNLIKELY(reinterpret_cast<uintptr_t>(GetQuickInstrumentationExitPc()) == GetReturnPc())) {          ++instrumentation_frames_to_pop_;        }        return true;  |