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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 for debugging helpers. The unittest analyze_unused_test checks that 5 /// Library for debugging helpers. The unittest analyze_unused_test checks that
6 /// the helper are not used in production code. 6 /// the helper are not used in production code.
7 7
8 library dart2js.helpers; 8 library dart2js.helpers;
9 9
10 import 'dart:async' show
11 EventSink;
12 import 'dart:collection';
13 import 'dart:convert';
14
15 import '../../compiler.dart';
16 import '../common.dart'; 10 import '../common.dart';
17 import '../compiler.dart' show
18 Compiler;
19 import '../diagnostics/invariant.dart' show 11 import '../diagnostics/invariant.dart' show
20 DEBUG_MODE; 12 DEBUG_MODE;
21 import '../util/util.dart'; 13 import '../util/util.dart';
22 14
23 part 'debug_collection.dart'; 15 import 'trace.dart';
24 part 'trace.dart'; 16
25 part 'expensive_map.dart'; 17 export 'debug_collection.dart';
26 part 'expensive_set.dart'; 18 export 'trace.dart';
27 part 'stats.dart'; 19 export 'expensive_map.dart';
28 part 'track_map.dart'; 20 export 'expensive_set.dart';
21 export 'stats.dart';
22 export 'track_map.dart';
29 23
30 /// Global flag to enable [debugPrint]. This should always be `true` by default 24 /// Global flag to enable [debugPrint]. This should always be `true` by default
31 /// and be set to `false` as a means to temporarily turn off all debugging 25 /// and be set to `false` as a means to temporarily turn off all debugging
32 /// printouts. 26 /// printouts.
33 const bool DEBUG_PRINT_ENABLED = true; 27 const bool DEBUG_PRINT_ENABLED = true;
34 28
35 /// Enables debug mode. 29 /// Enables debug mode.
36 /// 30 ///
37 /// Sets the [DEBUG_MODE] to `true`. 31 /// Sets the [DEBUG_MODE] to `true`.
38 void enableDebugMode() { 32 void enableDebugMode() {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 if (printTrace) { 136 if (printTrace) {
143 trace(msg); 137 trace(msg);
144 } else { 138 } else {
145 debugPrint(msg); 139 debugPrint(msg);
146 } 140 }
147 } 141 }
148 return true; 142 return true;
149 } 143 }
150 return false; 144 return false;
151 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698