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

Unified Diff: runtime/vm/runtime_entry_mips.cc

Issue 1189573004: Use object pool for runtime calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/runtime_entry_arm64.cc ('k') | runtime/vm/runtime_entry_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry_mips.cc
diff --git a/runtime/vm/runtime_entry_mips.cc b/runtime/vm/runtime_entry_mips.cc
index 70f51cc7a47a0506e56f5a113a8cf388a5e5778e..872a37c26a2bd97d4982969248ccd94ecd0aeb11 100644
--- a/runtime/vm/runtime_entry_mips.cc
+++ b/runtime/vm/runtime_entry_mips.cc
@@ -40,16 +40,17 @@ void RuntimeEntry::Call(Assembler* assembler, intptr_t argument_count) const {
entry =
Simulator::RedirectExternalReference(entry, call_kind, argument_count);
#endif
+ ExternalLabel label(entry);
if (is_leaf()) {
ASSERT(argument_count == this->argument_count());
- ExternalLabel label(entry);
__ BranchLink(&label);
} else {
// Argument count is not checked here, but in the runtime entry for a more
// informative error message.
- __ LoadImmediate(S5, entry);
+ __ LoadExternalLabel(S5, &label, kNotPatchable);
__ LoadImmediate(S4, argument_count);
- __ BranchLink(&Isolate::Current()->stub_code()->CallToRuntimeLabel());
+ __ BranchLink(&Isolate::Current()->stub_code()->CallToRuntimeLabel(),
+ kNotPatchable);
}
}
« no previous file with comments | « runtime/vm/runtime_entry_arm64.cc ('k') | runtime/vm/runtime_entry_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698