diff options
author | 2017-07-20 14:09:32 +0000 | |
---|---|---|
committer | 2017-07-20 14:09:32 +0000 | |
commit | 331f4c4e287791611733120c1a1c2afd55ecdd65 (patch) | |
tree | 1fcf7810c6c8e2df8b6191bb14a69084f3c7cf11 /compiler/exception_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/exception_test.cc')
-rw-r--r-- | compiler/exception_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc index b4777df0df..0b3ca69846 100644 --- a/compiler/exception_test.cc +++ b/compiler/exception_test.cc @@ -102,12 +102,14 @@ class ExceptionTest : public CommonRuntimeTest { CHECK_ALIGNED(stack_maps_offset, 2); } - method_f_ = my_klass_->FindVirtualMethod("f", "()I", kRuntimePointerSize); + method_f_ = my_klass_->FindClassMethod("f", "()I", kRuntimePointerSize); ASSERT_TRUE(method_f_ != nullptr); + ASSERT_FALSE(method_f_->IsDirect()); method_f_->SetEntryPointFromQuickCompiledCode(code_ptr); - method_g_ = my_klass_->FindVirtualMethod("g", "(I)V", kRuntimePointerSize); + method_g_ = my_klass_->FindClassMethod("g", "(I)V", kRuntimePointerSize); ASSERT_TRUE(method_g_ != nullptr); + ASSERT_FALSE(method_g_->IsDirect()); method_g_->SetEntryPointFromQuickCompiledCode(code_ptr); } |