| Index: runtime/vm/intermediate_language_mips.cc
|
| diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc
|
| index eb7d9321fe4c39c308d1f1c955e340265dd7e20f..40a08a6cff29c22ffabd6d2235a9f66e3c997bc2 100644
|
| --- a/runtime/vm/intermediate_language_mips.cc
|
| +++ b/runtime/vm/intermediate_language_mips.cc
|
| @@ -998,7 +998,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| entry = reinterpret_cast<uword>(&NativeEntry::LinkNativeCall);
|
| #if defined(USING_SIMULATOR)
|
| entry = Simulator::RedirectExternalReference(
|
| - entry, Simulator::kBootstrapNativeCall, function().NumParameters());
|
| + entry, Simulator::kBootstrapNativeCall, NativeEntry::kNumArguments);
|
| #endif
|
| } else {
|
| entry = reinterpret_cast<uword>(native_c_function());
|
| @@ -1006,7 +1006,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| stub_entry = StubCode::CallBootstrapCFunction_entry();
|
| #if defined(USING_SIMULATOR)
|
| entry = Simulator::RedirectExternalReference(
|
| - entry, Simulator::kBootstrapNativeCall, function().NumParameters());
|
| + entry, Simulator::kBootstrapNativeCall, NativeEntry::kNumArguments);
|
| #endif
|
| } else {
|
| // In the case of non bootstrap native methods the CallNativeCFunction
|
| @@ -1016,14 +1016,14 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| #if defined(USING_SIMULATOR)
|
| if (!function().IsNativeAutoSetupScope()) {
|
| entry = Simulator::RedirectExternalReference(
|
| - entry, Simulator::kBootstrapNativeCall, function().NumParameters());
|
| + entry, Simulator::kBootstrapNativeCall, NativeEntry::kNumArguments);
|
| }
|
| #endif
|
| }
|
| }
|
| __ LoadImmediate(A1, argc_tag);
|
| ExternalLabel label(entry);
|
| - __ LoadExternalLabel(T5, &label, kNotPatchable);
|
| + __ LoadNativeEntry(T5, &label, kNotPatchable);
|
| compiler->GenerateCall(token_pos(),
|
| *stub_entry,
|
| RawPcDescriptors::kOther,
|
|
|