Chromium Code Reviews| 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) { |