Class WasmCallIndirectInstruction

    • Constructor Detail

      • WasmCallIndirectInstruction

        WasmCallIndirectInstruction​(FunctionName name,
                                    int javaCodePos,
                                    int lineNumber,
                                    TypeManager types)
        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
    • Method Detail

      • setVariableSlotOfThis

        void setVariableSlotOfThis​(int tempVarSlot,
                                   LocaleVariableManager localVariables)
        Set the Java variable slot on which THIS can be found.
        Parameters:
        tempVarSlot - the slot
        localVariables - the manager for local variables to resolve the index
      • getVariableIndexOfThis

        int getVariableIndexOfThis()
        Get the variable index on which this can be found.
        Returns:
        the index of the variable
      • isVirtual

        abstract boolean isVirtual()
        if this call is executed virtual or if is was optimized.
        Returns:
        true, virtual call