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

Side by Side Diff: pkg/compiler/lib/src/tracer.dart

Issue 716823002: Set up a stub pipline for using the new cps-based ir to generate js. (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 tracer; 5 library tracer;
6 6
7 import '../compiler.dart' as api; 7 import '../compiler.dart' as api;
8 import 'dart:async' show EventSink; 8 import 'dart:async' show EventSink;
9 import 'ssa/ssa.dart' as ssa; 9 import 'ssa/ssa.dart' as ssa;
10 import 'ssa/ssa_tracer.dart' show HTracer; 10 import 'ssa/ssa_tracer.dart' show HTracer;
11 import 'cps_ir/cps_ir_nodes.dart' as cps_ir; 11 import 'cps_ir/cps_ir_nodes.dart' as cps_ir;
12 import 'cps_ir/cps_ir_tracer.dart' show IRTracer; 12 import 'cps_ir/cps_ir_tracer.dart' show IRTracer;
13 import 'dart_backend/tree_ir_nodes.dart' as tree_ir; 13 import 'tree_ir/tree_ir_nodes.dart' as tree_ir;
14 import 'dart_backend/tree_ir_tracer.dart' show TreeTracer; 14 import 'tree_ir/tree_ir_tracer.dart' show TreeTracer;
15 import 'util/util.dart' show Indentation; 15 import 'util/util.dart' show Indentation;
16 import 'dart2jslib.dart'; 16 import 'dart2jslib.dart';
17 17
18 /** 18 /**
19 * If non-null, we only trace methods whose name match the regexp defined by the 19 * If non-null, we only trace methods whose name match the regexp defined by the
20 * given pattern. 20 * given pattern.
21 */ 21 */
22 const String TRACE_FILTER_PATTERN = const String.fromEnvironment("DUMP_IR"); 22 const String TRACE_FILTER_PATTERN = const String.fromEnvironment("DUMP_IR");
23 23
24 final RegExp TRACE_FILTER = 24 final RegExp TRACE_FILTER =
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 void add(String string) { 112 void add(String string) {
113 output.add(string); 113 output.add(string);
114 } 114 }
115 115
116 void addIndent() { 116 void addIndent() {
117 add(_ind.indentation); 117 add(_ind.indentation);
118 } 118 }
119 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698