| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 5 |
| 6 /** | 6 /** |
| 7 * If true, print a warning for each method that was resolved, but not | 7 * If true, print a warning for each method that was resolved, but not |
| 8 * compiled. | 8 * compiled. |
| 9 */ | 9 */ |
| 10 const bool REPORT_EXCESS_RESOLUTION = false; | 10 const bool REPORT_EXCESS_RESOLUTION = false; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 closureMapping.ClosureTask closureToClassMapper; | 157 closureMapping.ClosureTask closureToClassMapper; |
| 158 TypeCheckerTask checker; | 158 TypeCheckerTask checker; |
| 159 ti.TypesTask typesTask; | 159 ti.TypesTask typesTask; |
| 160 Backend backend; | 160 Backend backend; |
| 161 ConstantHandler constantHandler; | 161 ConstantHandler constantHandler; |
| 162 EnqueueTask enqueuer; | 162 EnqueueTask enqueuer; |
| 163 | 163 |
| 164 static const SourceString MAIN = const SourceString('main'); | 164 static const SourceString MAIN = const SourceString('main'); |
| 165 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); | 165 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); |
| 166 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); | 166 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); |
| 167 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType'); |
| 167 static const SourceString START_ROOT_ISOLATE = | 168 static const SourceString START_ROOT_ISOLATE = |
| 168 const SourceString('startRootIsolate'); | 169 const SourceString('startRootIsolate'); |
| 169 bool enabledNoSuchMethod = false; | 170 bool enabledNoSuchMethod = false; |
| 171 bool enabledRuntimeType = false; |
| 170 | 172 |
| 171 Stopwatch progress; | 173 Stopwatch progress; |
| 172 | 174 |
| 173 static const int PHASE_SCANNING = 0; | 175 static const int PHASE_SCANNING = 0; |
| 174 static const int PHASE_RESOLVING = 1; | 176 static const int PHASE_RESOLVING = 1; |
| 175 static const int PHASE_COMPILING = 2; | 177 static const int PHASE_COMPILING = 2; |
| 176 static const int PHASE_RECOMPILING = 3; | 178 static const int PHASE_RECOMPILING = 3; |
| 177 int phase; | 179 int phase; |
| 178 | 180 |
| 179 bool compilationFailed = false; | 181 bool compilationFailed = false; |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 final endOffset = end.charOffset + end.slowCharCount; | 946 final endOffset = end.charOffset + end.slowCharCount; |
| 945 | 947 |
| 946 // [begin] and [end] might be the same for the same empty token. This | 948 // [begin] and [end] might be the same for the same empty token. This |
| 947 // happens for instance when scanning '$$'. | 949 // happens for instance when scanning '$$'. |
| 948 assert(endOffset >= beginOffset); | 950 assert(endOffset >= beginOffset); |
| 949 return f(beginOffset, endOffset); | 951 return f(beginOffset, endOffset); |
| 950 } | 952 } |
| 951 | 953 |
| 952 String toString() => 'SourceSpan($uri, $begin, $end)'; | 954 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 953 } | 955 } |
| OLD | NEW |