@Override
  public int load(EmitContext emitContext, InstructionAdapter mv) {
    int stackSizeIncrease =
        assertDouble(childAt(0)).load(emitContext, mv)
            + assertDouble(childAt(1)).load(emitContext, mv);

    mv.visitMethodInsn(
        Opcodes.INVOKESTATIC,
        Type.getInternalName(DoubleSequence.class),
        "fromTo",
        Type.getMethodDescriptor(
            Type.getType(AtomicVector.class), Type.DOUBLE_TYPE, Type.DOUBLE_TYPE),
        false);

    return stackSizeIncrease;
  }
Esempio n. 2
0
 public Type getJvmPartArrayType() {
   return Type.getType("[" + getJvmPartType().getDescriptor());
 }