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

Unified Diff: vm/runtime_entry_ia32.cc

Issue 10542123: Add support for leaf runtime calls (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
Index: vm/runtime_entry_ia32.cc
===================================================================
--- vm/runtime_entry_ia32.cc (revision 8520)
+++ vm/runtime_entry_ia32.cc (working copy)
@@ -23,7 +23,11 @@
void RuntimeEntry::Call(Assembler* assembler) const {
__ movl(ECX, Immediate(GetEntryPoint()));
__ movl(EDX, Immediate(argument_count()));
- __ call(&StubCode::CallToRuntimeLabel());
+ if (is_leaf()) {
+ __ call(&StubCode::CallToLeafRuntimeLabel());
+ } else {
+ __ call(&StubCode::CallToRuntimeLabel());
+ }
}
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698