Search in sources :

Example 6 with WasmModule

use of org.graalvm.wasm.WasmModule in project graal by oracle.

the class WebAssembly method customSections.

private static Object customSections(Object[] args) {
    checkArgumentCount(args, 2);
    WasmModule module = toModule(args);
    return customSections(module, args[1]);
}
Also used : WasmModule(org.graalvm.wasm.WasmModule)

Aggregations

WasmModule (org.graalvm.wasm.WasmModule)6 WebAssembly (org.graalvm.wasm.api.WebAssembly)5 Test (org.junit.Test)5 InteropException (com.oracle.truffle.api.interop.InteropException)2 InvalidArrayIndexException (com.oracle.truffle.api.interop.InvalidArrayIndexException)2 TruffleObject (com.oracle.truffle.api.interop.TruffleObject)2 Dictionary (org.graalvm.wasm.api.Dictionary)2 InteropLibrary (com.oracle.truffle.api.interop.InteropLibrary)1 HashMap (java.util.HashMap)1 WasmInstance (org.graalvm.wasm.WasmInstance)1 ModuleExportDescriptor (org.graalvm.wasm.api.ModuleExportDescriptor)1 ModuleImportDescriptor (org.graalvm.wasm.api.ModuleImportDescriptor)1