Moved IntRange.count to Ranges class.

This commit is contained in:
Evgeny Gerashchenko
2013-01-22 20:39:36 +04:00
parent af0997a147
commit eb8107115d
4 changed files with 10 additions and 5 deletions
@@ -41,7 +41,7 @@ public class ArrayIndices implements IntrinsicMethod {
) {
receiver.put(receiver.type, v);
v.arraylength();
v.invokestatic(AsmTypeConstants.JET_INT_RANGE_TYPE.getInternalName(), "count", "(I)Ljet/IntRange;");
v.invokestatic("jet/runtime/Ranges", "arrayIndices", "(I)Ljet/IntRange;");
return StackValue.onStack(AsmTypeConstants.JET_INT_RANGE_TYPE);
}
}