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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 10559035: Implement a simple register allocator that tries to keep instruction results in registers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
Index: runtime/vm/assembler_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 1d0884975aa04a7a819e6ba99de324ada5dd8ac6..729a3b18a2c0372ed52989702d44fba3f7df8372 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -1327,6 +1327,16 @@ void Assembler::MoveRegister(Register to, Register from) {
}
+void Assembler::PushRegister(Register r) {
+ pushq(r);
+}
+
+
+void Assembler::PopRegister(Register r) {
+ popq(r);
+}
+
+
void Assembler::AddImmediate(Register reg, const Immediate& imm) {
int64_t value = imm.value();
if (value > 0) {

Powered by Google App Engine
This is Rietveld 408576698