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
WasmInstruction for a function call.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.inetsoftware.jwebassembly.module.WasmInstruction
WasmInstruction.Type
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWasmCallInterfaceInstruction
(FunctionName name, int javaCodePos, int lineNumber, TypeManager types, WasmOptions options) Create an instance of a function call instruction -
Method Summary
Modifier and TypeMethodDescription(package private) WasmInstruction.Type
getType()
Get the type of instruction(package private) boolean
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 Details
-
options
-
-
Constructor Details
-
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 Details
-
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
Write this instruction to the WASM module.- Overrides:
writeTo
in classWasmCallInstruction
- Parameters:
writer
- the target writer- Throws:
IOException
- if any I/O error occur
-