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

Unified Diff: vm/assembler_x64.cc

Issue 10592006: Rework leaf calls as just simple C calls with a signature and not the NativeArgumentDescriptor. (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
« no previous file with comments | « vm/assembler_x64.h ('k') | vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/assembler_x64.cc
===================================================================
--- vm/assembler_x64.cc (revision 8859)
+++ vm/assembler_x64.cc (working copy)
@@ -1479,6 +1479,16 @@
}
+void Assembler::ReserveAlignedFrameSpace(intptr_t frame_space) {
+ // Reserve space for arguments and align frame before entering
+ // the C++ world.
+ AddImmediate(RSP, Immediate(-frame_space));
+ if (OS::ActivationFrameAlignment() > 0) {
+ andq(RSP, Immediate(~(OS::ActivationFrameAlignment() - 1)));
+ }
+}
+
+
void Assembler::CallRuntime(const RuntimeEntry& entry) {
entry.Call(this);
}
« no previous file with comments | « vm/assembler_x64.h ('k') | vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698