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

Unified Diff: runtime/vm/assembler_arm64.h

Issue 317443004: Uses assembler macro for dart SP setup on arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « no previous file | runtime/vm/assembler_arm64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64.h
===================================================================
--- runtime/vm/assembler_arm64.h (revision 36930)
+++ runtime/vm/assembler_arm64.h (working copy)
@@ -1174,6 +1174,15 @@
void EnterFrame(intptr_t frame_size);
void LeaveFrame();
+ // When entering Dart code from C++, we copy the system stack pointer (CSP)
+ // to the Dart stack pointer (SP), and reserve a little space for the stack
+ // to grow.
+ void SetupDartSP(intptr_t reserved_space) {
+ ASSERT(Utils::IsAligned(reserved_space, 16));
+ mov(SP, CSP);
+ sub(CSP, CSP, Operand(reserved_space));
+ }
+
void EnterDartFrame(intptr_t frame_size);
void EnterDartFrameWithInfo(intptr_t frame_size, Register new_pp);
void EnterOsrFrame(intptr_t extra_size, Register new_pp);
« no previous file with comments | « no previous file | runtime/vm/assembler_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698