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

Unified Diff: pkg/dart2js_incremental/lib/caching_compiler.dart

Issue 1408253006: Introduce "platform configurations" to replace categories and libraries.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix create_sdk scripts according to review Created 5 years, 1 month 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 | « pkg/compiler/samples/darttags/darttags.dart ('k') | pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dart2js_incremental/lib/caching_compiler.dart
diff --git a/pkg/dart2js_incremental/lib/caching_compiler.dart b/pkg/dart2js_incremental/lib/caching_compiler.dart
index e2307dcdd4ba77bfda25a3d3888244e7f6453a4c..4185df1c46b8be92bb1e72bc2a37a9d08b97cb64 100644
--- a/pkg/dart2js_incremental/lib/caching_compiler.dart
+++ b/pkg/dart2js_incremental/lib/caching_compiler.dart
@@ -76,13 +76,16 @@ Future<CompilerImpl> reuseCompiler(
..needsStructuredMemberInfo = true;
Uri core = Uri.parse("dart:core");
- return compiler.libraryLoader.loadLibrary(core).then((_) {
- // Likewise, always be prepared for runtimeType support.
- // TODO(johnniwinther): Add global switch to force RTI.
- compiler.enabledRuntimeType = true;
- backend.registerRuntimeType(
- compiler.enqueuer.resolution, compiler.globalDependencies);
- return compiler;
+
+ return compiler.setupSdk().then((_) {
+ return compiler.libraryLoader.loadLibrary(core).then((_) {
+ // Likewise, always be prepared for runtimeType support.
+ // TODO(johnniwinther): Add global switch to force RTI.
+ compiler.enabledRuntimeType = true;
+ backend.registerRuntimeType(
+ compiler.enqueuer.resolution, compiler.globalDependencies);
+ return compiler;
+ });
});
} else {
for (final task in compiler.tasks) {
« no previous file with comments | « pkg/compiler/samples/darttags/darttags.dart ('k') | pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698