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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 824103005: Revert "Remove Compiler.assembledCode." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months 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: 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 83589a02b517d7a80604fae47b212b8f0fa6fc57..1ad8c6382e785678ae8fd44d0fc99e78a38d705e 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
@@ -1653,6 +1653,7 @@ class OldEmitter implements Emitter {
compiler.outputProvider('', 'js')
..add(assembledCode)
..close();
+ compiler.assembledCode = assembledCode;
}
/// Used by incremental compilation to patch up the prototype of
@@ -1831,7 +1832,7 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) {
return nativeBuffer;
}
- int emitProgram(Program program) {
+ void emitProgram(Program program) {
// Shorten the code by using [namer.currentIsolate] as temporary.
isolateProperties = namer.currentIsolate;
@@ -1848,9 +1849,6 @@ 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) {
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart ('k') | pkg/dart2js_incremental/lib/caching_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698