Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | --no-js-ffi opt to disable JS FFI mangling. (#984) | Joel Martin | 2017-05-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Always use scripts.test.shared for bin paths. Update scripts/test/shared.py to add WASM_MERGE relative to build directory. Update auto_update_tests.py to use scripts.test.shared variables for all bin paths. Update check.py to use scripts.test.shared for wasm-merge path (this was missing). This allows check.py and auto_update_tests.py to be run from the source directory using built binaries in a different location. * --no-legalize-javascript-ffi disables JS FFI mangling. For JS/Web platform, calls to JS imports are wrapped to convert i64 to i32 and f32 to f64. Likewise calls from JS into exports do the inverse wrapping. This change provides an option to disable that wrapping and use the original types for the call. Includes tests test/noffi_f32.asm.js and test/noffi_i64.asm.js to make sure neither f32->f64 nor i64->i32 type mangling is happening when --no-legalize-javascript-ffi is specified. To fully disable JS FFI mangling when using emscripten, the fastcomp FFI mangling must also be disabled using the -emscripten-legalize-javascript-ffi=0 flag. | ||||
* | New binaryen.js (#922) | Alon Zakai | 2017-03-24 | 1 | -2/+5 |
| | | | New binaryen.js implementation, based on the C API underneath and with a JS-friendly API on top. See docs under docs/ for API details. | ||||
* | Wasm h to cpp (#926) | jgravelle-google | 2017-03-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | * Move WasmType function implementations to wasm.cpp * Move Literal methods to wasm.cpp * Reorder wasm.cpp shared constants back to top * Move expression functions to wasm.cpp * Finish moving things to wasm.cpp * Split out Literal into its own .h/.cpp. Also factor out common wasm-type module * Remove unneeded/transitive includes from wasm.h * Add comment to try/check methods * Rename tryX/checkX methods to getXOrNull * Add missing include that should fix appveyor build breakage * More appveyor | ||||
* | asm2wasm debuginfo (#895) | Alon Zakai | 2017-02-07 | 1 | -1/+2 |
| | | | | | | | | | | | | * parse file/line comments in asm.js into debug intrinsics * convert debug intrinsics into annotations, and print them * ignore --debuginfo if not emitting text, as wasm binaries don't support that yet * emit full debug info when -g and emitting text; when -g and emitting binary, all we can do is the Names section * update wasm.js | ||||
* | handle imports in tables in interpreter | Alon Zakai | 2016-12-07 | 1 | -3/+12 |
| | |||||
* | update wasm-js.cpp code for asm2wasm constructor change (#793) | Alon Zakai | 2016-10-20 | 1 | -1/+1 |
| | |||||
* | Add support for i64.store[N] (#789) | jgravelle-google | 2016-10-19 | 1 | -4/+4 |
| | | | | | | | | | | | | * Add support for i64.store[N] Previously storing i64 in the interpreter assumed an 8byte store. Stores like i64.store8 would then use the special-case i64 storing code, when they could just use the i32.store8 code. * Add printf test for interpreter * Update wasm.js | ||||
* | Refactor Import::Kind and Export::Kind into an ExternalKind enum class (#725) | Alon Zakai | 2016-10-03 | 1 | -4/+4 |
| | |||||
* | asm2wasm i64 support (#723) | Alon Zakai | 2016-09-30 | 1 | -1/+1 |
| | | | | | | | | | | | | * support i64 intrinsics from fastcomp, adding --wasm-only flag * refactor callImport logic in asm2wasm to avoid recomputing wasm types again * legalize illegal i64 params in exports and imports * do safe i64 binary ops depending on precision * fix addVar, only assert on names if we are using a name | ||||
* | import table | Alon Zakai | 2016-09-07 | 1 | -16/+35 |
| | |||||
* | import memory #684 | Alon Zakai | 2016-09-07 | 1 | -5/+24 |
| | |||||
* | use globals in asm2wasm | Alon Zakai | 2016-09-07 | 1 | -20/+22 |
| | |||||
* | call_indirect is now structural, so no need to pass the type name around | Alon Zakai | 2016-09-07 | 1 | -3/+2 |
| | |||||
* | add drop and tee expressions | Alon Zakai | 2016-09-07 | 1 | -2/+2 |
| | |||||
* | offset support in table | Alon Zakai | 2016-08-15 | 1 | -8/+60 |
| | |||||
* | support expressions in segment offsets | Alon Zakai | 2016-08-12 | 1 | -1/+1 |
| | |||||
* | update wasm.js, and stop optimizing in asm2wasm in wasm.js | Alon Zakai | 2016-06-29 | 1 | -6/+3 |
| | |||||
* | store locals in a vector in the interpreter and update wasm.js. also fix ↵ | Alon Zakai | 2016-05-18 | 1 | -4/+6 |
| | | | | address usage in wasm.js | ||||
* | Fixes wasm-js build after Address and SExpressionWasmBuilder refactoring. (#514) | Yury Delendik | 2016-05-17 | 1 | -14/+11 |
| | |||||
* | Fix the maximum memory size to be valid. (#492) | Dan Gohman | 2016-05-13 | 1 | -2/+2 |
| | |||||
* | Be more careful when loading i64 in wasm-js glue, we had a bug where the ↵ | Alon Zakai | 2016-05-08 | 1 | -10/+13 |
| | | | | bits were trampled before we read them (#460) | ||||
* | Fix zero-extension in i64.load32_u. | Dan Gohman | 2016-04-27 | 1 | -4/+4 |
| | |||||
* | update wasm.js | Alon Zakai | 2016-04-18 | 1 | -2/+2 |
| | |||||
* | remove the AllocatingModule class, and just make Module have allocations. ↵ | Alon Zakai | 2016-04-18 | 1 | -4/+4 |
| | | | | 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) | ||||
* | add debug param for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 1 | -1/+1 |
| | |||||
* | add apis for accessing module elements | Alon Zakai | 2016-04-04 | 1 | -9/+6 |
| | |||||
* | handle unaligned i64 loads in wasm-js.cpp | Alon Zakai | 2016-04-04 | 1 | -1/+15 |
| | |||||
* | verify imports are valid in wasm.js, do not wait to abort if/when they are ↵ | Alon Zakai | 2016-04-01 | 1 | -0/+12 |
| | | | | called | ||||
* | fix wasm.js loads of aligned i64s | Alon Zakai | 2016-03-30 | 1 | -0/+4 |
| | |||||
* | fix wasm.js loads of i64 that read <8 bytes | Alon Zakai | 2016-03-30 | 1 | -8/+9 |
| | |||||
* | add function stack printing in interpreter | Alon Zakai | 2016-03-23 | 1 | -0/+12 |
| | |||||
* | update wasm.js | Alon Zakai | 2016-03-21 | 1 | -1/+1 |
| | |||||
* | finish wasm-binary method and update emscripten | Alon Zakai | 2016-03-12 | 1 | -2/+2 |
| | |||||
* | refactor wasm.js and prepare for loading and interpreting binaries | Alon Zakai | 2016-03-12 | 1 | -9/+32 |
| | |||||
* | Make initial and max memory sizes be in pages instead of bytes | Derek Schuff | 2016-03-09 | 1 | -3/+13 |
| | | | | | | | The AST and everything that uses it treats the values as pages. Javascript continues to use bytes. This matches v8 and sexpr-wasm, and the consensus from live discussion and PR209 in the spec. | ||||
* | remove optimization for interpreter memory generation, make it always return ↵ | Alon Zakai | 2016-03-04 | 1 | -12/+9 |
| | | | | a memory like in the native code path | ||||
* | fix unaligned wasm.js load/store | Alon Zakai | 2016-02-19 | 1 | -2/+3 |
| | |||||
* | handle aligned and unaligned int64 store in wasm.js | Alon Zakai | 2016-02-19 | 1 | -14/+20 |
| | |||||
* | make wasm.js tolerate wrong alignments, as per the wasm spec | Alon Zakai | 2016-02-19 | 1 | -4/+3 |
| | |||||
* | support 64-bit stores in wasm.js | Alon Zakai | 2016-02-19 | 1 | -0/+5 |
| | |||||
* | add unaligned memory accesses to wasm.js | Alon Zakai | 2016-02-19 | 1 | -3/+64 |
| | |||||
* | update wasm.js | Alon Zakai | 2016-02-08 | 1 | -3/+3 |
| | |||||
* | relax wasm.js assertions on alignment, and update wasm.js build | Alon Zakai | 2016-02-01 | 1 | -2/+2 |
| | |||||
* | refactor FunctionType to always be accessed from the Module's central store, ↵ | Alon Zakai | 2016-01-11 | 1 | -1/+1 |
| | | | | which is necessary for simple binary writing | ||||
* | asm2wasm: use support's command-line | JF Bastien | 2016-01-11 | 1 | -1/+1 |
| | |||||
* | refactor memory merging code | Alon Zakai | 2015-12-23 | 1 | -0/+17 |
| | |||||
* | Fix the license headers | JF Bastien | 2015-12-21 | 1 | -1/+15 |
| | | | | This applies Apache 2.0 properly (as far as our lawyers have told me). We can do this early since all of the code was written by Alon Zakai. | ||||
* | handle memory in load_s_expr2wasm | Alon Zakai | 2015-11-29 | 1 | -0/+5 |
| | |||||
* | fix wasm.js/s-expression-parsing global mapping | Alon Zakai | 2015-11-28 | 1 | -19/+1 |
| | |||||
* | optionally emit mappedGlobals in asm2wasm, and use that to help when parsing ↵ | Alon Zakai | 2015-11-28 | 1 | -18/+36 |
| | | | | s-expressions |