Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: lib/compiler/implementation/library_map.dart

Issue 10689036: First step towards having patch files for generic libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/lib/web.dartp ('k') | lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/library_map.dart
diff --git a/lib/compiler/implementation/library_map.dart b/lib/compiler/implementation/library_map.dart
index 5bb1d4ff1fa1d8d7c605cc842461e5f48b69374b..091fd9c4836f32a5266545a5d71904825e1c9011 100644
--- a/lib/compiler/implementation/library_map.dart
+++ b/lib/compiler/implementation/library_map.dart
@@ -6,22 +6,46 @@
// executable code to define the locations of libraries.
#library('library_map');
+/**
+ * Simple struct holding the path to a library and an optional path
+ * to a patch file for the library.
+ */
+class LibraryPatchPath {
+ final String libraryPath;
+ final String patchPath;
+ const LibraryPatchPath(this.libraryPath, this.patchPath);
+}
/**
* Specifies the location of Dart platform libraries.
*/
-final Map<String,String> DART2JS_LIBRARY_MAP = const <String> {
- "core": "lib/compiler/implementation/lib/core.dart",
- "coreimpl": "lib/compiler/implementation/lib/coreimpl.dart",
- "_js_helper": "lib/compiler/implementation/lib/js_helper.dart",
- "_interceptors": "lib/compiler/implementation/lib/interceptors.dart",
- "crypto": "lib/crypto/crypto.dart",
- "dom_deprecated": "lib/dom/frog/dom_frog.dart",
- "html": "lib/html/frog/html_frog.dart",
- "io": "lib/compiler/implementation/lib/io.dart",
- "isolate": "lib/isolate/isolate_leg.dart",
- "json": "lib/json/json.dart",
- "uri": "lib/uri/uri.dart",
- "utf": "lib/utf/utf.dart",
- "web": "lib/web/web.dart",
+final Map<String,LibraryPatchPath> DART2JS_LIBRARY_MAP
+ = const <LibraryPatchPath> {
+ "core": const LibraryPatchPath(
+ "lib/compiler/implementation/lib/core.dart", null),
+ "coreimpl": const LibraryPatchPath(
+ "lib/compiler/implementation/lib/coreimpl.dart", null),
+ "_js_helper": const LibraryPatchPath(
+ "lib/compiler/implementation/lib/js_helper.dart", null),
+ "_interceptors": const LibraryPatchPath(
+ "lib/compiler/implementation/lib/interceptors.dart", null),
+ "crypto": const LibraryPatchPath(
+ "lib/crypto/crypto.dart", null),
+ "dom_deprecated": const LibraryPatchPath(
+ "lib/dom/frog/dom_frog.dart", null),
+ "html": const LibraryPatchPath(
+ "lib/html/frog/html_frog.dart", null),
+ "io": const LibraryPatchPath(
+ "lib/compiler/implementation/lib/io.dart", null),
+ "isolate": const LibraryPatchPath(
+ "lib/isolate/isolate_leg.dart", null),
+ "json": const LibraryPatchPath(
+ "lib/json/json.dart", null),
+ "uri": const LibraryPatchPath(
+ "lib/uri/uri.dart", null),
+ "utf": const LibraryPatchPath(
+ "lib/utf/utf.dart", null),
+ "web": const LibraryPatchPath(
+ "lib/compiler/implementation/lib/web.dart",
+ "lib/compiler/implementation/lib/web.dartp"),
};
« no previous file with comments | « lib/compiler/implementation/lib/web.dartp ('k') | lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698