summaryrefslogtreecommitdiff
path: root/dex2oat/driver/compiler_driver_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dex2oat/driver/compiler_driver_test.cc')
-rw-r--r--dex2oat/driver/compiler_driver_test.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/dex2oat/driver/compiler_driver_test.cc b/dex2oat/driver/compiler_driver_test.cc
index 7d4c32b25c..5dc6589d53 100644
--- a/dex2oat/driver/compiler_driver_test.cc
+++ b/dex2oat/driver/compiler_driver_test.cc
@@ -31,6 +31,7 @@
#include "dex/dex_file_types.h"
#include "gc/heap.h"
#include "handle_scope-inl.h"
+#include "instrumentation-inl.h"
#include "mirror/class-inl.h"
#include "mirror/class_loader.h"
#include "mirror/dex_cache-inl.h"
@@ -93,7 +94,11 @@ class CompilerDriverTest : public CommonCompilerDriverTest {
LOG(INFO) << "MakeExecutable " << method->PrettyMethod() << " code=" << method_code;
}
}
- runtime_->GetInstrumentation()->InitializeMethodsCode(method, /*aot_code=*/ method_code);
+ instrumentation::Instrumentation* instr = runtime_->GetInstrumentation();
+ const void* entrypoint = instr->GetInitialEntrypoint(method->GetAccessFlags(), method_code);
+ CHECK(!instr->IsForcedInterpretOnly());
+ CHECK(!instr->EntryExitStubsInstalled());
+ instr->UpdateMethodsCode(method, entrypoint);
}
void MakeDexFileExecutable(jobject class_loader, const DexFile& dex_file) {