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

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

Issue 10831154: Make field-get/set work without elements. (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/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index 2b4831ad2a2097aa905c57f98ba09560826f80c2..ef7273adb755e001b8be7f22cdfdd358386d5dac 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -592,7 +592,8 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
break;
}
}
- return new HFieldGet(field, node.inputs[0], isFinalOrConst: isFinalOrConst);
+ return new HFieldGet.withElement(
+ field, node.inputs[0], isFinalOrConst: isFinalOrConst);
}
HInstruction visitInvokeDynamicSetter(HInvokeDynamicSetter node) {
@@ -603,7 +604,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
if (type === null) return node;
Element field = compiler.world.locateSingleField(type, node.name);
if (field === null) return node;
- return new HFieldSet(field, node.inputs[0], node.inputs[1]);
+ return new HFieldSet.withElement(field, node.inputs[0], node.inputs[1]);
}
HInstruction visitStringConcat(HStringConcat node) {

Powered by Google App Engine
This is Rietveld 408576698