From fc9555dac51a3cf12bb13f4e3781d2f2f6c9f91f Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Sun, 5 Nov 2017 16:32:19 -0800 Subject: Remove mterp reliance on code item layout Pass dex instruction pointer intead of code item pointer to the mterp entry code. This removes a dependency on the code item layout since it may change in the future for compact dex. Bug: 63756964 Test: test/testrunner/testrunner.py --host -j40 Change-Id: Icfffb2e17372439f0833ecce1c0ddb05e7e7e69c --- runtime/interpreter/interpreter_mterp_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/interpreter/interpreter_mterp_impl.h') diff --git a/runtime/interpreter/interpreter_mterp_impl.h b/runtime/interpreter/interpreter_mterp_impl.h index 1be20fab25..7aa5a34bd4 100644 --- a/runtime/interpreter/interpreter_mterp_impl.h +++ b/runtime/interpreter/interpreter_mterp_impl.h @@ -32,7 +32,7 @@ namespace interpreter { // Mterp does not support transactions or access check, thus no templated versions. extern "C" bool ExecuteMterpImpl(Thread* self, - const DexFile::CodeItem* code_item, + const uint16_t* dex_instructions, ShadowFrame* shadow_frame, JValue* result_register) REQUIRES_SHARED(Locks::mutator_lock_); -- cgit v1.2.3-59-g8ed1b