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 9aaabb331afa6e10a978b19a8d3eb90638f61450..925f9e8f39ad30f9a5355d3d2d50acdd638cd880 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
@@ -310,7 +310,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase { |
// bounds check will become explicit, so we won't need this |
// optimization. |
HInvokeDynamicMethod result = new HInvokeDynamicMethod( |
- node.selector, node.inputs.getRange(1, node.inputs.length - 1)); |
+ node.selector, node.inputs.sublist(1)); |
result.element = target; |
return result; |
} |