| 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 19 matching lines...) Expand all Loading... |
| 30 "coreimpl": const LibraryInfo( | 30 "coreimpl": const LibraryInfo( |
| 31 "coreimpl/coreimpl.dart", | 31 "coreimpl/coreimpl.dart", |
| 32 implementation: true, | 32 implementation: true, |
| 33 dart2jsPath: "compiler/implementation/lib/coreimpl.dart", | 33 dart2jsPath: "compiler/implementation/lib/coreimpl.dart", |
| 34 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"), | 34 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"), |
| 35 | 35 |
| 36 "crypto": const LibraryInfo( | 36 "crypto": const LibraryInfo( |
| 37 "crypto/crypto.dart"), | 37 "crypto/crypto.dart"), |
| 38 | 38 |
| 39 "html": const LibraryInfo( | 39 "html": const LibraryInfo( |
| 40 "html/html_dartium.dart", | 40 "html/dartium/html_dartium.dart", |
| 41 category: "Client", | 41 category: "Client", |
| 42 dart2jsPath: "html/dart2js/html_dart2js.dart"), | 42 dart2jsPath: "html/dart2js/html_dart2js.dart"), |
| 43 | 43 |
| 44 "io": const LibraryInfo( | 44 "io": const LibraryInfo( |
| 45 "io/io_runtime.dart", | 45 "io/io_runtime.dart", |
| 46 category: "Server", | 46 category: "Server", |
| 47 dart2jsPath: "compiler/implementation/lib/io.dart"), | 47 dart2jsPath: "compiler/implementation/lib/io.dart"), |
| 48 | 48 |
| 49 "isolate": const LibraryInfo( | 49 "isolate": const LibraryInfo( |
| 50 "isolate/isolate.dart", | 50 "isolate/isolate.dart", |
| 51 dart2jsPatchPath: "compiler/implementation/lib/isolate_patch.dart"), | 51 dart2jsPatchPath: "compiler/implementation/lib/isolate_patch.dart"), |
| 52 | 52 |
| 53 "json": const LibraryInfo( | 53 "json": const LibraryInfo( |
| 54 "json/json.dart"), | 54 "json/json.dart"), |
| 55 | 55 |
| 56 "math": const LibraryInfo( | 56 "math": const LibraryInfo( |
| 57 "math/math.dart", | 57 "math/math.dart", |
| 58 dart2jsPatchPath: "compiler/implementation/lib/math_patch.dart"), | 58 dart2jsPatchPath: "compiler/implementation/lib/math_patch.dart"), |
| 59 | 59 |
| 60 "mirrors": const LibraryInfo( | 60 "mirrors": const LibraryInfo( |
| 61 "mirrors/mirrors.dart", | 61 "mirrors/mirrors.dart", |
| 62 documented: false, | 62 documented: false, |
| 63 platforms: VM_PLATFORM), | 63 platforms: VM_PLATFORM), |
| 64 | 64 |
| 65 "nativewrappers": const LibraryInfo( | 65 "nativewrappers": const LibraryInfo( |
| 66 "html/nativewrappers.dart", | 66 "html/dartium/nativewrappers.dart", |
| 67 category: "Client", | 67 category: "Client", |
| 68 implementation: true, | 68 implementation: true, |
| 69 documented: false, | 69 documented: false, |
| 70 platforms: VM_PLATFORM), | 70 platforms: VM_PLATFORM), |
| 71 | 71 |
| 72 "uri": const LibraryInfo( | 72 "uri": const LibraryInfo( |
| 73 "uri/uri.dart"), | 73 "uri/uri.dart"), |
| 74 | 74 |
| 75 "utf": const LibraryInfo( | 75 "utf": const LibraryInfo( |
| 76 "utf/utf.dart"), | 76 "utf/utf.dart"), |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 this.category = "Shared", | 145 this.category = "Shared", |
| 146 this.dart2jsPath, | 146 this.dart2jsPath, |
| 147 this.dart2jsPatchPath, | 147 this.dart2jsPatchPath, |
| 148 this.implementation = false, | 148 this.implementation = false, |
| 149 this.documented = true, | 149 this.documented = true, |
| 150 this.platforms = DART2JS_PLATFORM | VM_PLATFORM]); | 150 this.platforms = DART2JS_PLATFORM | VM_PLATFORM]); |
| 151 | 151 |
| 152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
| 153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
| 154 } | 154 } |
| OLD | NEW |