summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2015-12-15 22:15:26 +0000
committerAlex Light <allight@google.com>2015-12-15 22:15:26 +0000
commitae358c1d5cef227b44d6f4971b79e1ab91aa26eb (patch)
tree95c22194af5ea38a4fa5fc8bbe07ba60b6d0a021 /compiler/common_compiler_test.cc
parent6286a97bea0f584342803a215550038852b24776 (diff)
Revert "Combine direct_methods_ and virtual_methods_ fields of mirror::Class"
This reverts commit 6286a97bea0f584342803a215550038852b24776. Change-Id: I5b00f6d1350e9c587acd4b185367dc815ea707de
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);
}
}