Class WasmOptions
java.lang.Object
de.inetsoftware.jwebassembly.module.WasmOptions
The option/properties for the behavior of the compiler.
- Author:
- Volker Berlin
-
Field Summary
FieldsModifier and TypeFieldDescriptionNonGC function for ref_eq polyfill.final StringManagerfinal TypeManager -
Constructor Summary
ConstructorsConstructorDescriptionWasmOptions(HashMap<String, String> properties) Create a new instance of options -
Method Summary
Modifier and TypeMethodDescriptionbooleanProperty for adding debug names to the output if true.Get the relative path between the final wasm file location and the source files location.booleanuseEH()If the exception handling feature of WASM should be use or an unreachable instruction.booleanuseGC()If the GC feature of WASM should be use or the GC of the JavaScript host.
-
Field Details
-
types
-
strings
-
ref_eq
NonGC function for ref_eq polyfill.
-
-
Constructor Details
-
WasmOptions
-
-
Method Details
-
debugNames
public boolean debugNames()Property for adding debug names to the output if true.- Returns:
- true, add debug information
-
useGC
public boolean useGC()If the GC feature of WASM should be use or the GC of the JavaScript host.- Returns:
- true, use the GC instructions of WASM.
-
useEH
public boolean useEH()If the exception handling feature of WASM should be use or an unreachable instruction.- Returns:
- true, use the EH instructions of WASM; false, generate an unreachable instruction
-
getSourceMapBase
-