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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_tracer.dart

Issue 693803003: Move continueWithExpression to IrBuilder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 8
9 import 'cps_ir_nodes.dart' as cps_ir hide Function; 9 import 'cps_ir_nodes.dart' as cps_ir hide Function;
10 import '../tracer.dart'; 10 import '../tracer.dart';
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 for (cps_ir.LiteralMapEntry entry in node.entries) { 159 for (cps_ir.LiteralMapEntry entry in node.entries) {
160 String key = formatReference(entry.key); 160 String key = formatReference(entry.key);
161 String value = formatReference(entry.value); 161 String value = formatReference(entry.value);
162 entries.add("$key: $value"); 162 entries.add("$key: $value");
163 } 163 }
164 printStmt(dummy, "LiteralMap (${entries.join(', ')})"); 164 printStmt(dummy, "LiteralMap (${entries.join(', ')})");
165 } 165 }
166 166
167 visitTypeOperator(cps_ir.TypeOperator node) { 167 visitTypeOperator(cps_ir.TypeOperator node) {
168 String dummy = names.name(node); 168 String dummy = names.name(node);
169 String operator = node.operator; 169 String operator = node.isTypeTest ? 'is' : 'as';
170 List<String> entries = new List<String>(); 170 List<String> entries = new List<String>();
171 String receiver = formatReference(node.receiver); 171 String receiver = formatReference(node.receiver);
172 printStmt(dummy, "TypeOperator ($operator $receiver ${node.type})"); 172 printStmt(dummy, "TypeOperator ($operator $receiver ${node.type})");
173 } 173 }
174 174
175 visitInvokeContinuation(cps_ir.InvokeContinuation node) { 175 visitInvokeContinuation(cps_ir.InvokeContinuation node) {
176 String dummy = names.name(node); 176 String dummy = names.name(node);
177 String kont = formatReference(node.continuation); 177 String kont = formatReference(node.continuation);
178 String args = node.arguments.map(formatReference).join(', '); 178 String args = node.arguments.map(formatReference).join(', ');
179 printStmt(dummy, "InvokeContinuation $kont ($args)"); 179 printStmt(dummy, "InvokeContinuation $kont ($args)");
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 } 384 }
385 385
386 visitContinuation(cps_ir.Continuation c) { 386 visitContinuation(cps_ir.Continuation c) {
387 var old_node = current_block; 387 var old_node = current_block;
388 current_block = getBlock(c); 388 current_block = getBlock(c);
389 visit(c.body); 389 visit(c.body);
390 current_block = old_node; 390 current_block = old_node;
391 } 391 }
392 } 392 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698