Revert^3 "VIXL simulator for ART (Stage1)"
This reverts commit e886d68b9c40c941d8966b9c90d0e265c75fb19e.
Reason for revert: simulator implemention is not ready yet.
Test: lunch aosp_cf_x86_phone-userdebug && m
Test: art/test.py --run-test --optimizing --host
Change-Id: I03c8c09ea348205b0238d7a26caef3477cd6ae3b
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index dafad75..124a2a5 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -2184,14 +2184,9 @@
header.VisitPackedArtMethods([&](ArtMethod& method) REQUIRES_SHARED(Locks::mutator_lock_) {
if (!method.IsRuntimeMethod()) {
DCHECK(method.GetDeclaringClass() != nullptr);
- if (!method.IsResolutionMethod()) {
- if (!method.IsNative()) {
- method.SetEntryPointFromQuickCompiledCodePtrSize(GetQuickToInterpreterBridge(),
- image_pointer_size_);
- } else if (Runtime::SimulatorMode()) {
- method.SetEntryPointFromQuickCompiledCodePtrSize(GetQuickGenericJniStub(),
- image_pointer_size_);
- }
+ if (!method.IsNative() && !method.IsResolutionMethod()) {
+ method.SetEntryPointFromQuickCompiledCodePtrSize(GetQuickToInterpreterBridge(),
+ image_pointer_size_);
}
}
}, space->Begin(), image_pointer_size_);
@@ -3558,10 +3553,6 @@
return true;
}
- if (Runtime::SimulatorMode()) {
- return !method->CanBeSimulated();
- }
-
Runtime* runtime = Runtime::Current();
instrumentation::Instrumentation* instr = runtime->GetInstrumentation();
if (instr->InterpretOnly()) {
@@ -3679,7 +3670,7 @@
}
// Check whether the method is native, in which case it's generic JNI.
- if ((Runtime::SimulatorMode() || quick_code == nullptr) && method->IsNative()) {
+ if (quick_code == nullptr && method->IsNative()) {
quick_code = GetQuickGenericJniStub();
} else if (ShouldUseInterpreterEntrypoint(method, quick_code)) {
// Use interpreter entry point.
@@ -3739,7 +3730,7 @@
// Note: this mimics the logic in image_writer.cc that installs the resolution
// stub only if we have compiled code and the method needs a class initialization
// check.
- if (quick_code == nullptr || Runtime::SimulatorMode()) {
+ if (quick_code == nullptr) {
method->SetEntryPointFromQuickCompiledCode(
method->IsNative() ? GetQuickGenericJniStub() : GetQuickToInterpreterBridge());
} else if (enter_interpreter) {