Interface JitType.SimpleJitType

All Superinterfaces:
JitType
All Known Implementing Classes:
JitType.DoubleJitType, JitType.FloatJitType, JitType.IntJitType, JitType.LongJitType
Enclosing interface:
JitType

public static interface JitType.SimpleJitType extends JitType
A p-code type that can be represented in a single JVM variable.
  • Method Details

    • javaType

      Class<?> javaType()
      The JVM type of the variable that can represent a p-code variable of this type
      Returns:
      the primitive class (not boxed)
    • opcodeLoad

      int opcodeLoad()
      The JVM opcode to load a local variable of this type onto the stack
      Returns:
      the opcode
    • opcodeStore

      int opcodeStore()
      The JVM opcode to store a local variable of this type from the stack
      Returns:
      the opcode
    • asInt

      Re-apply the integer behavior to this type

      This may be slightly faster than JitTypeBehavior.INTEGER.resolve(this), because each type can pick its int type directly, and integer types can just return this.

      Returns:
      this type as an int