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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 10807070: Various cleanups, adding tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « runtime/vm/assembler_x64_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 9813)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -1109,7 +1109,7 @@
#define __ compiler_->assembler()->
-static Address ToAddress(Location loc) {
+static Address ToSpillAddress(Location loc) {
ASSERT(loc.IsSpillSlot());
const intptr_t offset =
(ParsedFunction::kFirstLocalSlotIndex - loc.spill_index()) * kWordSize;
@@ -1127,14 +1127,14 @@
__ movl(destination.reg(), source.reg());
} else {
ASSERT(destination.IsSpillSlot());
- __ movl(ToAddress(destination), source.reg());
+ __ movl(ToSpillAddress(destination), source.reg());
}
} else if (source.IsSpillSlot()) {
if (destination.IsRegister()) {
- __ movl(destination.reg(), ToAddress(source));
+ __ movl(destination.reg(), ToSpillAddress(source));
} else {
ASSERT(destination.IsSpillSlot());
- MoveMemoryToMemory(ToAddress(destination), ToAddress(source));
+ MoveMemoryToMemory(ToSpillAddress(destination), ToSpillAddress(source));
}
} else {
ASSERT(source.IsConstant());
@@ -1142,7 +1142,7 @@
__ LoadObject(destination.reg(), source.constant());
} else {
ASSERT(destination.IsSpillSlot());
- StoreObject(ToAddress(destination), source.constant());
+ StoreObject(ToSpillAddress(destination), source.constant());
}
}
@@ -1158,11 +1158,11 @@
if (source.IsRegister() && destination.IsRegister()) {
__ xchgl(destination.reg(), source.reg());
} else if (source.IsRegister() && destination.IsSpillSlot()) {
- Exchange(source.reg(), ToAddress(destination));
+ Exchange(source.reg(), ToSpillAddress(destination));
} else if (source.IsSpillSlot() && destination.IsRegister()) {
- Exchange(destination.reg(), ToAddress(source));
+ Exchange(destination.reg(), ToSpillAddress(source));
} else if (source.IsSpillSlot() && destination.IsSpillSlot()) {
- Exchange(ToAddress(destination), ToAddress(source));
+ Exchange(ToSpillAddress(destination), ToSpillAddress(source));
} else {
UNREACHABLE();
}
« no previous file with comments | « runtime/vm/assembler_x64_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698