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

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: Address review comments Created 5 years, 2 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/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) {

Powered by Google App Engine
This is Rietveld 408576698