summaryrefslogtreecommitdiff
path: root/src/binaryen-shell.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove old globalAllocatorAlon Zakai2016-04-261-4/+0
|
* remove the AllocatingModule class, and just make Module have allocations. ↵Alon Zakai2016-04-181-3/+3
| | | | 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)
* index locals, so that get_local and set_local have just an index, and local ↵Alon Zakai2016-04-181-2/+2
| | | | names are kept on the Function object (#354)
* Add a debug mode to PassRunner, which logs out times (#344)Alon Zakai2016-04-141-0/+1
| | | | | | * add a debug mode to PassRunner, which logs out times * address comments
* remove excessive wasm-s-parser debug logging (#345)Alon Zakai2016-04-141-2/+2
|
* refactor default optimization passes to a central locationAlon Zakai2016-04-111-8/+6
|
* dyn_cast => dynCastAlon Zakai2016-04-111-2/+2
|
* add vacuum passAlon Zakai2016-04-071-1/+2
|
* optimize if-eqzAlon Zakai2016-04-061-0/+1
|
* refactor shell interface into its own fileAlon Zakai2016-04-041-165/+2
|
* clean up old commentsAlon Zakai2016-04-041-2/+0
|
* add apis for accessing module elementsAlon Zakai2016-04-041-1/+1
|
* refactor file flags into enumsAlon Zakai2016-03-311-1/+1
|
* set the binary bit on files we need to open in binary modeAlon Zakai2016-03-311-1/+1
|
* avoid alignof for the sake of vsAlon Zakai2016-03-291-2/+2
|
* Clean up unused variables warnings:Jukka Jylänki2016-03-281-3/+3
| | | | | | src\binaryen-shell.cpp(262): warning C4101: 'x': unreferenced local variable src\binaryen-shell.cpp(290): warning C4101: 'e': unreferenced local variable src\binaryen-shell.cpp(310): warning C4101: 'e': unreferenced local variable
* Cleanup redundant '> 0' check in src\binaryen-shell.cpp(251): warning C4804: ↵Jukka Jylänki2016-03-281-1/+1
| | | | '>': unsafe use of type 'bool' in operation
* Clean up truncating cast warnings:Jukka Jylänki2016-03-281-3/+3
| | | | | | src\binaryen-shell.cpp(181): warning C4244: 'argument': conversion from 'int64_t' to 'int8_t', possible loss of data src\binaryen-shell.cpp(182): warning C4244: 'argument': conversion from 'int64_t' to 'int16_t', possible loss of data src\binaryen-shell.cpp(183): warning C4244: 'argument': conversion from 'int64_t' to 'int32_t', possible loss of data
* 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
|