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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10880068: - Change "static final" to "static const" in the lib/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « lib/compiler/implementation/compile_time_constants.dart ('k') | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compiler.dart
===================================================================
--- lib/compiler/implementation/compiler.dart (revision 11400)
+++ lib/compiler/implementation/compiler.dart (working copy)
@@ -7,12 +7,12 @@
* If true, print a warning for each method that was resolved, but not
* compiled.
*/
-final bool REPORT_EXCESS_RESOLUTION = false;
+const bool REPORT_EXCESS_RESOLUTION = false;
/**
* If true, trace information on pass2 optimizations.
*/
-final bool REPORT_PASS2_OPTIMIZATIONS = false;
+const bool REPORT_PASS2_OPTIMIZATIONS = false;
/**
* Contains backend-specific data that is used throughout the compilation of
@@ -142,21 +142,21 @@
ConstantHandler constantHandler;
EnqueueTask enqueuer;
- static final SourceString MAIN = const SourceString('main');
- static final SourceString CALL_OPERATOR_NAME = const SourceString('call');
- static final SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
- static final SourceString NO_SUCH_METHOD_EXCEPTION =
+ static const SourceString MAIN = const SourceString('main');
+ static const SourceString CALL_OPERATOR_NAME = const SourceString('call');
+ static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
+ static const SourceString NO_SUCH_METHOD_EXCEPTION =
const SourceString('NoSuchMethodException');
- static final SourceString START_ROOT_ISOLATE =
+ static const SourceString START_ROOT_ISOLATE =
const SourceString('startRootIsolate');
bool enabledNoSuchMethod = false;
Stopwatch progress;
- static final int PHASE_SCANNING = 0;
- static final int PHASE_RESOLVING = 1;
- static final int PHASE_COMPILING = 2;
- static final int PHASE_RECOMPILING = 3;
+ static const int PHASE_SCANNING = 0;
+ static const int PHASE_RESOLVING = 1;
+ static const int PHASE_COMPILING = 2;
+ static const int PHASE_RECOMPILING = 3;
int phase;
bool compilationFailed = false;
« no previous file with comments | « lib/compiler/implementation/compile_time_constants.dart ('k') | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698