diff options
author | 2020-08-31 15:03:20 +0100 | |
---|---|---|
committer | 2020-09-07 07:29:59 +0000 | |
commit | 4717175e40a19e79af904dfb7b7dd13f046debd7 (patch) | |
tree | 426f040eacf5a8305f8bb8d504bd509824d984c8 /runtime/interpreter/interpreter.cc | |
parent | 1faacf59b9f74e9d2de4e0331ef0cdfcf132225d (diff) |
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
Diffstat (limited to 'runtime/interpreter/interpreter.cc')
-rw-r--r-- | runtime/interpreter/interpreter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter.cc b/runtime/interpreter/interpreter.cc index b5e52388b8..67644d66cd 100644 --- a/runtime/interpreter/interpreter.cc +++ b/runtime/interpreter/interpreter.cc @@ -445,7 +445,7 @@ void EnterInterpreterFromInvoke(Thread* self, method->ThrowInvocationTimeError(); return; } else { - DCHECK(method->IsNative()); + DCHECK(method->IsNative()) << method->PrettyMethod(); num_regs = num_ins = ArtMethod::NumArgRegisters(method->GetShorty()); if (!method->IsStatic()) { num_regs++; |