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

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

Issue 12051013: Cleanup how we handle side effects in HInstruction and put the right flags for HIs, modulo, truncat… (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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | tests/compiler/dart2js/gvn_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/tracer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/tracer.dart (revision 17440)
+++ sdk/lib/_internal/compiler/implementation/ssa/tracer.dart (working copy)
@@ -274,18 +274,26 @@
String visitFieldGet(HFieldGet node) {
String fieldName = node.element.name.slowToString();
- return 'get ${temporaryId(node.receiver)}.$fieldName';
+ return 'field get ${temporaryId(node.receiver)}.$fieldName';
}
String visitFieldSet(HFieldSet node) {
String valueId = temporaryId(node.value);
String fieldName = node.element.name.slowToString();
- return 'set ${temporaryId(node.receiver)}.$fieldName to $valueId';
+ return 'field set ${temporaryId(node.receiver)}.$fieldName to $valueId';
}
- String visitLocalGet(HLocalGet node) => visitFieldGet(node);
- String visitLocalSet(HLocalSet node) => visitFieldSet(node);
+ String visitLocalGet(HLocalGet node) {
+ String localName = node.element.name.slowToString();
+ return 'local get ${temporaryId(node.local)}.$localName';
+ }
+ String visitLocalSet(HLocalSet node) {
+ String valueId = temporaryId(node.value);
+ String localName = node.element.name.slowToString();
+ return 'local set ${temporaryId(node.local)}.$localName to $valueId';
+ }
+
String visitGoto(HGoto node) {
HBasicBlock target = currentBlock.successors[0];
return "Goto: (B${target.id})";
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | tests/compiler/dart2js/gvn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698