Index: sdk/lib/_internal/compiler/implementation/ssa/tracer.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart b/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart |
index fd4884cdee7b491f8610328bb6fd79fc50272bf0..b2d7a070d9574b7961cb2fbe88420731709914bb 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart |
@@ -348,8 +348,7 @@ class HInstructionStringifier implements HVisitor<String> { |
String name = invoke.selector.name.slowToString(); |
String target = "($kind) $receiver.$name"; |
int offset = HInvoke.ARGUMENTS_OFFSET; |
- List arguments = |
- invoke.inputs.getRange(offset, invoke.inputs.length - offset); |
+ List arguments = invoke.inputs.sublist(offset); |
return visitGenericInvoke("Invoke", target, arguments); |
} |
@@ -363,16 +362,14 @@ class HInstructionStringifier implements HVisitor<String> { |
String visitInvokeStatic(HInvokeStatic invoke) { |
String target = temporaryId(invoke.target); |
int offset = HInvoke.ARGUMENTS_OFFSET; |
- List arguments = |
- invoke.inputs.getRange(offset, invoke.inputs.length - offset); |
+ List arguments = invoke.inputs.sublist(offset); |
return visitGenericInvoke("Invoke", target, arguments); |
} |
String visitInvokeSuper(HInvokeSuper invoke) { |
String target = temporaryId(invoke.target); |
int offset = HInvoke.ARGUMENTS_OFFSET + 1; |
- List arguments = |
- invoke.inputs.getRange(offset, invoke.inputs.length - offset); |
+ List arguments = invoke.inputs.sublist(offset); |
return visitGenericInvoke("Invoke super", target, arguments); |
} |