Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expand "a.js" export check in binaryen.js to also work when running on ↵ | juj | 2016-10-13 | 1 | -1/+2 |
| | | | | Windows. (#767) | ||||
* | handle memory growth with native wasm support: the result of grow_memory ↵ | Alon Zakai | 2016-10-11 | 1 | -2/+12 |
| | | | | tells us if it succeeded, and then the new buffer can be found on the Memory object | ||||
* | wasmTableSize of 0 is allowed | Alon Zakai | 2016-10-11 | 1 | -1/+2 |
| | |||||
* | refactor memoryBase and tableBase init to a shared location, so it affects ↵ | Alon Zakai | 2016-10-11 | 1 | -7/+7 |
| | | | | native builds too | ||||
* | use wasmTableSize when provided | Alon Zakai | 2016-10-11 | 1 | -1/+1 |
| | |||||
* | use 0xc Memory and Table in JS glue (#752) | Alon Zakai | 2016-10-07 | 1 | -5/+18 |
| | |||||
* | Use new WebAssembly API (#724) | Alon Zakai | 2016-10-03 | 1 | -2/+2 |
| | | | | | | * use new WebAssembly.Instance/Module API * detect presence of wasm with WebAssembly object | ||||
* | import memoryBase and tableBase | Alon Zakai | 2016-09-07 | 1 | -2/+5 |
| | |||||
* | import table | Alon Zakai | 2016-09-07 | 1 | -1/+4 |
| | |||||
* | import memory #684 | Alon Zakai | 2016-09-07 | 1 | -1/+6 |
| | |||||
* | refactor reallocBuffer assignment location, it is not technically part of ↵ | Alon Zakai | 2016-09-07 | 1 | -6/+8 |
| | | | | mergeMemory | ||||
* | add asm2wasm option to import a mem init file | Alon Zakai | 2016-09-07 | 1 | -2/+9 |
| | | | | | | | | apply memory segments only if there isn't a memory initializer (which we need for asmjs and asm2wasm modes) use wasm-opt to check recreated wasts for validity, as wasm-shell would try to execute them add testing for combined modes like asmjs,interpret-binary | ||||
* | use globals in asm2wasm | Alon Zakai | 2016-09-07 | 1 | -28/+0 |
| | |||||
* | Improvements to build-js.sh and JS API (#679) | Rasmus | 2016-09-02 | 4 | -1/+98 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds command-line argument to build-js.sh for specifying the location of Emscripten. Also spreads out program arguments on separate lines * Exposes WasmBinaryWriter and BufferWithRandomAccess in the JS API to allow writing WASM modules and access the produced bytes via the JS API * Updates bin/binaryen.js and bin/wasm.js from changes to build-js.sh * Adds exclude patterns to .gitignore for some files generated by build-js.sh and .DS_Store for macOS * Changes build-js.sh to use EMSCRIPTEN env var instead of a command-line argument to provide the path to emscripten * Improvements to JS builds - Adds -g flag to build-js.sh that will build unoptimized and unmangled versions of binaryen.js and wasm.js (output has a "-g.js" suffix to allow co-existence with regular optimized builds). - Enables closure compiler for non-debug builds - Adds browser test for s-expression parser + WASM code gen (requires wasm to be enabled in the browser.) - Adds iterator interface to BufferWithRandomAccess (when Symbol.iterator is available) - Adds toArrayBuffer to BufferWithRandomAccess (when TypedArray is available) - Adds compileWast(sourceText :string) :ArrayBuffer to the module, parsing & compiling s-expression code to a WASM module - Changes the way binaryen.js is exported to allow usage in CommonJS, AMD and UMD envionments. * Expose "Binaryen" global in a better way to work with a.js generated by check.py * Fix to binaryen.js to only export a global variable when running the test (a.js) while inside a module (avoids polluting global in e.g. nodejs). Also fixes a spelling mistake. * Better "no WASM detected" message in test/binaryen.js/browser.html * Small change to error message in build-js.sh where $EMSCRIPTEN does not point to a directory * Changes emcc args in build-js.sh after investingating a large number of argument combinations. Also adds a browser benchmark. The result of emcc arguments and the effect on performance is summarized in this doc: https://gist.github.com/rsms/e33c61a25a31c08260161a087be03169 * Enable inferring emscripten path by looking in PATH when EMSCRIPTEN is not set in env | ||||
* | emit safe calls for i32 div/rem when in precise mode in asm2wasm, as they ↵ | Alon Zakai | 2016-07-14 | 1 | -0/+12 |
| | | | | can trap (#637) | ||||
* | make wasm.js safe in closure compiler (#438) | Alon Zakai | 2016-05-05 | 1 | -1/+1 |
| | |||||
* | fall back from wasm compilation errors, and add logging | Alon Zakai | 2016-04-28 | 1 | -3/+12 |
| | |||||
* | refactor js/wasm glue to defer the wasm/wasm-polyfill/asmjs-fallback as late ↵ | Alon Zakai | 2016-04-28 | 1 | -96/+100 |
| | | | | as possible. this lets us recover from wasm compilation failures and still do a fallback method | ||||
* | Use Module instead of AllocatingModule in binaryen.js tests (#391) | Jan Wolski | 2016-04-25 | 1 | -0/+1 |
| | | | | | | * Use Module instead of AllocatingModule in binaryen.js tests * include compiled binaryen.js, too | ||||
* | Removes wasm-s-parser debug logging from binaryen.idl. (#373) | Yury Delendik | 2016-04-21 | 1 | -1/+1 |
| | | | | | | | Continuation of #345 (see https://github.com/WebAssembly/binaryen/commit/2887883029de293458344a5d564039074d93246e#diff-499c4e70c8aadb9837261ebcc4725f78R262) Currently building of binaryen.js fails with "src/../glue.cpp:102:14: error: no matching constructor for initialization of 'wasm::SExpressionWasmBuilder'" | ||||
* | remove the AllocatingModule class, and just make Module have allocations. ↵ | Alon Zakai | 2016-04-18 | 1 | -7/+1 |
| | | | | the distinction is not really that useful, and passes do need to allocate, so we would need to pass around AllocatingModules all around anyhow. (#361) | ||||
* | more idl additions fix idl test | Alon Zakai | 2016-04-04 | 1 | -0/+3 |
| | |||||
* | more idl | Alon Zakai | 2016-04-04 | 1 | -0/+16 |
| | |||||
* | add necessary idl constructors | Alon Zakai | 2016-04-04 | 1 | -0/+4 |
| | |||||
* | add simpler constructor for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 1 | -0/+51 |
| | |||||
* | fix reallocBuffer to send growWasmMemory a size in pages | Alon Zakai | 2016-04-01 | 1 | -1/+4 |
| | |||||
* | if Module.asm is already set, use that | Alon Zakai | 2016-03-24 | 1 | -1/+4 |
| | |||||
* | note when we are using wasm | Alon Zakai | 2016-03-23 | 1 | -0/+2 |
| | |||||
* | quote strings for closure compiler | Alon Zakai | 2016-03-23 | 1 | -4/+4 |
| | |||||
* | fix memory growth #270 | Alon Zakai | 2016-03-22 | 1 | -10/+9 |
| | |||||
* | improve method names | Alon Zakai | 2016-03-18 | 1 | -15/+15 |
| | |||||
* | finish wasm-binary method and update emscripten | Alon Zakai | 2016-03-12 | 1 | -3/+8 |
| | |||||
* | refactor wasm.js and prepare for loading and interpreting binaries | Alon Zakai | 2016-03-12 | 1 | -22/+37 |
| | |||||
* | log failures in wasm/js integration | Alon Zakai | 2016-03-11 | 1 | -4/+16 |
| | |||||
* | check for WasmJS in polyfill glue | Alon Zakai | 2016-03-11 | 1 | -0/+2 |
| | |||||
* | support a comma-separated list of methods in wasm/js integration | Alon Zakai | 2016-03-11 | 1 | -49/+83 |
| | |||||
* | fix imports when arriving from wasm backend, which does not prefix | Alon Zakai | 2016-03-09 | 1 | -0/+17 |
| | |||||
* | use .exports | Alon Zakai | 2016-03-09 | 1 | -2/+2 |
| | |||||
* | move to a cleaner way of emcc.py integrating with wasm.js-post.js | Alon Zakai | 2016-03-08 | 1 | -5/+9 |
| | |||||
* | assume wasm binaries were preloaded on the web, where we lack sync binary reads | Alon Zakai | 2016-03-06 | 1 | -1/+8 |
| | |||||
* | warn when we should grow wasm memory in mergeMemory | Alon Zakai | 2016-03-05 | 1 | -1/+3 |
| | |||||
* | fix global.Math imports | Alon Zakai | 2016-03-05 | 1 | -1/+1 |
| | |||||
* | place NaN and Infinity on global | Alon Zakai | 2016-03-04 | 1 | -1/+5 |
| | |||||
* | send a typed array to instantiateMemory | Alon Zakai | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | move WasmTypes in integrateWasmJS to the right place | Alon Zakai | 2016-03-04 | 1 | -8/+8 |
| | |||||
* | pass buffer to instantiateModule | Alon Zakai | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | WASM => Wasm | Alon Zakai | 2016-03-04 | 1 | -8/+2 |
| | |||||
* | use lookupImport directly | Alon Zakai | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | move to more unification of import handling in interpreter and native paths | Alon Zakai | 2016-03-04 | 1 | -38/+28 |
| | |||||
* | support memory segments in wasm modules, which we get if the wasm backend ↵ | Alon Zakai | 2016-03-04 | 1 | -2/+4 |
| | | | | was used |