Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index 049969979a9f26854ceff08a209de581b799b521..8fb50b4a9253b4085b747f5f10deab23b6fdf231 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -946,11 +946,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
const StubEntry* stub_entry; |
if (link_lazily()) { |
stub_entry = StubCode::CallBootstrapCFunction_entry(); |
- entry = reinterpret_cast<uword>(&NativeEntry::LinkNativeCall); |
-#if defined(USING_SIMULATOR) |
- entry = Simulator::RedirectExternalReference( |
- entry, Simulator::kBootstrapNativeCall, NativeEntry::kNumArguments); |
-#endif |
+ entry = NativeEntry::LinkNativeCallEntry(); |
} else { |
entry = reinterpret_cast<uword>(native_c_function()); |
if (is_bootstrap_native() || is_leaf_call) { |