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 library libraries; | 5 library libraries; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js | 8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js |
| 9 */ | 9 */ |
| 10 const int DART2JS_PLATFORM = 1; | 10 const int DART2JS_PLATFORM = 1; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 | 60 |
| 61 "io": const LibraryInfo( | 61 "io": const LibraryInfo( |
| 62 "io/io.dart", | 62 "io/io.dart", |
| 63 category: "Server", | 63 category: "Server", |
| 64 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), | 64 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), |
| 65 | 65 |
| 66 "isolate": const LibraryInfo( | 66 "isolate": const LibraryInfo( |
| 67 "isolate/isolate.dart", | 67 "isolate/isolate.dart", |
| 68 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar t"), | 68 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar t"), |
| 69 | 69 |
| 70 "js": const LibraryInfo( | |
| 71 "js/dartium/js.dart", | |
| 72 category: "Client", | |
| 73 dart2jsPath: "js/dart2js/js.dart"), | |
|
vsm
2013/05/29 04:55:39
We probably should name this js_dart2js.dart and j
alexandre.ardhuin
2013/05/31 19:11:13
Done.
| |
| 74 | |
| 70 "json": const LibraryInfo( | 75 "json": const LibraryInfo( |
| 71 "json/json.dart", | 76 "json/json.dart", |
| 72 dart2jsPatchPath: "_internal/compiler/implementation/lib/json_patch.dart") , | 77 dart2jsPatchPath: "_internal/compiler/implementation/lib/json_patch.dart") , |
| 73 | 78 |
| 74 "math": const LibraryInfo( | 79 "math": const LibraryInfo( |
| 75 "math/math.dart", | 80 "math/math.dart", |
| 76 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart") , | 81 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart") , |
| 77 | 82 |
| 78 "mirrors": const LibraryInfo( | 83 "mirrors": const LibraryInfo( |
| 79 "mirrors/mirrors.dart", | 84 "mirrors/mirrors.dart", |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 this.category: "Shared", | 211 this.category: "Shared", |
| 207 this.dart2jsPath, | 212 this.dart2jsPath, |
| 208 this.dart2jsPatchPath, | 213 this.dart2jsPatchPath, |
| 209 this.implementation: false, | 214 this.implementation: false, |
| 210 this.documented: true, | 215 this.documented: true, |
| 211 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 216 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
| 212 | 217 |
| 213 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 218 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
| 214 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 219 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
| 215 } | 220 } |
| OLD | NEW |