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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ir/ir_tracer.dart

Issue 374413002: Dart2dart rename unresolved getters & Make IsCheck not be a primitive (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | 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 'ir_nodes.dart' as ir hide Function; 9 import 'ir_nodes.dart' as ir hide Function;
10 import '../tracer.dart'; 10 import '../tracer.dart';
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 String dummy = names.name(node); 158 String dummy = names.name(node);
159 List<String> entries = new List<String>(); 159 List<String> entries = new List<String>();
160 for (int i = 0; i < node.values.length; ++i) { 160 for (int i = 0; i < node.values.length; ++i) {
161 String key = formatReference(node.keys[i]); 161 String key = formatReference(node.keys[i]);
162 String value = formatReference(node.values[i]); 162 String value = formatReference(node.values[i]);
163 entries.add("$key: $value"); 163 entries.add("$key: $value");
164 } 164 }
165 printStmt(dummy, "LiteralMap (${entries.join(', ')})"); 165 printStmt(dummy, "LiteralMap (${entries.join(', ')})");
166 } 166 }
167 167
168 visitIsCheck(ir.IsCheck node) { 168 visitTypeOperator(ir.TypeOperator node) {
169 String dummy = names.name(node); 169 String dummy = names.name(node);
170 String operator = node.operator;
170 List<String> entries = new List<String>(); 171 List<String> entries = new List<String>();
171 String receiver = formatReference(node.receiver); 172 String receiver = formatReference(node.receiver);
172 printStmt(dummy, "IsCheck ($receiver ${node.type})"); 173 printStmt(dummy, "TypeOperator ($operator $receiver ${node.type})");
173 }
174
175 visitAsCast(ir.AsCast node) {
176 String dummy = names.name(node);
177 List<String> entries = new List<String>();
178 String receiver = formatReference(node.receiver);
179 printStmt(dummy, "AsCast ($receiver ${node.type})");
180 } 174 }
181 175
182 visitInvokeContinuation(ir.InvokeContinuation node) { 176 visitInvokeContinuation(ir.InvokeContinuation node) {
183 String dummy = names.name(node); 177 String dummy = names.name(node);
184 String kont = formatReference(node.continuation); 178 String kont = formatReference(node.continuation);
185 String args = node.arguments.map(formatReference).join(', '); 179 String args = node.arguments.map(formatReference).join(', ');
186 printStmt(dummy, "InvokeContinuation $kont ($args)"); 180 printStmt(dummy, "InvokeContinuation $kont ($args)");
187 } 181 }
188 182
189 visitBranch(ir.Branch node) { 183 visitBranch(ir.Branch node) {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 } 383 }
390 } 384 }
391 385
392 visitContinuation(ir.Continuation c) { 386 visitContinuation(ir.Continuation c) {
393 var old_node = current_block; 387 var old_node = current_block;
394 current_block = getBlock(c); 388 current_block = getBlock(c);
395 visit(c.body); 389 visit(c.body);
396 current_block = old_node; 390 current_block = old_node;
397 } 391 }
398 } 392 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698