public void instanceOfType(Local<?> target, Local<?> source, TypeId<?> type) {
    addInstruction(
        new ThrowingCstInsn(
            Rops.INSTANCE_OF,
            sourcePosition,
            RegisterSpecList.make(source.spec()),
            catches,
            type.constant));
    moveResult(target, true);
  }
Tests if the value in {@code source} is assignable to {@code type}. If it is, {@code target} is
assigned to 1; otherwise {@code target} is assigned to 0.
android/android_framework/dex-maker/src/main/java/com/android/dx/Code.java