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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10901002: Hook up the --minify option in dart2js and use it to get rid of unnecessary whitespace inside funct… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Created 8 years, 4 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 | « lib/compiler/implementation/apiimpl.dart ('k') | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index ec4a5cb689c822771329656a1cda72d3550233f3..23797006b1f4a05d250d98e8961a7876c762c991 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -70,6 +70,8 @@ class Compiler implements DiagnosticListener {
String assembledCode;
Namer namer;
Types types;
+
+ final bool enableMinification;
final bool enableTypeAssertions;
final bool enableUserAssertions;
@@ -166,9 +168,9 @@ class Compiler implements DiagnosticListener {
Compiler([this.tracer = const Tracer(),
this.enableTypeAssertions = false,
this.enableUserAssertions = false,
+ this.enableMinification = false,
bool emitJavascript = true,
bool generateSourceMap = true,
- bool minify = false,
bool cutDeclarationTypes = false])
: libraries = new Map<String, LibraryElement>(),
world = new World(),
@@ -186,7 +188,7 @@ class Compiler implements DiagnosticListener {
typesTask = new ti.TypesTask(this);
backend = emitJavascript ?
new js_backend.JavaScriptBackend(this, generateSourceMap) :
- new dart_backend.DartBackend(this, minify, cutDeclarationTypes);
+ new dart_backend.DartBackend(this, cutDeclarationTypes);
enqueuer = new EnqueueTask(this);
tasks = [scanner, dietParser, parser, resolver, closureToClassMapper,
checker, typesTask, constantHandler, enqueuer];
« no previous file with comments | « lib/compiler/implementation/apiimpl.dart ('k') | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698