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

Unified Diff: lib/compiler/implementation/ssa/codegen.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: 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
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index d6e8284a610a95fe8e771bf0203450bb8f741d12..56c8c1f4c36004fb4e62f9d53c3a0ac95d5fa3bb 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -78,7 +78,7 @@ class SsaCodeGeneratorTask extends CompilerTask {
return prettyPrint(fun, work.element);
});
}
-
+
void addTypeParameters(Element element,
List<js.Parameter> parameters,
Map<Element, String> parameterNames) {
@@ -88,7 +88,7 @@ class SsaCodeGeneratorTask extends CompilerTask {
String name = typeVariable.element.name.slowToString();
String prefix = '';
// Avoid collisions with real parameters of the method.
- do {
+ do {
name = JsNames.getValid('$prefix$name');
prefix = '\$$prefix';
} while (parameterNames.containsValue(name));

Powered by Google App Engine
This is Rietveld 408576698