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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.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
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/dart_backend/outputter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 8498f2467ce1f0c730318316f175ce89f83d6ccf..3aebb9e6ce845d348474c16237b4dd6832b6a547 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -193,7 +193,7 @@ class DartBackend extends Backend {
|| mirrorRenamer.isMirrorHelperLibrary(element.library);
}
- int assembleProgram() {
+ void assembleProgram() {
ElementAstCreationContext context =
new _ElementAstCreationContext(compiler, constantSystem);
@@ -222,7 +222,7 @@ class DartBackend extends Backend {
collector.collect();
}
- int totalSize = outputter.assembleProgram(
+ String assembledCode = outputter.assembleProgram(
libraries: compiler.libraryLoader.libraries,
instantiatedClasses: compiler.resolverWorld.directlyInstantiatedClasses,
resolvedElements: compiler.enqueuer.resolution.resolvedElements,
@@ -235,15 +235,16 @@ class DartBackend extends Backend {
mirrorRenamer: mirrorRenamer,
mainFunction: compiler.mainFunction,
outputUri: compiler.outputUri);
+ compiler.assembledCode = assembledCode;
+
+ int totalSize = assembledCode.length;
// Output verbose info about size ratio of resulting bundle to all
// referenced non-platform sources.
logResultBundleSizeInfo(
outputter.libraryInfo.userLibraries,
outputter.elementInfo.topLevelElements,
- totalSize);
-
- return totalSize;
+ assembledCode.length);
}
void logResultBundleSizeInfo(Iterable<LibraryElement> userLibraries,
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/dart_backend/outputter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698