diff options
| author | 2016-08-02 03:47:35 +0000 | |
|---|---|---|
| committer | 2016-08-02 03:47:35 +0000 | |
| commit | ba65cc4a71273904294245cb37ce70e5bce797e3 (patch) | |
| tree | d53a7a816ec4c8e5bdbf80729ac945787b27bf2c /runtime/quick_exception_handler.cc | |
| parent | 1a827a05afbffd5bee241f245f9aa3c40b4dbae4 (diff) | |
| parent | 542451cc546779f5c67840e105c51205a1b0a8fd (diff) | |
Merge "ART: Convert pointer size to enum"
Diffstat (limited to 'runtime/quick_exception_handler.cc')
| -rw-r--r-- | runtime/quick_exception_handler.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index e9dd7aa073..46d9e7fcda 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -18,6 +18,7 @@ #include "arch/context.h" #include "art_method-inl.h" +#include "base/enums.h" #include "dex_instruction.h" #include "entrypoints/entrypoint_utils.h" #include "entrypoints/quick/quick_entrypoints_enum.h" @@ -509,11 +510,7 @@ void QuickExceptionHandler::PrepareForLongJumpToInvokeStubOrInterpreterBridge() } else { // PC needs to be of the quick-to-interpreter bridge. int32_t offset; - #ifdef __LP64__ - offset = GetThreadOffset<8>(kQuickQuickToInterpreterBridge).Int32Value(); - #else - offset = GetThreadOffset<4>(kQuickQuickToInterpreterBridge).Int32Value(); - #endif + offset = GetThreadOffset<kRuntimePointerSize>(kQuickQuickToInterpreterBridge).Int32Value(); handler_quick_frame_pc_ = *reinterpret_cast<uintptr_t*>( reinterpret_cast<uint8_t*>(self_) + offset); } |