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 1ad8c6382e785678ae8fd44d0fc99e78a38d705e..83589a02b517d7a80604fae47b212b8f0fa6fc57 100644 |
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart |
@@ -1653,7 +1653,6 @@ class OldEmitter implements Emitter { |
compiler.outputProvider('', 'js') |
..add(assembledCode) |
..close(); |
- compiler.assembledCode = assembledCode; |
} |
/// Used by incremental compilation to patch up the prototype of |
@@ -1832,7 +1831,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; |
@@ -1849,6 +1848,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) { |