diff options
author | 2016-08-02 03:47:35 +0000 | |
---|---|---|
committer | 2016-08-02 03:47:35 +0000 | |
commit | ba65cc4a71273904294245cb37ce70e5bce797e3 (patch) | |
tree | d53a7a816ec4c8e5bdbf80729ac945787b27bf2c /compiler/exception_test.cc | |
parent | 1a827a05afbffd5bee241f245f9aa3c40b4dbae4 (diff) | |
parent | 542451cc546779f5c67840e105c51205a1b0a8fd (diff) |
Merge "ART: Convert pointer size to enum"
Diffstat (limited to 'compiler/exception_test.cc')
-rw-r--r-- | compiler/exception_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc index 38ac052830..e2235345b7 100644 --- a/compiler/exception_test.cc +++ b/compiler/exception_test.cc @@ -17,6 +17,7 @@ #include <memory> #include "base/arena_allocator.h" +#include "base/enums.h" #include "class_linker.h" #include "common_runtime_test.h" #include "dex_file.h" @@ -100,11 +101,11 @@ class ExceptionTest : public CommonRuntimeTest { CHECK_ALIGNED(stack_maps_offset, 2); } - method_f_ = my_klass_->FindVirtualMethod("f", "()I", sizeof(void*)); + method_f_ = my_klass_->FindVirtualMethod("f", "()I", kRuntimePointerSize); ASSERT_TRUE(method_f_ != nullptr); method_f_->SetEntryPointFromQuickCompiledCode(code_ptr); - method_g_ = my_klass_->FindVirtualMethod("g", "(I)V", sizeof(void*)); + method_g_ = my_klass_->FindVirtualMethod("g", "(I)V", kRuntimePointerSize); ASSERT_TRUE(method_g_ != nullptr); method_g_->SetEntryPointFromQuickCompiledCode(code_ptr); } |