| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 START_ROOT_ISOLATE = | 167 static const SourceString START_ROOT_ISOLATE = |
| 168 const SourceString('startRootIsolate'); | 168 const SourceString('startRootIsolate'); |
| 169 bool enabledNoSuchMethod = false; | 169 bool enabledNoSuchMethod = false; |
| 170 bool enabledRuntimeType = false; |
| 170 | 171 |
| 171 Stopwatch progress; | 172 Stopwatch progress; |
| 172 | 173 |
| 173 static const int PHASE_SCANNING = 0; | 174 static const int PHASE_SCANNING = 0; |
| 174 static const int PHASE_RESOLVING = 1; | 175 static const int PHASE_RESOLVING = 1; |
| 175 static const int PHASE_COMPILING = 2; | 176 static const int PHASE_COMPILING = 2; |
| 176 static const int PHASE_RECOMPILING = 3; | 177 static const int PHASE_RECOMPILING = 3; |
| 177 int phase; | 178 int phase; |
| 178 | 179 |
| 179 bool compilationFailed = false; | 180 bool compilationFailed = false; |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 final endOffset = end.charOffset + end.slowCharCount; | 945 final endOffset = end.charOffset + end.slowCharCount; |
| 945 | 946 |
| 946 // [begin] and [end] might be the same for the same empty token. This | 947 // [begin] and [end] might be the same for the same empty token. This |
| 947 // happens for instance when scanning '$$'. | 948 // happens for instance when scanning '$$'. |
| 948 assert(endOffset >= beginOffset); | 949 assert(endOffset >= beginOffset); |
| 949 return f(beginOffset, endOffset); | 950 return f(beginOffset, endOffset); |
| 950 } | 951 } |
| 951 | 952 |
| 952 String toString() => 'SourceSpan($uri, $begin, $end)'; | 953 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 953 } | 954 } |
| OLD | NEW |