summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #379 from WebAssembly/zero_x_bAlon Zakai2016-04-221-4/+4
|\ | | | | More 0xb fixes
| * br_table offsets are int32s, not lebsAlon Zakai2016-04-221-4/+4
| |
| * put segments in right orderAlon Zakai2016-04-211-4/+6
| |
* | put segments in right order (#378)Alon Zakai2016-04-211-4/+6
| |
* | Merge pull request #377 from WebAssembly/zero_x_bAlon Zakai2016-04-214-60/+91
|\| | | | | More 0xb work
| * function toplevels is a listAlon Zakai2016-04-211-6/+6
| |
| * block helper utilsAlon Zakai2016-04-211-1/+14
| |
| * ifs in the binary format always have a break scopeAlon Zakai2016-04-211-12/+23
| |
| * fix if and else bodies, which can be listsAlon Zakai2016-04-211-13/+11
| |
| * fix loop binary parsingAlon Zakai2016-04-211-4/+19
| |
| * if condition is popped from before, not pre-order inlineAlon Zakai2016-04-211-3/+3
| |
| * update br_table in binary formatAlon Zakai2016-04-211-13/+8
| |
| * fix nop printing in br_tableAlon Zakai2016-04-211-3/+1
| |
| * fix a reinterpret opcodeAlon Zakai2016-04-211-1/+1
| |
| * update eqz opcodesAlon Zakai2016-04-211-3/+2
| |
| * name unnamed functions in binariesAlon Zakai2016-04-211-1/+1
| |
| * function ending fixesAlon Zakai2016-04-211-16/+15
| |
| * fix file size for binary files readAlon Zakai2016-04-211-1/+1
| |
| * support not exporting memory in binariesAlon Zakai2016-04-211-2/+5
| |
* | Move wasm-linker into its own cpp file (#375)Derek Schuff2016-04-217-344/+431
|/ | | | | | | Still making things nicer for #370 Pulling wasm-linker into its own file also necessitated pulling asm_v_wasm.h into a cpp file. It goes into a new lib directory, src/asmjs. No actual code changes in this PR.
* Removes wasm-s-parser debug logging from binaryen.idl. (#373)Yury Delendik2016-04-211-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'"
* Move Fatal into utilities.h (#376)Derek Schuff2016-04-212-18/+18
| | | | | Follow-on from #372. Probably we should do even better for error handling, and that might mean a cpp file in support, but for now this is a small improvement.
* Factor linker-related functionality of S2WasmBuilder into its own class (#372)Derek Schuff2016-04-214-380/+496
| | | | | This is the first of a couple of refactorings in for #370 No functionality change, and minimal code change to make it work.
* optimize --vacuum a littleAlon Zakai2016-04-201-0/+8
|
* do not crash when printing an expression whose function is not knownAlon Zakai2016-04-201-1/+4
|
* run merge-blocks later, so it can optiize simplify-locals outputAlon Zakai2016-04-201-1/+1
|
* add a utility to check for results being usedAlon Zakai2016-04-201-0/+31
|
* Merge pull request #371 from yurydelendik/initarray-mutilpleYury Delendik2016-04-201-10/+14
|\ | | | | Parses more than one entry in the .init_array section.
| * Parses more than one entry in the .init_array section.Yury Delendik2016-04-201-10/+14
| |
* | disable asm2wasm i64 opts until browsers are readyAlon Zakai2016-04-201-0/+2
| |
* | update binary version to 0xbAlon Zakai2016-04-201-4/+9
|/
* extensible type forms, update for design#640 (#367)Alon Zakai2016-04-191-2/+20
|
* save the module on Walker objects, so passes have an easy way to access the ↵Alon Zakai2016-04-191-0/+13
| | | | module (#366)
* update wasm.jsAlon Zakai2016-04-181-2/+2
|
* grow_memory now returns in units of page sizeAlon Zakai2016-04-181-1/+1
|
* current_memory now returns in units of page sizeAlon Zakai2016-04-181-1/+1
|
* update MemorySize => CurrentMemoryAlon Zakai2016-04-186-15/+11
|
* fix br_table order of evaluation, the value is firstAlon Zakai2016-04-181-9/+8
|
* handle dead stores in SimplifyLocalsAlon Zakai2016-04-181-2/+3
|
* remove old comments in SimplifyLocalsAlon Zakai2016-04-181-2/+1
|
* create a UnifiedExpressionVisitor for passes that want a single visitor ↵Alon Zakai2016-04-1817-52/+79
| | | | function, to avoid confusion with having both visit* and visitExpression in a single pass (#357)
* use a vector for get_local counts in SimplifyLocals (#356)Alon Zakai2016-04-181-1/+2
|
* update binary section names per latest design (#363)Alon Zakai2016-04-181-9/+9
|
* remove the AllocatingModule class, and just make Module have allocations. ↵Alon Zakai2016-04-1814-34/+25
| | | | 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)
* let traversals access the current function (#355)Alon Zakai2016-04-181-7/+22
|
* index locals, so that get_local and set_local have just an index, and local ↵Alon Zakai2016-04-1815-213/+413
| | | | names are kept on the Function object (#354)
* Merge pull request #353 from WebAssembly/thread-tweaksAlon Zakai2016-04-181-1/+4
|\ | | | | Thread fixes
| * fix ThreadPool::size, we don't have any thread objects created if there is ↵Alon Zakai2016-04-181-1/+1
| | | | | | | | just one core, since then we run it all on the main thread anyhow
| * allow limiting # of cores in thread pool, useful for debuggingAlon Zakai2016-04-181-0/+3
| |
* | nicer pass printing (#358)Alon Zakai2016-04-181-2/+19
| |