Class WasmConstInstruction

java.lang.Object
de.inetsoftware.jwebassembly.module.WasmInstruction
de.inetsoftware.jwebassembly.module.WasmConstInstruction

class WasmConstInstruction extends WasmInstruction
WasmInstruction for constant values.
  • Field Details

    • value

      private final Number value
    • valueType

      private final ValueType valueType
  • Constructor Details

    • WasmConstInstruction

      WasmConstInstruction(Number value, ValueType valueType, int javaCodePos, int lineNumber)
      Create an instance of a constant instruction
      Parameters:
      value - the constant value
      valueType - the data type of the number
      javaCodePos - the code position/offset in the Java method
      lineNumber - the line number in the Java source code
    • WasmConstInstruction

      WasmConstInstruction(Number value, int javaCodePos, int lineNumber)
      Create an instance of a constant instruction
      Parameters:
      value - the constant value
      javaCodePos - the code position/offset in the Java method
      lineNumber - the line number in the Java source code
  • Method Details