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

Unified Diff: vm/assembler_x64.cc

Issue 10758008: - On store buffer block overflow call a VM leaf function to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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/store_buffer.h » ('j') | vm/store_buffer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/assembler_x64.cc
===================================================================
--- vm/assembler_x64.cc (revision 9468)
+++ vm/assembler_x64.cc (working copy)
@@ -1545,6 +1545,36 @@
}
+void Assembler::PreserveCallerSavedRegisters() {
+ // Based on http://x86-64.org/documentation/abi.pdf Fig. 3.4
+ pushq(RAX);
+ pushq(RCX);
+ pushq(RDX);
+ pushq(RSI);
+ pushq(RDI);
+ pushq(R8);
+ pushq(R9);
+ pushq(R10);
+ pushq(R11);
+ // TODO(srdjan): Add XMM registers once they are used by the compiler.
+}
+
+
+void Assembler::RestoreCallerSavedRegisters() {
+ // Based on http://x86-64.org/documentation/abi.pdf Fig. 3.4
+ // TODO(srdjan): Add XMM registers once they are used by the compiler.
+ popq(R11);
+ popq(R10);
+ popq(R9);
+ popq(R8);
+ popq(RDI);
+ popq(RSI);
+ popq(RDX);
+ popq(RCX);
+ popq(RAX);
+}
+
+
void Assembler::CallRuntime(const RuntimeEntry& entry) {
entry.Call(this);
}
« no previous file with comments | « vm/assembler_x64.h ('k') | vm/store_buffer.h » ('j') | vm/store_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698