diff options
author | 2019-02-20 11:27:52 +0000 | |
---|---|---|
committer | 2019-02-20 12:03:00 +0000 | |
commit | 2b076df33e508c04657427e4bd961d19f964e0ed (patch) | |
tree | 37c77f1f86400bf52b9f49cff9f40ba2de9122fe /runtime/common_runtime_test.cc | |
parent | 038924b75f06b91c2a7e944196ca11f118ce182f (diff) |
Make jni_internal_test a CommonRuntimeTest.
Also clean up proxy_test and reflection_test.
Test: m test-art-host-gtest
Change-Id: I7530855a40d7b9f7214ea7a069508ae1361b2b42
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r-- | runtime/common_runtime_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc index a20baa0dc4..ca410d9ba9 100644 --- a/runtime/common_runtime_test.cc +++ b/runtime/common_runtime_test.cc @@ -385,6 +385,13 @@ void CommonRuntimeTestImpl::SetUpRuntimeOptionsForFillHeap(RuntimeOptions *optio } } +void CommonRuntimeTestImpl::MakeInterpreted(ObjPtr<mirror::Class> klass) { + PointerSize pointer_size = class_linker_->GetImagePointerSize(); + for (ArtMethod& method : klass->GetMethods(pointer_size)) { + class_linker_->SetEntryPointsToInterpreter(&method); + } +} + bool CommonRuntimeTestImpl::StartDex2OatCommandLine(/*out*/std::vector<std::string>* argv, /*out*/std::string* error_msg) { DCHECK(argv != nullptr); |