diff options
author | 2024-05-02 14:16:41 +0000 | |
---|---|---|
committer | 2024-05-03 06:05:02 +0000 | |
commit | 5a4566f39c3e22ecca1e88008af772c1a808ac9b (patch) | |
tree | c8f5697c8e708b2fa4ee82222c816097242933f3 /runtime/interpreter/interpreter_switch_impl-inl.h | |
parent | db15ea652d13811e236e1f12c88807ebfed05da9 (diff) |
Clean up `Transaction` use in switch interpreter.
This is a follow-up to
https://android-review.googlesource.com/3070189
to remove some more switch interpreter dependencies on
the `Transaction` class.
Test: m test-art-host-gtest
Test: testrunner.py --host --interp-ac --optimizing
Change-Id: I6f6bb470c727fb376b3552a3e15af7c8f0eea385
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl-inl.h')
-rw-r--r-- | runtime/interpreter/interpreter_switch_impl-inl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl-inl.h b/runtime/interpreter/interpreter_switch_impl-inl.h index 0c50238e48..8ff6a897f8 100644 --- a/runtime/interpreter/interpreter_switch_impl-inl.h +++ b/runtime/interpreter/interpreter_switch_impl-inl.h @@ -23,6 +23,7 @@ #include "base/memory_tool.h" #include "base/pointer_size.h" #include "base/quasi_atomic.h" +#include "common_throws.h" #include "dex/dex_file_types.h" #include "dex/dex_instruction_list.h" #include "experimental_flags.h" @@ -65,7 +66,7 @@ class InstructionHandler { StackHandleScope<1u> hs(Self()); Handle<mirror::Throwable> abort_exception = hs.NewHandle(Self()->GetException()); DCHECK(abort_exception != nullptr); - DCHECK(abort_exception->GetClass()->DescriptorEquals(Transaction::kAbortExceptionDescriptor)); + DCHECK(abort_exception->GetClass()->DescriptorEquals(kTransactionAbortErrorDescriptor)); Self()->ClearException(); PerformNonStandardReturn( Self(), shadow_frame_, ctx_->result, Instrumentation(), Accessor().InsSize()); |