diff options
author | 2024-10-23 13:09:32 +0000 | |
---|---|---|
committer | 2024-10-25 11:08:17 +0000 | |
commit | b6413c0a1c8d897280ae157cc8f9a50dc68e11e7 (patch) | |
tree | 834c697e46ccdde10a3406514b20f460283603bb /runtime/interpreter/interpreter.cc | |
parent | e54bbb5c16009e6959b4e2b1e090f29edd990ad1 (diff) |
Remove interpret_one_instruction from switch interpreter
This was used when mterp bailed out on executing an instruction. The
idea was to fallback to switch interpreter for that instruction and
continue with mterp. We no longer have mterp and removed the support for
it (aosp/1763167). We no longer use this capability and is always set to
false. So clean it up by removing this.
Test: art/test.py
Change-Id: Iaabf5d5afb240d7775b23d9b3fa8aee00a0c5660
Diffstat (limited to 'runtime/interpreter/interpreter.cc')
-rw-r--r-- | runtime/interpreter/interpreter.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/interpreter/interpreter.cc b/runtime/interpreter/interpreter.cc index 59388e7c96..2665d00c8b 100644 --- a/runtime/interpreter/interpreter.cc +++ b/runtime/interpreter/interpreter.cc @@ -235,14 +235,13 @@ NO_STACK_PROTECTOR static JValue ExecuteSwitch(Thread* self, const CodeItemDataAccessor& accessor, ShadowFrame& shadow_frame, - JValue result_register, - bool interpret_one_instruction) REQUIRES_SHARED(Locks::mutator_lock_) { + JValue result_register) REQUIRES_SHARED(Locks::mutator_lock_) { Runtime* runtime = Runtime::Current(); auto switch_impl_cpp = runtime->IsActiveTransaction() ? runtime->GetClassLinker()->GetTransactionalInterpreter() : reinterpret_cast<const void*>(&ExecuteSwitchImplCpp</*transaction_active=*/ false>); return ExecuteSwitchImpl( - self, accessor, shadow_frame, result_register, interpret_one_instruction, switch_impl_cpp); + self, accessor, shadow_frame, result_register, switch_impl_cpp); } NO_STACK_PROTECTOR @@ -339,8 +338,7 @@ static inline JValue Execute( VLOG(interpreter) << "Interpreting " << method->PrettyMethod(); - return ExecuteSwitch( - self, accessor, shadow_frame, result_register, /*interpret_one_instruction=*/ false); + return ExecuteSwitch(self, accessor, shadow_frame, result_register); } void EnterInterpreterFromInvoke(Thread* self, |