Class WasmCallInterfaceInstruction
- java.lang.Object
-
- de.inetsoftware.jwebassembly.module.WasmInstruction
-
- de.inetsoftware.jwebassembly.module.WasmCallInstruction
-
- de.inetsoftware.jwebassembly.module.WasmCallIndirectInstruction
-
- de.inetsoftware.jwebassembly.module.WasmCallInterfaceInstruction
-
class WasmCallInterfaceInstruction extends WasmCallIndirectInstruction
WasmInstruction for a function call.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.inetsoftware.jwebassembly.module.WasmInstruction
WasmInstruction.Type
-
-
Field Summary
Fields Modifier and Type Field Description private WasmOptions
options
-
Constructor Summary
Constructors Constructor Description WasmCallInterfaceInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, WasmOptions options)
Create an instance of a function call instruction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) WasmInstruction.Type
getType()
Get the type of instruction(package private) boolean
isVirtual()
if this call is executed virtual or if is was optimized.void
writeTo(ModuleWriter writer)
Write this instruction to the WASM module.-
Methods inherited from class de.inetsoftware.jwebassembly.module.WasmCallIndirectInstruction
getThisType, getVariableIndexOfThis, setVariableSlotOfThis
-
Methods inherited from class de.inetsoftware.jwebassembly.module.WasmCallInstruction
getFunctionName, getPopCount, getPopValueTypes, getPushValueType, getTypeManager
-
Methods inherited from class de.inetsoftware.jwebassembly.module.WasmInstruction
getCodePosition, getLineNumber, setCodePosition
-
-
-
-
Field Detail
-
options
private final WasmOptions options
-
-
Constructor Detail
-
WasmCallInterfaceInstruction
WasmCallInterfaceInstruction(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, WasmOptions options)
Create an instance of a function call instruction- Parameters:
name
- the function name that should be calledjavaCodePos
- the code position/offset in the Java methodlineNumber
- the line number in the Java source codetypes
- the type manageroptions
- compiler properties
-
-
Method Detail
-
getType
WasmInstruction.Type getType()
Get the type of instruction- Overrides:
getType
in classWasmCallInstruction
- Returns:
- the type
-
isVirtual
boolean isVirtual()
if this call is executed virtual or if is was optimized.- Specified by:
isVirtual
in classWasmCallIndirectInstruction
- Returns:
- true, virtual call
-
writeTo
public void writeTo(@Nonnull ModuleWriter writer) throws java.io.IOException
Write this instruction to the WASM module.- Overrides:
writeTo
in classWasmCallInstruction
- Parameters:
writer
- the target writer- Throws:
java.io.IOException
- if any I/O error occur
-
-