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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 14476009: Enable api tests on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/stub_code_ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
===================================================================
--- runtime/vm/stub_code_x64.cc (revision 21968)
+++ runtime/vm/stub_code_x64.cc (working copy)
@@ -316,9 +316,9 @@
// - Fill the unoptimized frame.
// - Materialize objects that require allocation (e.g. Double instances).
// GC can occur only after frame is fully rewritten.
-// Stack:
+// Stack after EnterFrame(0) below:
// +------------------+
-// | Saved FP |
+// | Saved FP | <- TOS
// +------------------+
// | return-address | (deoptimization point)
// +------------------+
@@ -347,11 +347,8 @@
offset += kFpuRegisterSize;
}
- __ movq(RCX, RSP); // Saved saved registers block.
+ __ movq(RDI, RSP); // Pass address of saved registers block.
__ ReserveAlignedFrameSpace(0);
- __ SmiUntag(RAX);
- __ movq(RDI, RCX); // Set up argument 1 saved_registers_address.
-
__ CallRuntime(kDeoptimizeCopyFrameRuntimeEntry);
// Result (RAX) is stack-size (FP - SP) in bytes, incl. the return address.
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698