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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 832363002: 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/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 3aebb9e6ce845d348474c16237b4dd6832b6a547..8498f2467ce1f0c730318316f175ce89f83d6ccf 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);
}
- void assembleProgram() {
+ int assembleProgram() {
ElementAstCreationContext context =
new _ElementAstCreationContext(compiler, constantSystem);
@@ -222,7 +222,7 @@ class DartBackend extends Backend {
collector.collect();
}
- String assembledCode = outputter.assembleProgram(
+ int totalSize = outputter.assembleProgram(
libraries: compiler.libraryLoader.libraries,
instantiatedClasses: compiler.resolverWorld.directlyInstantiatedClasses,
resolvedElements: compiler.enqueuer.resolution.resolvedElements,
@@ -235,16 +235,15 @@ 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,
- assembledCode.length);
+ totalSize);
+
+ return totalSize;
}
void logResultBundleSizeInfo(Iterable<LibraryElement> userLibraries,

Powered by Google App Engine
This is Rietveld 408576698