diff options
author | 2021-01-07 10:59:54 +0000 | |
---|---|---|
committer | 2021-01-11 13:53:33 +0000 | |
commit | 83881483515aec1dfaa0c848f1ce876c3f966b43 (patch) | |
tree | 01bfa31dbdef146ec88505378e4829f133a5ab91 /runtime/interpreter/unstarted_runtime_test.cc | |
parent | 7d4a71ee0ecab7bf65086c786fb5358444dd2a8f (diff) |
Rewrite method matching in UnstartedRuntime.
Use the `ArtMethod*` as the key in the maps to avoid
the `PrettyMethod()` overhead.
Remove ByteOrder.isLittleEndian() implementation from
UnstartedRuntime. The Java method has been removed by
https://android-review.googlesource.com/151062 .
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: boots.
Bug: 175869411
Change-Id: I97cf91a0abf2b28f83562d8764d28edafa1a09e2
Diffstat (limited to 'runtime/interpreter/unstarted_runtime_test.cc')
-rw-r--r-- | runtime/interpreter/unstarted_runtime_test.cc | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/runtime/interpreter/unstarted_runtime_test.cc b/runtime/interpreter/unstarted_runtime_test.cc index 792444a956..77075a6c54 100644 --- a/runtime/interpreter/unstarted_runtime_test.cc +++ b/runtime/interpreter/unstarted_runtime_test.cc @@ -42,6 +42,7 @@ #include "shadow_frame-inl.h" #include "thread.h" #include "transaction.h" +#include "unstarted_runtime_list.h" namespace art { namespace interpreter { @@ -64,34 +65,28 @@ class UnstartedRuntimeTest : public CommonRuntimeTest { // test friends. // Methods that intercept available libcore implementations. -#define UNSTARTED_DIRECT(Name, SigIgnored) \ - static void Unstarted ## Name(Thread* self, \ - ShadowFrame* shadow_frame, \ - JValue* result, \ - size_t arg_offset) \ - REQUIRES_SHARED(Locks::mutator_lock_) { \ +#define UNSTARTED_DIRECT(Name, DescriptorIgnored, NameIgnored, SignatureIgnored) \ + static void Unstarted ## Name(Thread* self, \ + ShadowFrame* shadow_frame, \ + JValue* result, \ + size_t arg_offset) \ + REQUIRES_SHARED(Locks::mutator_lock_) { \ interpreter::UnstartedRuntime::Unstarted ## Name(self, shadow_frame, result, arg_offset); \ } -#include "unstarted_runtime_list.h" UNSTARTED_RUNTIME_DIRECT_LIST(UNSTARTED_DIRECT) -#undef UNSTARTED_RUNTIME_DIRECT_LIST -#undef UNSTARTED_RUNTIME_JNI_LIST #undef UNSTARTED_DIRECT // Methods that are native. -#define UNSTARTED_JNI(Name, SigIgnored) \ - static void UnstartedJNI ## Name(Thread* self, \ - ArtMethod* method, \ - mirror::Object* receiver, \ - uint32_t* args, \ - JValue* result) \ - REQUIRES_SHARED(Locks::mutator_lock_) { \ +#define UNSTARTED_JNI(Name, DescriptorIgnored, NameIgnored, SignatureIgnored) \ + static void UnstartedJNI ## Name(Thread* self, \ + ArtMethod* method, \ + mirror::Object* receiver, \ + uint32_t* args, \ + JValue* result) \ + REQUIRES_SHARED(Locks::mutator_lock_) { \ interpreter::UnstartedRuntime::UnstartedJNI ## Name(self, method, receiver, args, result); \ } -#include "unstarted_runtime_list.h" UNSTARTED_RUNTIME_JNI_LIST(UNSTARTED_JNI) -#undef UNSTARTED_RUNTIME_DIRECT_LIST -#undef UNSTARTED_RUNTIME_JNI_LIST #undef UNSTARTED_JNI UniqueDeoptShadowFramePtr CreateShadowFrame(uint32_t num_vregs, |