diff options
| author | 2022-09-28 09:42:57 +0000 | |
|---|---|---|
| committer | 2022-09-28 09:42:57 +0000 | |
| commit | 6b4e9e178ee66b80d58aa7afaaccda9ce324ccfb (patch) | |
| tree | e00a8315b61467db8e86b7a212d1bbdbb7c5b3ec /compiler/common_compiler_test.cc | |
| parent | f2601a544622a72962360a5a77b9ea9ed8cdf30e (diff) | |
| parent | d8d8cc1f2069f67bcf69146983b717c11f178601 (diff) | |
Move ReflectionTest.StaticMainMethod to compiler/. am: 51d4445f21 am: f033a451bf am: aa54c808cd am: d8d8cc1f20
Original change: https://android-review.googlesource.com/c/platform/art/+/2232131
Change-Id: Icf16bfafb0a1c5f4ee12c7d39c86fe1e706133d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'compiler/common_compiler_test.cc')
| -rw-r--r-- | compiler/common_compiler_test.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index bbb2016566..ab0e3e17cf 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -267,40 +267,6 @@ void CommonCompilerTestImpl::CompileMethod(ArtMethod* method) { CompiledMethod::ReleaseSwapAllocatedCompiledMethod(&storage, compiled_method); } -void CommonCompilerTestImpl::CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, - const char* class_name, - const char* method_name, - const char* signature) { - std::string class_descriptor(DotToDescriptor(class_name)); - Thread* self = Thread::Current(); - ClassLinker* class_linker = GetClassLinker(); - ObjPtr<mirror::Class> klass = - class_linker->FindClass(self, class_descriptor.c_str(), class_loader); - CHECK(klass != nullptr) << "Class not found " << class_name; - auto pointer_size = class_linker->GetImagePointerSize(); - ArtMethod* method = klass->FindClassMethod(method_name, signature, pointer_size); - CHECK(method != nullptr && method->IsDirect()) << "Direct method not found: " - << class_name << "." << method_name << signature; - CompileMethod(method); -} - -void CommonCompilerTestImpl::CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, - const char* class_name, - const char* method_name, - const char* signature) { - std::string class_descriptor(DotToDescriptor(class_name)); - Thread* self = Thread::Current(); - ClassLinker* class_linker = GetClassLinker(); - ObjPtr<mirror::Class> klass = - class_linker->FindClass(self, class_descriptor.c_str(), class_loader); - CHECK(klass != nullptr) << "Class not found " << class_name; - auto pointer_size = class_linker->GetImagePointerSize(); - ArtMethod* method = klass->FindClassMethod(method_name, signature, pointer_size); - CHECK(method != nullptr && !method->IsDirect()) << "Virtual method not found: " - << class_name << "." << method_name << signature; - CompileMethod(method); -} - void CommonCompilerTestImpl::ClearBootImageOption() { compiler_options_->image_type_ = CompilerOptions::ImageType::kNone; } |