summaryrefslogtreecommitdiff
path: root/src/binaryen-shell.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make initial and max memory sizes be in pages instead of bytesDerek Schuff2016-03-091-2/+2
| | | | | | | 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.
* document that env.exit support is a hack for torture testsAlon Zakai2016-02-221-0/+1
|
* debugging tweaksAlon Zakai2016-02-211-1/+0
|
* Reorder locals.Michael2016-02-191-1/+1
|
* remove --print-before and --print-after flags, since we now have --printAlon Zakai2016-02-171-34/+2
|
* add wasm-printing.hAlon Zakai2016-02-171-0/+1
|
* move printing to a passAlon Zakai2016-02-171-3/+3
|
* refactor binaryen-shell to accept a wast that begins with a module ↵Alon Zakai2016-02-121-47/+61
| | | | invalidity test
* longjmp -> throwJF Bastien2016-02-091-18/+18
| | | | Older tsan doesn't like longjmp. Use throw.
* NFC: improve minSize rationaleJF Bastien2016-02-041-2/+4
| | | | As discussed in https://github.com/WebAssembly/binaryen/pull/167#issuecomment-179496231
* Merge pull request #152 from WebAssembly/float-refactorAlon Zakai2016-02-031-2/+15
|\ | | | | Float refactoring and nan comparison change
| * in assert tests, verify nans are identicalAlon Zakai2016-02-021-2/+15
| |
* | Shell: don't use unaligned memoryJF Bastien2016-02-031-27/+76
|/
* Make Literal's ctors explicitJF Bastien2016-02-021-9/+9
| | | | This tends to avoid silly mistakes, which I'm worried about after adding an explicit ctor with the enum WasmType parameter. See 'C++ Coding Standards: 101 Rules, Guidelines, and Best Practices' rule #40 'avoid providing implicit conversion'.
* Shell: fix --entry parameter numbersJF Bastien2016-02-021-4/+12
| | | | When running the shell with --entry it was assumed that the signature had zero parameters. This isn't true for main, so look at the function's parameter list and construct a zero-initialized arguments vector of the right types. This fixes a few failures, some of which were hiding other failures.
* Use command-line & waterfall for binaryen-shellJF Bastien2016-01-201-92/+52
|
* add assert on wasm segmentsAlon Zakai2016-01-141-0/+1
|
* --entry option in binaryen-shell, which lets you call an entry point. also ↵Alon Zakai2016-01-141-3/+24
| | | | support exit()
* Avoid potential setjmp clobberJF Bastien2016-01-131-65/+77
| | | | | | | -Wextra adds checks for potential clobbers which triggered in binaryen-shell.cpp: might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] The fix moves the setjmp/longjmp using code into another function, and passes in potentially-clobbered values from the parent frame so they can't be clobbered. We could also mark them as volatile but that's a big hammer.
* use simplify-locals by defaultAlon Zakai2016-01-091-0/+1
|
* add -O option to shell that runs default optimization passesAlon Zakai2016-01-081-1/+6
|
* add some s-parser debuggingAlon Zakai2015-12-291-1/+1
|
* Fix warnings found by GCCJF Bastien2015-12-221-1/+2
| | | | | | My previous patch addressed all LLVM warnings, this one addresses all the GCC ones as well (mostly signed / unsigned mix). The patch also turns on -Wall -Werror.
* Fix the license headersJF Bastien2015-12-211-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.
* update spec test interpreter to new spectest module nameAlon Zakai2015-12-011-2/+2
|
* refactor wasm.js so that it will be able to support multiple wasm loading ↵Alon Zakai2015-11-281-0/+4
| | | | methods
* ensure memory is initialized to 0 in native shellAlon Zakai2015-11-271-1/+4
|
* unify convert/compare into unary/binary, and do a pre-pass in s-expression ↵Alon Zakai2015-11-271-2/+3
| | | | parser for function types, to fix new assertions that notice some missing types
* create an AllocatingModule which handles allocation for its elementsAlon Zakai2015-11-241-2/+2
|
* print logging prints to stderrAlon Zakai2015-11-221-3/+3
|
* add printing in module validity testsAlon Zakai2015-11-201-2/+10
|
* annotate trapsAlon Zakai2015-11-171-1/+2
|
* docsAlon Zakai2015-11-131-0/+4
|
* add descriptions to passesAlon Zakai2015-11-131-1/+1
|
* add shell testsAlon Zakai2015-11-131-3/+6
|
* pass supportAlon Zakai2015-11-131-3/+45
|
* improve printingAlon Zakai2015-11-111-2/+4
|
* update env varAlon Zakai2015-11-111-1/+1
|
* argument handling in shellAlon Zakai2015-11-111-0/+279