| Index: pkg/dart2js_incremental/lib/library_updater.dart
|
| diff --git a/pkg/dart2js_incremental/lib/library_updater.dart b/pkg/dart2js_incremental/lib/library_updater.dart
|
| index f111d4a582952d5eeb717f4488e0414ccb4dd738..758211f68ab5e53bfa7d01ae93b4768021e2bbf7 100644
|
| --- a/pkg/dart2js_incremental/lib/library_updater.dart
|
| +++ b/pkg/dart2js_incremental/lib/library_updater.dart
|
| @@ -155,14 +155,18 @@ class IncrementalCompilerContext extends _IncrementalCompilerContext {
|
|
|
| void _captureState(Compiler compiler) {
|
| JavaScriptBackend backend = compiler.backend;
|
| - _emittedClasses = new Set.from(backend.emitter.neededClasses);
|
| + Set neededClasses = backend.emitter.neededClasses;
|
| + if (neededClasses == null) {
|
| + neededClasses = new Set();
|
| + }
|
| + _emittedClasses = new Set.from(neededClasses);
|
|
|
| _directlyInstantiatedClasses =
|
| new Set.from(compiler.codegenWorld.directlyInstantiatedClasses);
|
|
|
| - List<ConstantValue> constants =
|
| - backend.emitter.outputConstantLists[
|
| - compiler.deferredLoadTask.mainOutputUnit];
|
| + // This breaks constant tracking of the incremental compiler. It would need
|
| + // to capture the emitted constants.
|
| + List<ConstantValue> constants = null;
|
| if (constants == null) constants = <ConstantValue>[];
|
| _compiledConstants = new Set<ConstantValue>.identity()..addAll(constants);
|
| }
|
|
|