From 542451cc546779f5c67840e105c51205a1b0a8fd Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 26 Jul 2016 09:02:02 -0700 Subject: ART: Convert pointer size to enum Move away from size_t to dedicated enum (class). Bug: 30373134 Bug: 30419309 Test: m test-art-host Change-Id: Id453c330f1065012e7d4f9fc24ac477cc9bb9269 --- runtime/quick_exception_handler.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'runtime/quick_exception_handler.cc') 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(kQuickQuickToInterpreterBridge).Int32Value(); handler_quick_frame_pc_ = *reinterpret_cast( reinterpret_cast(self_) + offset); } -- cgit v1.2.3-59-g8ed1b