Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(820)

Unified Diff: runtime/vm/intermediate_language_mips.cc

Issue 1316673005: Track which entries in the ObjectPool are native entries, and reset them when loading a precompiled… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698