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

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

Issue 10304010: Remove dead code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « no previous file | 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
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index 05ff7e857071e4dbdd239f34c0c3723454c37c94..8fbd1cdd05a5b9790808d14fac8656c339b6306a 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -1293,10 +1293,6 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
}
visitFieldSet(HFieldSet node) {
- // This method may introduce variable declarations in the JS code.
- // If we are generating an expression, those variable declarations
- // must be delayed until later.
- bool delayDeclaration = false;
String name;
if (node.receiver !== null) {
name =
@@ -1311,7 +1307,6 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
name = JsNames.getValid(node.element.name.slowToString());
declareVariable(name);
}
- if (delayDeclaration) delayedVarDecl = delayedVarDecl.prepend(name);
buffer.add(' = ');
use(node.value, JSPrecedence.ASSIGNMENT_PRECEDENCE);
if (node.receiver !== null) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698