Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
index ced53a5071ed8979a8e1687ae15e2d93f85b3cc9..8a47bdcd5c3509b11778a967638e9f9ebb5e84b9 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
@@ -347,7 +347,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase { |
if (backend.fixedLengthListConstructor == null) { |
backend.fixedLengthListConstructor = |
compiler.listClass.lookupConstructor( |
- new Selector.callConstructor(const SourceString("fixedLength"), |
+ new Selector.callConstructor(const SourceString(""), |
floitsch
2013/02/26 13:54:19
please test (manually) that this catches the right
Lasse Reichstein Nielsen
2013/02/26 15:26:00
Done.
|
compiler.listClass.getLibrary())); |
} |
// TODO(ngeoffray): checking if the second input is an integer |
@@ -355,6 +355,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase { |
// other optimizations to reason on a fixed length constructor |
// that we know takes an int. |
return element == backend.fixedLengthListConstructor |
+ && node.inputs.length == 2 |
&& node.inputs[1].isInteger(); |
} |
@@ -589,7 +590,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase { |
if (node.element == backend.jsArrayLength) { |
if (node.receiver is HInvokeStatic) { |
// Try to recognize the length getter with input |
- // [:new List.fixedLength(int):]. |
+ // [:new List(int):]. |
HInvokeStatic call = node.receiver; |
if (isFixedSizeListConstructor(call)) { |
return call.inputs[1]; |
@@ -1080,8 +1081,8 @@ class SsaGlobalValueNumberer implements OptimizationPhase { |
// loop changes flags list to zero so we can use bitwise or when |
// propagating loop changes upwards. |
final int length = graph.blocks.length; |
- blockChangesFlags = new List<int>.fixedLength(length); |
- loopChangesFlags = new List<int>.fixedLength(length); |
+ blockChangesFlags = new List<int>(length); |
+ loopChangesFlags = new List<int>(length); |
for (int i = 0; i < length; i++) loopChangesFlags[i] = 0; |
// Run through all the basic blocks in the graph and fill in the |
@@ -1156,7 +1157,7 @@ class SsaCodeMotion extends HBaseVisitor implements OptimizationPhase { |
List<ValueSet> values; |
void visitGraph(HGraph graph) { |
- values = new List<ValueSet>.fixedLength(graph.blocks.length); |
+ values = new List<ValueSet>(graph.blocks.length); |
for (int i = 0; i < graph.blocks.length; i++) { |
values[graph.blocks[i].id] = new ValueSet(); |
} |