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

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

Issue 1671073002: dart2js cps: Pull SetFields into field initializer arguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix accidental lifting of LetConts instead of sinking Created 4 years, 10 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
11 /** 11 /**
12 * If true, show LetCont expressions in output. 12 * If true, show LetCont expressions in output.
13 */ 13 */
14 const bool IR_TRACE_LET_CONT = false; 14 const bool IR_TRACE_LET_CONT = true;
Siggi Cherem (dart-lang) 2016/02/08 19:26:44 was this supposed to be temporary while debugging?
asgerf 2016/02/09 09:29:07 Changed to false again.
15 15
16 class IRTracer extends TracerUtil implements cps_ir.Visitor { 16 class IRTracer extends TracerUtil implements cps_ir.Visitor {
17 EventSink<String> output; 17 EventSink<String> output;
18 18
19 IRTracer(this.output); 19 IRTracer(this.output);
20 20
21 visit(cps_ir.Node node) => node.accept(this); 21 visit(cps_ir.Node node) => node.accept(this);
22 22
23 void traceGraph(String name, cps_ir.FunctionDefinition node) { 23 void traceGraph(String name, cps_ir.FunctionDefinition node) {
24 tag("cfg", () { 24 tag("cfg", () {
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 } 678 }
679 679
680 visitBoundsCheck(cps_ir.BoundsCheck node) { 680 visitBoundsCheck(cps_ir.BoundsCheck node) {
681 unexpectedNode(node); 681 unexpectedNode(node);
682 } 682 }
683 683
684 visitNullCheck(cps_ir.NullCheck node) { 684 visitNullCheck(cps_ir.NullCheck node) {
685 unexpectedNode(node); 685 unexpectedNode(node);
686 } 686 }
687 } 687 }
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