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

Side by Side Diff: pkg/compiler/lib/src/dart_backend/tree_ir_tracer.dart

Issue 688663002: Support for labels in non-loop code in new dart backend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comment cf. review 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 tree_ir_tracer; 5 library tree_ir_tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 import '../tracer.dart'; 8 import '../tracer.dart';
9 import 'tree_ir_nodes.dart'; 9 import 'tree_ir_nodes.dart';
10 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 List<String> entries = new List<String>(); 332 List<String> entries = new List<String>();
333 node.entries.forEach((LiteralMapEntry entry) { 333 node.entries.forEach((LiteralMapEntry entry) {
334 String key = visitExpression(entry.key); 334 String key = visitExpression(entry.key);
335 String value = visitExpression(entry.value); 335 String value = visitExpression(entry.value);
336 entries.add("$key: $value"); 336 entries.add("$key: $value");
337 }); 337 });
338 return "map [${entries.join(', ')}]"; 338 return "map [${entries.join(', ')}]";
339 } 339 }
340 340
341 String visitConstant(Constant node) { 341 String visitConstant(Constant node) {
342 return "${node.value}"; 342 return "${node.value.toStructuredString()}";
343 } 343 }
344 344
345 String visitThis(This node) { 345 String visitThis(This node) {
346 return "this"; 346 return "this";
347 } 347 }
348 348
349 String visitReifyTypeVar(ReifyTypeVar node) { 349 String visitReifyTypeVar(ReifyTypeVar node) {
350 return "typevar [${node.typeVariable.name}]"; 350 return "typevar [${node.typeVariable.name}]";
351 } 351 }
352 352
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 String prefix = v.element == null ? 'v' : '${v.element.name}_'; 411 String prefix = v.element == null ? 'v' : '${v.element.name}_';
412 while (name == null || _usedNames.contains(name)) { 412 while (name == null || _usedNames.contains(name)) {
413 name = "$prefix${_counter++}"; 413 name = "$prefix${_counter++}";
414 } 414 }
415 _names[v] = name; 415 _names[v] = name;
416 _usedNames.add(name); 416 _usedNames.add(name);
417 } 417 }
418 return name; 418 return name;
419 } 419 }
420 } 420 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698