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

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

Issue 9963005: Fix bug where a parameter was mutated while it was still used. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | tests/language/src/LivenessTest.dart » ('j') | 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 f91de80334263c91b8e09dd07330f177e3ae3da9..b19f4cf7663167981578256995a1ea18d38abe5b 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -172,12 +172,6 @@ class SsaCodeGenerator implements HVisitor {
if (instruction is HPhi) {
HPhi phi = instruction;
Element element = phi.element;
- if (element != null && element.kind == ElementKind.PARAMETER) {
- name = parameterNames[element];
- names[id] = name;
- return name;
- }
-
String prefix;
if (element !== null && !element.name.isEmpty()) {
prefix = element.name.slowToString();
« no previous file with comments | « no previous file | tests/language/src/LivenessTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698