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

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

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 8 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; 8 import 'cps_ir_nodes.dart' as cps_ir;
9 import '../tracer.dart'; 9 import '../tracer.dart';
10 10
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 if (ref == null) return 'null'; 239 if (ref == null) return 'null';
240 cps_ir.Definition target = ref.definition; 240 cps_ir.Definition target = ref.definition;
241 if (target is cps_ir.Continuation && target.isReturnContinuation) { 241 if (target is cps_ir.Continuation && target.isReturnContinuation) {
242 return "return"; // Do not generate a name for the return continuation 242 return "return"; // Do not generate a name for the return continuation
243 } else { 243 } else {
244 return names.name(ref.definition); 244 return names.name(ref.definition);
245 } 245 }
246 } 246 }
247 247
248 visitConstant(cps_ir.Constant node) { 248 visitConstant(cps_ir.Constant node) {
249 return "Constant ${node.value.toStructuredString()}"; 249 return "Constant ${node.value.toStructuredText()}";
250 } 250 }
251 251
252 visitParameter(cps_ir.Parameter node) { 252 visitParameter(cps_ir.Parameter node) {
253 return "Parameter ${names.name(node)}"; 253 return "Parameter ${names.name(node)}";
254 } 254 }
255 255
256 visitMutableVariable(cps_ir.MutableVariable node) { 256 visitMutableVariable(cps_ir.MutableVariable node) {
257 return "MutableVariable ${names.name(node)}"; 257 return "MutableVariable ${names.name(node)}";
258 } 258 }
259 259
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 } 674 }
675 675
676 visitBoundsCheck(cps_ir.BoundsCheck node) { 676 visitBoundsCheck(cps_ir.BoundsCheck node) {
677 unexpectedNode(node); 677 unexpectedNode(node);
678 } 678 }
679 679
680 visitReceiverCheck(cps_ir.ReceiverCheck node) { 680 visitReceiverCheck(cps_ir.ReceiverCheck node) {
681 unexpectedNode(node); 681 unexpectedNode(node);
682 } 682 }
683 } 683 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698