diff options
author | 2017-07-20 14:09:32 +0000 | |
---|---|---|
committer | 2017-07-20 14:09:32 +0000 | |
commit | 331f4c4e287791611733120c1a1c2afd55ecdd65 (patch) | |
tree | 1fcf7810c6c8e2df8b6191bb14a69084f3c7cf11 /compiler/common_compiler_test.cc | |
parent | 13c8343a3394414c90f2fcd1e8efff70e7d2387e (diff) | |
parent | ba118827465d12177f3996e50133960087b1c916 (diff) |
Merge "ART: Change method lookup to be more consistent to JLS and the RI."
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 3683695a1b..08145e202e 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -265,8 +265,8 @@ void CommonCompilerTest::CompileDirectMethod(Handle<mirror::ClassLoader> class_l 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->FindDirectMethod(method_name, signature, pointer_size); - CHECK(method != nullptr) << "Direct method not found: " + 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); } @@ -279,8 +279,8 @@ void CommonCompilerTest::CompileVirtualMethod(Handle<mirror::ClassLoader> class_ 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->FindVirtualMethod(method_name, signature, pointer_size); - CHECK(method != nullptr) << "Virtual method not found: " + 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); } |