| Index: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| index 40a747308c37b9f4be70cc4cc5ec6662b73d3d74..51a94d6d2982c14c033da47fe41329980810b2a8 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| @@ -1825,7 +1825,6 @@ class OldEmitter implements Emitter {
|
| compiler.outputProvider('', 'js')
|
| ..add(assembledCode)
|
| ..close();
|
| - compiler.assembledCode = assembledCode;
|
| }
|
|
|
| /// Used by incremental compilation to patch up the prototype of
|
| @@ -2004,7 +2003,7 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) {
|
| return nativeBuffer;
|
| }
|
|
|
| - void emitProgram(Program program) {
|
| + int emitProgram(Program program) {
|
| // Shorten the code by using [namer.currentIsolate] as temporary.
|
| isolateProperties = namer.currentIsolate;
|
|
|
| @@ -2023,6 +2022,9 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) {
|
| !backend.htmlLibraryIsLoaded) {
|
| compiler.reportHint(NO_LOCATION_SPANNABLE, MessageKind.PREAMBLE);
|
| }
|
| +
|
| + // Return the total program size.
|
| + return outputBuffers.values.fold(0, (a, b) => a + b.length);
|
| }
|
|
|
| String generateSourceMapTag(Uri sourceMapUri, Uri fileUri) {
|
|
|