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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 10909169: Add support for WritableRegister policy in the register allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't use non-volatile EBX in a test Created 8 years, 3 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/assembler_x64.h ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 20153ad438ceca507c377ac0b4605406633e2cd4..a8ce3afbcf2780816af0884bd707035418ffebb2 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -1594,11 +1594,9 @@ void Assembler::StoreIntoObjectFilter(Register object,
void Assembler::StoreIntoObject(Register object,
const FieldAddress& dest,
Register value) {
- // TODO(kmillikin): pass temp registers to avoid pushing registers.
+ ASSERT(object != value);
movq(dest, value);
-
Label done;
- pushq(value);
StoreIntoObjectFilter(object, value, &done);
// A store buffer update is required.
if (value != RAX) pushq(RAX);
@@ -1606,7 +1604,6 @@ void Assembler::StoreIntoObject(Register object,
call(&StubCode::UpdateStoreBufferLabel());
if (value != RAX) popq(RAX);
Bind(&done);
- popq(value);
}
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698