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

Unified Diff: sdk/lib/_internal/compiler/implementation/helpers/stats.dart

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes and further implementation. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/helpers/stats.dart
diff --git a/sdk/lib/_internal/compiler/implementation/helpers/stats.dart b/sdk/lib/_internal/compiler/implementation/helpers/stats.dart
index 1ac3c73f017dd003584aecebb88b2f4161d9b44d..13897c72c46425d72160ed48b7f3e8b142204ce1 100644
--- a/sdk/lib/_internal/compiler/implementation/helpers/stats.dart
+++ b/sdk/lib/_internal/compiler/implementation/helpers/stats.dart
@@ -9,6 +9,7 @@ part of dart2js.helpers;
/// Current stats collector. Use [enableStatsOutput] to enable recording of
/// stats.
Stats get stats {
+ enableDebugMode();
if (_stats == null) {
_stats = const Stats();
}
@@ -34,6 +35,8 @@ void enableStatsOutput({CompilerOutputProvider outputProvider,
if (_stats != null) {
throw new StateError('Stats have already been initialized.');
}
+ enableDebugMode();
+
StatsOutput output;
if (outputProvider != null) {
if (extension == null) {

Powered by Google App Engine
This is Rietveld 408576698