Class WasmMemoryInstruction

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

class WasmMemoryInstruction extends WasmInstruction
WasmInstruction for load and store to the linear memory.
  • Field Details

    • op

      private MemoryOperator op
    • type

      private ValueType type
    • offset

      private int offset
    • alignment

      private int alignment
  • Constructor Details

    • WasmMemoryInstruction

      WasmMemoryInstruction(MemoryOperator op, ValueType type, int offset, int alignment, int javaCodePos, int lineNumber)
      Create an instance of a load/store to the linear memory instruction
      Parameters:
      op - the operation
      type - the type of the static field
      offset - the base offset which will be added to the offset value on the stack
      alignment - the alignment of the value on the linear memory (0: 8 Bit; 1: 16 Bit; 2: 32 Bit)
      javaCodePos - the code position/offset in the Java method
      lineNumber - the line number in the Java source code
  • Method Details