Chromium Code Reviews| Index: runtime/vm/intermediate_language_arm.cc |
| diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
| index c81656105336ab8e166d9013cf971a72162bcfdb..191a03c8b8fd93e3af4953e1753b49aa12642b4b 100644 |
| --- a/runtime/vm/intermediate_language_arm.cc |
| +++ b/runtime/vm/intermediate_language_arm.cc |
| @@ -947,7 +947,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); |
|
Florian Schneider
2015/09/10 20:21:09
Argument count of 1 is correct, but redirection->a
rmacnak
2015/09/10 22:37:27
Ah, I didn't see that redirection case was differe
|
| #endif |
| } else { |
| entry = reinterpret_cast<uword>(native_c_function()); |
| @@ -955,7 +955,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 |
| @@ -965,14 +965,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(R1, argc_tag); |
| ExternalLabel label(entry); |
| - __ LoadExternalLabel(R5, &label, link_lazily() ? kPatchable : kNotPatchable); |
| + __ LoadNativeEntry(R5, &label, link_lazily() ? kPatchable : kNotPatchable); |
| compiler->GenerateCall(token_pos(), |
| *stub_entry, |
| RawPcDescriptors::kOther, |