Class WasmLocalInstruction

java.lang.Object
de.inetsoftware.jwebassembly.module.WasmInstruction
de.inetsoftware.jwebassembly.module.WasmLocalInstruction
Direct Known Subclasses:
WasmLoadStoreInstruction

class WasmLocalInstruction extends WasmInstruction
WasmInstruction for load and store local variables.
  • Field Details

    • op

    • idx

      private int idx
      The variable slot (Java) for WasmLoadStoreInstruction and the WebAssembly variable index for a WasmLocalInstruction instance.
    • localVariables

      final LocaleVariableManager localVariables
    • pushValueType

      private AnyType pushValueType
  • Constructor Details

    • WasmLocalInstruction

      WasmLocalInstruction(@Nonnull VariableOperator op, @Nonnegative int idx, LocaleVariableManager localVariables, int javaCodePos, int lineNumber)
      Create an instance of a load/store instruction for a local variable.
      Parameters:
      op - the operation
      idx - the memory/slot idx of the variable
      localVariables - the manager for local variables
      javaCodePos - the code position/offset in the Java method
      lineNumber - the line number in the Java source code
  • Method Details