Class WasmCallInstruction

java.lang.Object
de.inetsoftware.jwebassembly.module.WasmInstruction
de.inetsoftware.jwebassembly.module.WasmCallInstruction
Direct Known Subclasses:
WasmCallIndirectInstruction

class WasmCallInstruction extends WasmInstruction
WasmInstruction for a function call.
  • Field Details

    • valueType

      private AnyType valueType
    • name

      private FunctionName name
    • paramCount

      private int paramCount
    • types

      @Nonnull private final TypeManager types
    • needThisParameter

      private final boolean needThisParameter
    • comment

      private final String comment
  • Constructor Details

    • WasmCallInstruction

      WasmCallInstruction(FunctionName name, int javaCodePos, int lineNumber, @Nonnull TypeManager types, boolean needThisParameter)
      Create an instance of a function call instruction
      Parameters:
      name - the function name that should be called
      javaCodePos - the code position/offset in the Java method
      lineNumber - the line number in the Java source code
      types - the type manager
      needThisParameter - true, if this function need additional to the parameter of the signature an extra "this" parameter
    • WasmCallInstruction

      WasmCallInstruction(FunctionName name, int javaCodePos, int lineNumber, @Nonnull TypeManager types, boolean needThisParameter, String comment)
      Create an instance of a function call instruction
      Parameters:
      name - the function name that should be called
      javaCodePos - the code position/offset in the Java method
      lineNumber - the line number in the Java source code
      types - the type manager
      needThisParameter - true, if this function need additional to the parameter of the signature an extra "this" parameter
      comment - optional comment for the text format
  • Method Details