Class WasmGCGenerationUtil
java.lang.Object
org.teavm.backend.wasm.generate.gc.methods.WasmGCGenerationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocateArray(ValueType itemType, Function<WasmArray, WasmExpression> data) allocateArrayWithElements(ValueType itemType, Supplier<List<? extends WasmExpression>> data) static WasmExpressionstatic WasmExpressiongetOrIfNull(WasmType type, WasmExpression base, Function<WasmExpression, WasmExpression> extractor, WasmExpression defaultValue)
-
Constructor Details
-
WasmGCGenerationUtil
-
-
Method Details
-
allocateArrayWithElements
public WasmExpression allocateArrayWithElements(ValueType itemType, Supplier<List<? extends WasmExpression>> data) -
allocateArray
-
getOrIfNull
public static WasmExpression getOrIfNull(WasmType type, WasmExpression base, Function<WasmExpression, WasmExpression> extractor, WasmExpression defaultValue) -
getArrayLengthOfNullable
-