summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* add a pass to remove memory segments (#580)Alon Zakai2016-06-082-0/+35
|
* fix if type; if one is none and the other is concrete, still none (#575)Alon Zakai2016-06-061-1/+9
|
* handle breaks to the function's implicit block scope (#573)Alon Zakai2016-06-061-7/+23
|
* Fixed missing type assignment of host operations in s2wasm (#572)Alexander Meißner2016-06-061-0/+1
|
* if we start to parse an s-string and find it empty, that is invalid #570 (#571)Alon Zakai2016-06-041-0/+1
|
* make call_indirect type a name, so that it is not a dependency on the ↵Alon Zakai2016-06-0311-25/+25
| | | | module, which would break consistency and make some parallel passes tricky (#568)
* Do not generate duplicate import thunks at link time. (#569)Derek Schuff2016-06-032-4/+6
| | | | | Previously every address-take of an import would cause a new thunk to be generated. Now check in getImportThunk if the thunk exists already and just return it if so.
* move function parallelism to pass and pass runner, which allows more ↵Alon Zakai2016-06-0317-139/+145
| | | | efficient parallel execution (#564)
* check function types in s-parsingAlon Zakai2016-06-031-1/+2
|
* trap on invalid call_indirects with bad arguments when no type providedAlon Zakai2016-06-031-0/+4
|
* improve some parsing error textsAlon Zakai2016-06-032-2/+2
|
* check locals in s-parserAlon Zakai2016-06-031-2/+8
|
* check calls more carefully in validatorAlon Zakai2016-06-031-6/+9
|
* add nm pass, that prints function names and sizes (#562)Alon Zakai2016-06-033-3/+42
|
* Fix leak of FunctionType from parseFuncType when not already in the module ↵Derek Schuff2016-06-031-2/+8
| | | | | (#563) Pass ownership into the wasm module.
* add OptimizingIncrementalModuleBuilder for faster incremental module ↵Alon Zakai2016-06-023-22/+286
| | | | building + optimizing
* refactor a getNumCores methodAlon Zakai2016-06-022-5/+12
|
* add an option to run passes on individual functions, and to get default ↵Alon Zakai2016-06-023-2/+50
| | | | optimization passes suitable for that, or not. refactor visitFunction/Module for this.
* Generate thunks for address-taken imports (#554)Derek Schuff2016-06-027-22/+95
| | | | | | | | | | | Under emscripten, C code can take the address of a function implemented in Javascript (which is exposed via an import in wasm). Because imports do not have linear memory address in wasm, we need to generate a thunk to be the target of the indirect call; it call the import directly. This is facilited by a new .s directive (.functype) which declares the types of functions which are declared but not defined. Fixes https://github.com/WebAssembly/binaryen/issues/392
* Merge pull request #555 from WebAssembly/spec-test-fixesAlon Zakai2016-06-012-3/+3
|\ | | | | Spec test fixes
| * invalid break labels are parse errorsAlon Zakai2016-06-011-3/+2
| |
| * note default in type checking of switchesAlon Zakai2016-06-011-0/+1
| |
* | if we use the zero-init value of a local, we cannot coalesce it with a param ↵Alon Zakai2016-06-011-4/+10
| | | | | | | | (#556)
* | Merge pull request #552 from WebAssembly/dup-asm2wasm-exportsAlon Zakai2016-06-012-20/+36
|\ \ | |/ |/| asm2wasm regression fixes
| * handle stack frames we skip over by jumping up the stack, and update wasm.jsAlon Zakai2016-06-011-16/+25
| |
| * handle duplicate exports in asm2wasmAlon Zakai2016-05-311-4/+11
| |
* | fix bugs found using afl (#546)Dominic Chen2016-05-312-4/+12
|/
* refactor walk logic into walk* and doWalk* methods, for a more regular API ↵Alon Zakai2016-05-309-30/+41
| | | | that is clearer where it should be overridden (#551)
* add a pass that eliminates duplicate functionsAlon Zakai2016-05-283-0/+182
|
* add hash utility, and support for hashing and comparing expressionsAlon Zakai2016-05-282-0/+417
|
* canonicalize the order in reorder-locals, by using first-appearance to break ↵Alon Zakai2016-05-281-5/+14
| | | | ties
* note number of functions in metricsAlon Zakai2016-05-281-0/+4
|
* add getBits and not-equals helper funcs for LiteralAlon Zakai2016-05-281-0/+12
|
* update functions map in RemoveUnusedFunctions (#545)Alon Zakai2016-05-262-0/+9
|
* Allows parsing of debug information in .S filesYury Delendik2016-05-262-12/+90
| | | | Currently it ignores this information. Also it allows parse files with -asm-verbose=true.
* Merge pull request #543 from WebAssembly/fix-merge-blocksAlon Zakai2016-05-251-1/+1
|\ | | | | Fix merge blocks on named blocks
| * fix a merge-blocks bug where we merged named blocksAlon Zakai2016-05-251-1/+1
| |
* | Add remove unused functions pass. (#463)Michael Bebenita2016-05-253-0/+87
|/
* move blocks outside in merge-blocks so that they can be merged laterAlon Zakai2016-05-241-0/+124
|
* show a parse error for empty stackAlon Zakai2016-05-241-1/+1
|
* catch parse exceptions in s-parsing tooAlon Zakai2016-05-241-38/+39
|
* add a pass to drop return values in set_local and store (#539)Alon Zakai2016-05-232-0/+80
|
* fix isResultUsed bug with ifsAlon Zakai2016-05-231-1/+1
|
* validate after running passes in shellAlon Zakai2016-05-231-0/+1
|
* validate in asm2wasm, and fix some validation errors for thatAlon Zakai2016-05-232-18/+35
|
* Avoid a redundant return in dynCall functions. (#533)Dan Gohman2016-05-231-1/+1
|
* dead code elimination pass (#536)Alon Zakai2016-05-223-0/+353
|
* don't depend on asm.js type detection in binary formation in asm2wasm, use ↵Alon Zakai2016-05-221-5/+4
| | | | the full asm global info we have (#535)
* Update s2wasm for LLVM changes, and regenerate tests. (#532)Dan Gohman2016-05-201-6/+7
|
* type check return types fullyAlon Zakai2016-05-201-1/+7
|