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

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

Issue 755223002: Always enable RTI for incremental compilation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41955. Created 6 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
Index: dart/pkg/dart2js_incremental/lib/caching_compiler.dart
diff --git a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
index c6b3a4a1dabeba1e9c668871fabe3fc3548c2867..0a368779777cc0422d0e77d4f00d121b2254a4bc 100644
--- a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
+++ b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
@@ -65,10 +65,19 @@ Future<Compiler> reuseCompiler(
options,
environment);
JavaScriptBackend backend = compiler.backend;
+
// Much like a scout, an incremental compiler is always prepared. For
// mixins, at least.
backend.emitter.oldEmitter.needsMixinSupport = true;
- return new Future.value(compiler);
+
+ Uri core = Uri.parse("dart:core");
+ return compiler.libraryLoader.loadLibrary(core).then((_) {
+ // Likewise, always be prepared for runtimeType support.
+ compiler.enabledRuntimeType = true;
+ backend.registerRuntimeType(
Johnni Winther 2014/12/01 08:50:19 Add a TODO for me to add a global switch for alway
ahe 2014/12/01 10:15:02 Done.
+ compiler.enqueuer.resolution, compiler.globalDependencies);
+ return compiler;
+ });
} else {
for (final task in compiler.tasks) {
if (task.watch != null) {

Powered by Google App Engine
This is Rietveld 408576698