Chromium Code Reviews| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| 11 const bool REPORT_EXCESS_RESOLUTION = false; | 11 const bool REPORT_EXCESS_RESOLUTION = false; |
| 12 | 12 |
| 13 const String BUILD_ID = 'NEED_TO_PASS_IN'; | |
|
ricow1
2013/04/10 12:02:20
Peter: How do you want this passed down?
All the w
| |
| 14 | |
| 13 /** | 15 /** |
| 14 * If true, dump the inferred types after compilation. | 16 * If true, dump the inferred types after compilation. |
| 15 */ | 17 */ |
| 16 const bool DUMP_INFERRED_TYPES = false; | 18 const bool DUMP_INFERRED_TYPES = false; |
| 17 | 19 |
| 18 /** | 20 /** |
| 19 * A string to identify the revision or build. | |
| 20 * | |
| 21 * This ID is displayed if the compiler crashes and in verbose mode, and is | |
| 22 * an aid in reproducing bug reports. | |
| 23 * | |
| 24 * The actual string is rewritten during the SDK build process. | |
| 25 */ | |
| 26 const String BUILD_ID = 'build number could not be determined'; | |
| 27 | |
| 28 /** | |
| 29 * Contains backend-specific data that is used throughout the compilation of | 21 * Contains backend-specific data that is used throughout the compilation of |
| 30 * one work item. | 22 * one work item. |
| 31 */ | 23 */ |
| 32 class ItemCompilationContext { | 24 class ItemCompilationContext { |
| 33 } | 25 } |
| 34 | 26 |
| 35 abstract class WorkItem { | 27 abstract class WorkItem { |
| 36 final ItemCompilationContext compilationContext; | 28 final ItemCompilationContext compilationContext; |
| 37 /** | 29 /** |
| 38 * Documentation wanted -- johnniwinther | 30 * Documentation wanted -- johnniwinther |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1278 | 1270 |
| 1279 void close() {} | 1271 void close() {} |
| 1280 | 1272 |
| 1281 toString() => name; | 1273 toString() => name; |
| 1282 | 1274 |
| 1283 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1275 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1284 static NullSink outputProvider(String name, String extension) { | 1276 static NullSink outputProvider(String name, String extension) { |
| 1285 return new NullSink('$name.$extension'); | 1277 return new NullSink('$name.$extension'); |
| 1286 } | 1278 } |
| 1287 } | 1279 } |
| OLD | NEW |