Class WasmInstructionBuilder
java.lang.Object
org.teavm.backend.wasm.model.instruction.WasmInstructionBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(WasmInstruction instruction) append(WasmFragmentBuilder fragment) arrayGet(WasmArray type, WasmSignedType signedType) arrayNewDefault(WasmArray type) arrayNewFixed(WasmArray type, int size) block()block(WasmBlockType type) branch(WasmInstructionBuilder target) branch(WasmInstructionList target) breakTo(WasmInstructionBuilder target) breakTo(WasmInstructionList target) call(WasmFunction function) call(WasmFunction function, boolean suspend) callIndirect(WasmFunctionType type) callReference(WasmFunctionType type, boolean suspend) cast(WasmCompositeType targetType) cast(WasmType.Reference targetType) castBranch(WasmCastCondition condition, WasmType.Reference sourceType, WasmType.Reference targetType, WasmInstructionBuilder target) castBranch(WasmCastCondition condition, WasmType.Reference sourceType, WasmType.Reference targetType, WasmInstructionList target) conditional(WasmBlockType type) conditional(WasmType type) convert(WasmNumType sourceType, WasmNumType targetType, boolean signed) copy()drop()f32Const(float value) f64Const(double value) fill()floatBinary(WasmFloatType type, WasmFloatBinaryOperation operation) floatUnary(WasmFloatType type, WasmFloatUnaryOperation operation) funcRef(WasmFunction function) getGlobal(WasmGlobal global) i31Get(WasmSignedType signedType) i31Ref()i32Const(int value) i64Const(long value) intBinary(WasmIntType type, WasmIntBinaryOperation operation) intUnary(WasmIntType type, WasmIntUnaryOperation operation) isNull()booleanloadF32(int alignment, int offset) loadF64(int alignment, int offset) loadI32(int alignment, int offset, WasmInt32Subtype convertFrom) loadI64(int alignment, int offset, WasmInt64Subtype convertFrom) loop()loop(WasmBlockType type) negate()nonTrapConvert(WasmNumType sourceType, WasmNumType targetType, boolean signed) nullBranch(WasmNullCondition condition, WasmInstructionBuilder target) nullBranch(WasmNullCondition condition, WasmInstructionList target) nullConst(WasmType.Reference type) pushLocation(TextLocation location) refEqual()reinterpret(WasmNumType sourceType, WasmNumType targetType) return_()setGlobal(WasmGlobal global) storeF32(int alignment, int offset) storeF64(int alignment, int offset) storeI32(int alignment, int offset, WasmInt32Subtype convertTo) storeI64(int alignment, int offset, WasmInt64Subtype convertTo) structGet(WasmStructure type, int fieldIndex) structGet(WasmStructure type, int fieldIndex, WasmSignedType signedType) structNew(WasmStructure type) structSet(WasmStructure type, int fieldIndex) switch_(WasmInstructionBuilder defaultTarget) switch_(WasmInstructionList defaultTarget) test(WasmType.Reference testType) try_()
-
Field Details
-
typeInference
-
list
-
-
Constructor Details
-
WasmInstructionBuilder
-
-
Method Details
-
pushLocation
-
popLocation
-
unreachable
-
block
-
block
-
block
-
loop
-
loop
-
loop
-
conditional
-
conditional
-
conditional
-
branch
-
branch
-
nullBranch
-
nullBranch
public WasmInstructionBuilder nullBranch(WasmNullCondition condition, WasmInstructionBuilder target) -
castBranch
public WasmInstructionBuilder castBranch(WasmCastCondition condition, WasmType.Reference sourceType, WasmType.Reference targetType, WasmInstructionList target) -
castBranch
public WasmInstructionBuilder castBranch(WasmCastCondition condition, WasmType.Reference sourceType, WasmType.Reference targetType, WasmInstructionBuilder target) -
breakTo
-
breakTo
-
switch_
-
switch_
-
return_
-
i32Const
-
i64Const
-
f32Const
-
f64Const
-
nullConst
-
isNull
-
getLocal
-
setLocal
-
teeLocal
-
getGlobal
-
setGlobal
-
intBinary
-
floatBinary
-
intUnary
-
floatUnary
-
convert
public WasmInstructionBuilder convert(WasmNumType sourceType, WasmNumType targetType, boolean signed) -
reinterpret
-
nonTrapConvert
public WasmInstructionBuilder nonTrapConvert(WasmNumType sourceType, WasmNumType targetType, boolean signed) -
call
-
call
-
callIndirect
-
callReference
-
callReference
-
drop
-
loadI32
-
loadI64
-
loadF32
-
loadF64
-
storeI32
-
storeI64
-
storeF32
-
storeF64
-
memoryGrow
-
fill
-
copy
-
try_
-
try_
-
throw_
-
refEqual
-
cast
-
cast
-
test
-
externConvert
-
structNew
-
structNewDefault
-
structGet
-
structGet
public WasmInstructionBuilder structGet(WasmStructure type, int fieldIndex, WasmSignedType signedType) -
structSet
-
arrayNewDefault
-
arrayNewFixed
-
arrayGet
-
arrayGet
-
arraySet
-
arrayLength
-
arrayCopy
-
funcRef
-
i31Ref
-
i31Get
-
add
-
append
-
isTerminating
public boolean isTerminating() -
transferFrom
-
transferFrom
-
negate
-