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 10 matching lines...) Expand all Loading... |
21 * while other tools can access via execution. | 21 * while other tools can access via execution. |
22 */ | 22 */ |
23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> { | 23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> { |
24 | 24 |
25 "collection": const LibraryInfo( | 25 "collection": const LibraryInfo( |
26 "collection/collection.dart", | 26 "collection/collection.dart", |
27 implementation: true), | 27 implementation: true), |
28 | 28 |
29 "core": const LibraryInfo( | 29 "core": const LibraryInfo( |
30 "core/core.dart", | 30 "core/core.dart", |
31 dart2jsPatchPath: "compiler/implementation/lib/core_patch.dart"), | 31 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, |
32 | 32 |
33 "coreimpl": const LibraryInfo( | 33 "coreimpl": const LibraryInfo( |
34 "coreimpl/coreimpl.dart", | 34 "coreimpl/coreimpl.dart", |
35 implementation: true, | 35 implementation: true, |
36 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"), | 36 dart2jsPatchPath: "_internal/compiler/implementation/lib/coreimpl_patch.da
rt"), |
37 | 37 |
38 "crypto": const LibraryInfo( | 38 "crypto": const LibraryInfo( |
39 "crypto/crypto.dart"), | 39 "crypto/crypto.dart"), |
40 | 40 |
41 "html": const LibraryInfo( | 41 "html": const LibraryInfo( |
42 "html/dartium/html_dartium.dart", | 42 "html/dartium/html_dartium.dart", |
43 category: "Client", | 43 category: "Client", |
44 dart2jsPath: "html/dart2js/html_dart2js.dart"), | 44 dart2jsPath: "html/dart2js/html_dart2js.dart"), |
45 | 45 |
46 "io": const LibraryInfo( | 46 "io": const LibraryInfo( |
47 "io/io.dart", | 47 "io/io.dart", |
48 category: "Server", | 48 category: "Server", |
49 dart2jsPatchPath: "compiler/implementation/lib/io_patch.dart"), | 49 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), |
50 | 50 |
51 "isolate": const LibraryInfo( | 51 "isolate": const LibraryInfo( |
52 "isolate/isolate.dart", | 52 "isolate/isolate.dart", |
53 dart2jsPatchPath: "compiler/implementation/lib/isolate_patch.dart"), | 53 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar
t"), |
54 | 54 |
55 "json": const LibraryInfo( | 55 "json": const LibraryInfo( |
56 "json/json.dart"), | 56 "json/json.dart"), |
57 | 57 |
58 "math": const LibraryInfo( | 58 "math": const LibraryInfo( |
59 "math/math.dart", | 59 "math/math.dart", |
60 dart2jsPatchPath: "compiler/implementation/lib/math_patch.dart"), | 60 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart")
, |
61 | 61 |
62 "mirrors": const LibraryInfo( | 62 "mirrors": const LibraryInfo( |
63 "mirrors/mirrors.dart", | 63 "mirrors/mirrors.dart", |
64 dart2jsPath: "compiler/implementation/lib/mirrors.dart"), | 64 dart2jsPath: "_internal/compiler/implementation/lib/mirrors.dart"), |
65 | 65 |
66 "nativewrappers": const LibraryInfo( | 66 "nativewrappers": const LibraryInfo( |
67 "html/dartium/nativewrappers.dart", | 67 "html/dartium/nativewrappers.dart", |
68 category: "Client", | 68 category: "Client", |
69 implementation: true, | 69 implementation: true, |
70 documented: false, | 70 documented: false, |
71 platforms: VM_PLATFORM), | 71 platforms: VM_PLATFORM), |
72 | 72 |
73 "scalarlist": const LibraryInfo( | 73 "scalarlist": const LibraryInfo( |
74 "scalarlist/scalarlist.dart", | 74 "scalarlist/scalarlist.dart", |
75 category: "Server", | 75 category: "Server", |
76 dart2jsPatchPath: "compiler/implementation/lib/scalarlist_patch.dart"), | 76 dart2jsPatchPath: "_internal/compiler/implementation/lib/scalarlist_patch.
dart"), |
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"), |
83 | 83 |
84 "_js_helper": const LibraryInfo( | 84 "_js_helper": const LibraryInfo( |
85 "compiler/implementation/lib/js_helper.dart", | 85 "_internal/compiler/implementation/lib/js_helper.dart", |
86 category: "Internal", | 86 category: "Internal", |
87 documented: false, | 87 documented: false, |
88 platforms: DART2JS_PLATFORM), | 88 platforms: DART2JS_PLATFORM), |
89 | 89 |
90 "_interceptors": const LibraryInfo( | 90 "_interceptors": const LibraryInfo( |
91 "compiler/implementation/lib/interceptors.dart", | 91 "_internal/compiler/implementation/lib/interceptors.dart", |
92 category: "Internal", | 92 category: "Internal", |
93 documented: false, | 93 documented: false, |
94 platforms: DART2JS_PLATFORM), | 94 platforms: DART2JS_PLATFORM), |
95 }; | 95 }; |
96 | 96 |
97 /** | 97 /** |
98 * Information about a "dart:" library. | 98 * Information about a "dart:" library. |
99 */ | 99 */ |
100 class LibraryInfo { | 100 class LibraryInfo { |
101 | 101 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 this.category: "Shared", | 148 this.category: "Shared", |
149 this.dart2jsPath, | 149 this.dart2jsPath, |
150 this.dart2jsPatchPath, | 150 this.dart2jsPatchPath, |
151 this.implementation: false, | 151 this.implementation: false, |
152 this.documented: true, | 152 this.documented: true, |
153 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 153 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
154 | 154 |
155 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 155 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
156 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 156 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
157 } | 157 } |
OLD | NEW |