From 70a61e1b1fc2f85c81201b6a1e7d2e71e36dcee3 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 4 Apr 2016 16:45:11 -0700 Subject: add simpler constructor for SExpressionWasmBuilder --- src/js/binaryen.idl | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/js/binaryen.idl (limited to 'src/js/binaryen.idl') diff --git a/src/js/binaryen.idl b/src/js/binaryen.idl new file mode 100644 index 000000000..2297cfd5f --- /dev/null +++ b/src/js/binaryen.idl @@ -0,0 +1,51 @@ + +interface Literal { + void Literal(double x); +}; + +interface Name { + void Name(DOMString x); +}; + +interface Module { +}; + +interface AllocatingModule { +}; + +AllocatingModule implements Module; + +[Prefix="ModuleInstance::", NoDelete] +interface ExternalInterface { +}; + +interface ShellExternalInterface { +}; + +ShellExternalInterface implements ExternalInterface; + +interface ModuleInstance { + void ModuleInstance([Ref] Module m, ExternalInterface i); + + [Value] Literal callExport([Ref] Name name, [Ref] LiteralList arguments); +}; + +[Prefix="ModuleInstance::"] +interface LiteralList { + void push_back([Ref] Literal l); +}; + +// S-Expressions + +interface Element { +}; + +interface SExpressionParser { + void SExpressionParser(DOMString input); + attribute Element root; +}; + +interface SExpressionWasmBuilder { + void SExpressionWasmBuilder([Ref] AllocatingModule wasm, [Ref] Element input, boolean debug); +}; + -- cgit v1.2.3