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

Unified Diff: pkg/front_end/lib/src/fasta/translate_uri.dart

Issue 2832353002: Add support for building patched_sdk and platform.dill for dart2js: (Closed)
Patch Set: fix .gn circularity by removing use of rebase_path Created 3 years, 8 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
Index: pkg/front_end/lib/src/fasta/translate_uri.dart
diff --git a/pkg/front_end/lib/src/fasta/translate_uri.dart b/pkg/front_end/lib/src/fasta/translate_uri.dart
index d7c41836e1a700fb394256750cb2e797dffa8d42..44751ec6f85fdb959d7f6a8dedb1a1add4c6f526 100644
--- a/pkg/front_end/lib/src/fasta/translate_uri.dart
+++ b/pkg/front_end/lib/src/fasta/translate_uri.dart
@@ -37,16 +37,40 @@ class TranslateUri {
}
static Future<TranslateUri> parse(Uri sdk, [Uri uri]) async {
- // This list is generated with [bin/generate_dart_libraries.dart] below.
+ // This list below is generated with [bin/generate_dart_libraries.dart] and
+ // additional entries for _builtin, _vmservice, profiler, and vmservice_io.
//
// TODO(ahe): This is only used with the option --compile-sdk, and
// currently doesn't work outside the SDK source tree.
Map<String, Uri> dartLibraries = <String, Uri>{};
if (sdk != null) {
dartLibraries = <String, Uri>{
- "async": sdk.resolve("lib/async/async.dart"),
+ "_async_await_error_codes": sdk.resolve(
+ "lib/_internal/js_runtime/lib/shared/async_await_error_codes.dart"),
"_blink": sdk.resolve("lib/_blink/dartium/_blink_dartium.dart"),
+ "_builtin": sdk.resolve("lib/_builtin/_builtin.dart"),
"_chrome": sdk.resolve("lib/_chrome/dart2js/chrome_dart2js.dart"),
+ "_foreign_helper":
+ sdk.resolve("lib/_internal/js_runtime/lib/foreign_helper.dart"),
+ "_interceptors":
+ sdk.resolve("lib/_internal/js_runtime/lib/interceptors.dart"),
+ "_internal": sdk.resolve("lib/internal/internal.dart"),
+ "_isolate_helper":
+ sdk.resolve("lib/_internal/js_runtime/lib/isolate_helper.dart"),
+ "_js_embedded_names": sdk
+ .resolve("lib/_internal/js_runtime/lib/shared/embedded_names.dart"),
+ "_js_helper":
+ sdk.resolve("lib/_internal/js_runtime/lib/js_helper.dart"),
+ "_js_mirrors":
+ sdk.resolve("lib/_internal/js_runtime/lib/js_mirrors.dart"),
+ "_js_names": sdk.resolve("lib/_internal/js_runtime/lib/js_names.dart"),
+ "_js_primitives":
+ sdk.resolve("lib/_internal/js_runtime/lib/js_primitives.dart"),
+ "_metadata": sdk.resolve("lib/html/html_common/metadata.dart"),
+ "_native_typed_data":
+ sdk.resolve("lib/_internal/js_runtime/lib/native_typed_data.dart"),
+ "_vmservice": sdk.resolve("lib/vmservice/vmservice.dart"),
+ "async": sdk.resolve("lib/async/async.dart"),
"collection": sdk.resolve("lib/collection/collection.dart"),
"convert": sdk.resolve("lib/convert/convert.dart"),
"core": sdk.resolve("lib/core/core.dart"),
@@ -62,17 +86,14 @@ class TranslateUri {
"math": sdk.resolve("lib/math/math.dart"),
"mirrors": sdk.resolve("lib/mirrors/mirrors.dart"),
"nativewrappers": sdk.resolve("lib/html/dartium/nativewrappers.dart"),
- "typed_data": sdk.resolve("lib/typed_data/typed_data.dart"),
+ "profiler": sdk.resolve("lib/profiler/profiler.dart"),
"svg": sdk.resolve("lib/svg/dartium/svg_dartium.dart"),
+ "typed_data": sdk.resolve("lib/typed_data/typed_data.dart"),
+ "vmservice_io": sdk.resolve("lib/vmservice_io/vmservice_io.dart"),
"web_audio":
sdk.resolve("lib/web_audio/dartium/web_audio_dartium.dart"),
"web_gl": sdk.resolve("lib/web_gl/dartium/web_gl_dartium.dart"),
"web_sql": sdk.resolve("lib/web_sql/dartium/web_sql_dartium.dart"),
- "_internal": sdk.resolve("lib/internal/internal.dart"),
- "profiler": sdk.resolve("lib/profiler/profiler.dart"),
- "vmservice_io": sdk.resolve("lib/vmservice_io/vmservice_io.dart"),
- "_vmservice": sdk.resolve("lib/vmservice/vmservice.dart"),
- "_builtin": sdk.resolve("lib/_builtin/_builtin.dart"),
};
}
uri ??= Uri.base.resolve(".packages");
« no previous file with comments | « pkg/front_end/lib/src/fasta/target_implementation.dart ('k') | pkg/front_end/tool/_fasta/generate_dart_libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698