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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart

Issue 1229893002: dart2js cps: Redundant join elimination. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.ir_tracer; 5 library dart2js.ir_tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 import 'cps_ir_nodes.dart' as cps_ir hide Function; 8 import 'cps_ir_nodes.dart' as cps_ir hide Function;
9 import '../tracer.dart'; 9 import '../tracer.dart';
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 visitLetPrim(cps_ir.LetPrim node) { 104 visitLetPrim(cps_ir.LetPrim node) {
105 String id = names.name(node.primitive); 105 String id = names.name(node.primitive);
106 printStmt(id, "LetPrim $id = ${formatPrimitive(node.primitive)}"); 106 printStmt(id, "LetPrim $id = ${formatPrimitive(node.primitive)}");
107 visit(node.body); 107 visit(node.body);
108 } 108 }
109 109
110 visitLetCont(cps_ir.LetCont node) { 110 visitLetCont(cps_ir.LetCont node) {
111 if (IR_TRACE_LET_CONT) { 111 if (IR_TRACE_LET_CONT) {
112 String dummy = names.name(node); 112 String dummy = names.name(node);
113 for (cps_ir.Continuation continuation in node.continuations) { 113 String ids = node.continuations.map(names.name).join(', ');
114 String id = names.name(continuation); 114 printStmt(dummy, "LetCont $ids");
115 printStmt(dummy, "LetCont $id = <$id>");
116 }
117 } 115 }
118 visit(node.body); 116 visit(node.body);
119 } 117 }
120 118
121 visitLetHandler(cps_ir.LetHandler node) { 119 visitLetHandler(cps_ir.LetHandler node) {
122 if (IR_TRACE_LET_CONT) { 120 if (IR_TRACE_LET_CONT) {
123 String dummy = names.name(node); 121 String dummy = names.name(node);
124 String id = names.name(node.handler); 122 String id = names.name(node.handler);
125 printStmt(dummy, "LetHandler $id = <$id>"); 123 printStmt(dummy, "LetHandler $id = <$id>");
126 } 124 }
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 unexpectedNode(node); 659 unexpectedNode(node);
662 } 660 }
663 661
664 @override 662 @override
665 visitForeignCode(cps_ir.ForeignCode node) { 663 visitForeignCode(cps_ir.ForeignCode node) {
666 if (node.continuation != null) { 664 if (node.continuation != null) {
667 addEdgeToContinuation(node.continuation); 665 addEdgeToContinuation(node.continuation);
668 } 666 }
669 } 667 }
670 } 668 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | pkg/compiler/lib/src/cps_ir/optimizers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698