From 4717175e40a19e79af904dfb7b7dd13f046debd7 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 31 Aug 2020 15:03:20 +0100 Subject: Move code item to the data pointer and remove code_item_offset. This saves 4 bytes on 32bit and 8 bytes on 64bit on ArtMethod. Also update nterp to directly fetch the code item from the data pointer. Test: test.py Bug: 112676029 Change-Id: Ic01f43c7ccf2cbce1ec517478e81362232d36371 --- compiler/exception_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/exception_test.cc') diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc index 7d56da07fb..9212ea6c90 100644 --- a/compiler/exception_test.cc +++ b/compiler/exception_test.cc @@ -17,6 +17,7 @@ #include #include +#include "art_method-inl.h" #include "base/arena_allocator.h" #include "base/callee_save_type.h" #include "base/enums.h" @@ -128,7 +129,7 @@ class ExceptionTest : public CommonRuntimeTest { TEST_F(ExceptionTest, FindCatchHandler) { ScopedObjectAccess soa(Thread::Current()); - CodeItemDataAccessor accessor(*dex_, dex_->GetCodeItem(method_f_->GetCodeItemOffset())); + CodeItemDataAccessor accessor(*dex_, method_f_->GetCodeItem()); ASSERT_TRUE(accessor.HasCodeItem()); -- cgit v1.2.3-59-g8ed1b