Class PushIntConstant

java.lang.Object
org.ek9lang.compiler.backend.jvm.support.PushIntConstant
All Implemented Interfaces:
ObjIntConsumer<org.objectweb.asm.MethodVisitor>

public final class PushIntConstant extends Object implements ObjIntConsumer<org.objectweb.asm.MethodVisitor>
THE push of an int constant onto the operand stack using the most compact instruction: ICONST_M1..ICONST_5 for -1..5, BIPUSH for a byte, SIPUSH for a short, otherwise LDC - the ladder several generators had duplicated. Hold one.
  • Constructor Details

    • PushIntConstant

      public PushIntConstant()
  • Method Details

    • accept

      public void accept(org.objectweb.asm.MethodVisitor mv, int value)
      Specified by:
      accept in interface ObjIntConsumer<org.objectweb.asm.MethodVisitor>