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 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.TypegetType()Get the type of instruction(package private) booleanif this call is executed virtual or if is was optimized.voidwriteTo(ModuleWriter writer) Write this instruction to the WASM module.Methods inherited from class WasmCallIndirectInstruction
getThisType, getVariableIndexOfThis, setVariableSlotOfThisMethods inherited from class WasmCallInstruction
getFunctionName, getPopCount, getPopValueTypes, getPushValueType, getTypeManagerMethods inherited from class 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:
getTypein classWasmCallInstruction- Returns:
- the type
-
isVirtual
boolean isVirtual()if this call is executed virtual or if is was optimized.- Specified by:
isVirtualin classWasmCallIndirectInstruction- Returns:
- true, virtual call
-
writeTo
Write this instruction to the WASM module.- Overrides:
writeToin classWasmCallInstruction- Parameters:
writer- the target writer- Throws:
IOException- if any I/O error occur
-