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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 9601011: Implement postfix indexed increment. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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/flow_graph_compiler_x64.cc
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
index 7ffc8a14050f4feabe3dcea4ab9b0b3698865f57..d5f4f922407f783869e0169e2fd445e6d0e971d5 100644
--- a/runtime/vm/flow_graph_compiler_x64.cc
+++ b/runtime/vm/flow_graph_compiler_x64.cc
@@ -61,6 +61,21 @@ void FlowGraphCompiler::VisitConstant(ConstantVal* val) {
}
+void FlowGraphCompiler::VisitCopyTemp(CopyTempComp* comp) {
+ // Index is a stack index. Semantics is to produce a duplicate of the
+ // temp at index.
+ __ movq(RAX, Address(RSP, comp->index() * (-kWordSize)));
+}
+
+
+void FlowGraphCompiler::VisitSetTemp(SetTempComp* comp) {
+ // Index is a stack index. Semantics is to store a (copy of) the TOS in
+ // the temp at index.
+ __ movq(RAX, Address(RSP, 0));
+ __ movq(Address(RSP, comp->index() * (-kWordSize)), RAX);
+}
+
+
void FlowGraphCompiler::VisitAssertAssignable(AssertAssignableComp* comp) {
Bailout("AssertAssignableComp");
}

Powered by Google App Engine
This is Rietveld 408576698