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

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

Issue 10860036: Few tweaks to the generated code to avoid eg parenthesis. (Closed) Base URL: http://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
« no previous file with comments | « lib/compiler/implementation/js/printer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/codegen.dart
===================================================================
--- lib/compiler/implementation/ssa/codegen.dart (revision 10937)
+++ lib/compiler/implementation/ssa/codegen.dart (working copy)
@@ -89,7 +89,7 @@
codegen.visitGraph(graph);
js.Block body = new js.Block(<js.Statement>[]);
- body.statements.add(codegen.setup);
+ if (codegen.setup != null) body.statements.add(codegen.setup);
body.statements.add(codegen.body);
js.Fun fun =
buildJavaScriptFunction(work.element, codegen.newParameters, body);
@@ -2602,7 +2602,6 @@
SsaUnoptimizedCodeGenerator(backend, work, parameters, parameterNames)
: super(backend, work, parameterNames),
- setup = new js.EmptyStatement(),
oldBailoutSwitches = <js.Switch>[],
newParameters = <js.Parameter>[],
labels = <String>[],
« no previous file with comments | « lib/compiler/implementation/js/printer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698