public <T> void newArray(Local<T> target, Local<Integer> length) {
    addInstruction(
        new ThrowingCstInsn(
            Rops.opNewArray(target.type.ropType),
            sourcePosition,
            RegisterSpecList.make(length.spec()),
            catches,
            target.type.constant));
    moveResult(target, true);
  }
Assigns {@code target} to a newly allocated array of length {@code length}. The array's type is
the same as {@code target}'s type.
android/android_framework/dex-maker/src/main/java/com/android/dx/Code.java