Index: runtime/vm/stub_code_mips.cc |
diff --git a/runtime/vm/stub_code_mips.cc b/runtime/vm/stub_code_mips.cc |
index 359a3d43e10cd5893dad530e11e68961b0703bfe..36f73f7ba131269a7b28ae46a51fec403f5cc5b1 100644 |
--- a/runtime/vm/stub_code_mips.cc |
+++ b/runtime/vm/stub_code_mips.cc |
@@ -199,16 +199,10 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) { |
__ mov(A1, T5); // Pass the function entrypoint. |
__ ReserveAlignedFrameSpace(2 * kWordSize); // Just passing A0, A1. |
+ |
// Call native wrapper function or redirection via simulator. |
-#if defined(USING_SIMULATOR) |
- uword entry = reinterpret_cast<uword>(NativeEntry::NativeCallWrapper); |
- entry = Simulator::RedirectExternalReference( |
- entry, Simulator::kNativeCall, NativeEntry::kNumCallWrapperArguments); |
- __ LoadImmediate(T9, entry); |
+ __ lw(T9, Address(THR, Thread::native_call_wrapper_entry_point_offset())); |
__ jalr(T9); |
-#else |
- __ BranchLink(&NativeEntry::NativeCallWrapperLabel(), kNotPatchable); |
-#endif |
__ Comment("CallNativeCFunctionStub return"); |
// Mark that the isolate is executing Dart code. |