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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/tracer.dart

Issue 11861007: Move indexSet and unary operators to the new interceptor mechanism. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/ssa/tracer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/tracer.dart (revision 17016)
+++ sdk/lib/_internal/compiler/implementation/ssa/tracer.dart (working copy)
@@ -229,7 +229,10 @@
String visitBitAnd(HBitAnd node) => visitInvokeStatic(node);
- String visitBitNot(HBitNot node) => visitInvokeStatic(node);
+ String visitBitNot(HBitNot node) {
+ String operand = temporaryId(node.operand);
+ return "~$operand";
+ }
String visitBitOr(HBitOr node) => visitInvokeStatic(node);
@@ -312,7 +315,12 @@
return "Index: $receiver[$index]";
}
- String visitIndexAssign(HIndexAssign node) => visitInvokeStatic(node);
+ String visitIndexAssign(HIndexAssign node) {
+ String receiver = temporaryId(node.receiver);
+ String index = temporaryId(node.index);
+ String value = temporaryId(node.value);
+ return "IndexAssign: $receiver[$index] = $value";
+ }
String visitIntegerCheck(HIntegerCheck node) {
String value = temporaryId(node.value);
@@ -393,7 +401,10 @@
String visitMultiply(HMultiply node) => visitInvokeStatic(node);
- String visitNegate(HNegate node) => visitInvokeStatic(node);
+ String visitNegate(HNegate node) {
+ String operand = temporaryId(node.operand);
+ return "-$operand";
+ }
String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}";
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698