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

Unified Diff: runtime/vm/runtime_entry_arm.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/assembler_x64.cc ('k') | runtime/vm/runtime_entry_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry_arm.cc
diff --git a/runtime/vm/runtime_entry_arm.cc b/runtime/vm/runtime_entry_arm.cc
index 09cb5de15ffe945e86dca264f07dd3964da27183..e3aceb0f555197ecf68729a5f7a2cd52008482b0 100644
--- a/runtime/vm/runtime_entry_arm.cc
+++ b/runtime/vm/runtime_entry_arm.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(R5, entry);
+ __ LoadExternalLabel(R5, &label, kNotPatchable);
__ LoadImmediate(R4, argument_count);
- __ BranchLink(&Isolate::Current()->stub_code()->CallToRuntimeLabel());
+ __ BranchLink(&Isolate::Current()->stub_code()->CallToRuntimeLabel(),
+ kNotPatchable);
}
}
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/runtime_entry_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698