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

Unified Diff: runtime/vm/runtime_entry_arm64.cc

Issue 311903004: Fixes to run "Hello, world!" on arm64 hardware. (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 | « runtime/vm/object_arm64_test.cc ('k') | runtime/vm/simulator_arm64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry_arm64.cc
===================================================================
--- runtime/vm/runtime_entry_arm64.cc (revision 36919)
+++ runtime/vm/runtime_entry_arm64.cc (working copy)
@@ -40,7 +40,10 @@
if (is_leaf()) {
ASSERT(argument_count == this->argument_count());
ExternalLabel label(entry);
+ // Cache the stack pointer in a callee-saved register.
+ __ mov(R26, SP);
__ BranchLink(&label, kNoPP);
+ __ mov(SP, R26);
} else {
// Argument count is not checked here, but in the runtime entry for a more
// informative error message.
« no previous file with comments | « runtime/vm/object_arm64_test.cc ('k') | runtime/vm/simulator_arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698