summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2015-12-15 22:17:21 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-12-15 22:17:21 +0000
commitbc90a0538e56f98b8e138cb622e6b9d834244ad9 (patch)
treefd85833863a13ce4abc7baaea1d2059c2419ad1e /compiler/common_compiler_test.cc
parent0bbc1727c446ee5f4cc3c28e68127164ef379594 (diff)
parentae358c1d5cef227b44d6f4971b79e1ab91aa26eb (diff)
Merge "Revert "Combine direct_methods_ and virtual_methods_ fields of mirror::Class""
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r--compiler/common_compiler_test.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index c7c190793c..638b897eea 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -142,7 +142,10 @@ void CommonCompilerTest::MakeExecutable(mirror::ClassLoader* class_loader, const
mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), loader);
CHECK(klass != nullptr) << "Class not found " << class_name;
size_t pointer_size = class_linker_->GetImagePointerSize();
- for (auto& m : klass->GetMethods(pointer_size)) {
+ for (auto& m : klass->GetDirectMethods(pointer_size)) {
+ MakeExecutable(&m);
+ }
+ for (auto& m : klass->GetVirtualMethods(pointer_size)) {
MakeExecutable(&m);
}
}
@@ -256,7 +259,10 @@ void CommonCompilerTest::CompileClass(mirror::ClassLoader* class_loader, const c
mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), loader);
CHECK(klass != nullptr) << "Class not found " << class_name;
auto pointer_size = class_linker_->GetImagePointerSize();
- for (auto& m : klass->GetMethods(pointer_size)) {
+ for (auto& m : klass->GetDirectMethods(pointer_size)) {
+ CompileMethod(&m);
+ }
+ for (auto& m : klass->GetVirtualMethods(pointer_size)) {
CompileMethod(&m);
}
}