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