Class WasmCallVirtualInstruction
- java.lang.Object
-
- de.inetsoftware.jwebassembly.module.WasmInstruction
-
- de.inetsoftware.jwebassembly.module.WasmCallInstruction
-
- de.inetsoftware.jwebassembly.module.WasmCallIndirectInstruction
-
- de.inetsoftware.jwebassembly.module.WasmCallVirtualInstruction
-
class WasmCallVirtualInstruction 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 WasmOptionsoptions
-
Constructor Summary
Constructors Constructor Description WasmCallVirtualInstruction(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.TypegetType()Get the type of instruction(package private) booleanisVirtual()if this call is executed virtual or if is was optimized.voidwriteTo(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
-
WasmCallVirtualInstruction
WasmCallVirtualInstruction(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:
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
public void writeTo(@Nonnull ModuleWriter writer) throws java.io.IOExceptionWrite this instruction to the WASM module.- Overrides:
writeToin classWasmCallInstruction- Parameters:
writer- the target writer- Throws:
java.io.IOException- if any I/O error occur
-
-