Index: pkg/compiler/lib/src/ssa/nodes.dart |
diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart |
index b23f32d6ecc357c67ab91285fcce0199de06a25d..dfcc4d367582ad41324d5bee88c4b651fb8e5c41 100644 |
--- a/pkg/compiler/lib/src/ssa/nodes.dart |
+++ b/pkg/compiler/lib/src/ssa/nodes.dart |
@@ -1393,6 +1393,9 @@ class HBoundsCheck extends HCheck { |
HInstruction get length => inputs[1]; |
HInstruction get index => inputs[0]; |
HInstruction get array => inputs[2]; |
+ // There can be an additional fourth input which is the index to report to |
+ // [ioore]. This is used by the expansion of [JSArray.removeLast]. |
+ HInstruction get reportedIndex => inputs.length > 3 ? inputs[3] : index; |
bool isControlFlow() => true; |
accept(HVisitor visitor) => visitor.visitBoundsCheck(this); |