Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix typo [ci skip] | Alon Zakai (kripken) | 2018-04-11 | 1 | -1/+1 | |
| | ||||||
* | Rename WasmType => Type (#1398) | Alon Zakai | 2018-02-02 | 1 | -9/+9 | |
| | | | | * rename WasmType to Type. it's in the wasm:: namespace anyhow, and without Wasm- it fits in better alongside Index, Address, Expression, Module, etc. | |||||
* | support i*.extend* instructions in interpreter (#1322) | Alon Zakai | 2017-12-06 | 1 | -13/+18 | |
| | | | * also fixes optimizing them in Precompute | |||||
* | Atomics support in interpreter + optimizer + fuzz fixes for that (#1227) | Alon Zakai | 2017-10-20 | 1 | -14/+150 | |
| | ||||||
* | remove unneeded code in interpreter | Alon Zakai (kripken) | 2017-06-01 | 1 | -1/+0 | |
| | ||||||
* | fix call depth detection in wasm-opt interpreting | Alon Zakai (kripken) | 2017-06-01 | 1 | -1/+1 | |
| | ||||||
* | Parsing fixes (#990) | Alon Zakai | 2017-05-02 | 1 | -13/+13 | |
| | | | | | | | | | | * properly catch a bunch of possible parse errors, found by afl-fuzz * clean up wasm-interpreter, use WASM_UNREACHABLE instead of abort * detect duplicate names in function names section * detect duplicate export names | |||||
* | ctor evaller (#982) | Alon Zakai | 2017-04-28 | 1 | -25/+111 | |
| | | | | | Add wasm-ctor-eval, which evaluates functions at compile time - typically static constructor functions - and applies their effects into memory, saving work at startup. If we encounter something we can't evaluate at compile time in our interpreter, stop there. This is similar to ctor_evaller.py in emscripten (which was for asm.js). | |||||
* | Wasm h to cpp (#926) | jgravelle-google | 2017-03-10 | 1 | -2/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | * 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 | |||||
* | Minor improvements to the wasm-interpreter debug messages (#784) | jgravelle-google | 2016-10-18 | 1 | -8/+43 | |
| | | | | | | | | | | | * Minor improvements to the wasm-interpreter debug messages 1. Indent nested blocks for more readable structure (with numeric labels to make it even clearer) 2. Print the names of the variables used for NOTE_EVALs 3. Print the values of arguments when entering a function call * Move Indenter class to wasm-interpreter.cpp | |||||
* | refactor wasm.h to remove numericIndex hacks, and move indexing to the parsers | Alon Zakai | 2016-09-21 | 1 | -6/+6 | |
| | ||||||
* | support spectest.global | Alon Zakai | 2016-09-20 | 1 | -1/+5 | |
| | ||||||
* | support module operations in shell tests | Alon Zakai | 2016-09-17 | 1 | -0/+11 | |
| | ||||||
* | br_if returns its value | Alon Zakai | 2016-09-16 | 1 | -3/+4 | |
| | ||||||
* | use globals in asm2wasm | Alon Zakai | 2016-09-07 | 1 | -4/+14 | |
| | ||||||
* | get_global and set_global use a Name instead of an Index, to be more ↵ | Alon Zakai | 2016-09-07 | 1 | -10/+10 | |
| | | | | consistent with refering to other global objects; e.g. this avoids ordering issues with imported vs non-imported globals | |||||
* | grow_memory no longer traps | Alon Zakai | 2016-09-07 | 1 | -3/+4 | |
| | ||||||
* | interpreter debug and asserts fixing | Alon Zakai | 2016-09-07 | 1 | -29/+5 | |
| | ||||||
* | SetGlobal should not return a value | Alon Zakai | 2016-09-07 | 1 | -1/+1 | |
| | ||||||
* | call_indirect is now structural, so no need to pass the type name around | Alon Zakai | 2016-09-07 | 1 | -2/+2 | |
| | ||||||
* | loops no longer have an out label and other upstream loop updates | Alon Zakai | 2016-09-07 | 1 | -2/+1 | |
| | ||||||
* | call_indirect now has the target at the end | Alon Zakai | 2016-09-07 | 1 | -2/+2 | |
| | ||||||
* | add drop and tee expressions | Alon Zakai | 2016-09-07 | 1 | -3/+9 | |
| | ||||||
* | Merge pull request #668 from WebAssembly/tables_n_memories | Alon Zakai | 2016-08-16 | 1 | -17/+10 | |
|\ | | | | | Tables and memories | |||||
| * | offset support in table | Alon Zakai | 2016-08-15 | 1 | -14/+7 | |
| | | ||||||
| * | support expressions in segment offsets | Alon Zakai | 2016-08-12 | 1 | -3/+3 | |
| | | ||||||
* | | interpreter debugging fixes (#672) | Alon Zakai | 2016-08-15 | 1 | -11/+13 | |
|/ | ||||||
* | in DemoteFloat64, if the truncated value is exactly at the limit, return it ↵ | Alon Zakai | 2016-08-08 | 1 | -0/+6 | |
| | | | | | (#665) and update spec tests | |||||
* | support wasm globals (#650) | Alon Zakai | 2016-07-21 | 1 | -0/+42 | |
| | ||||||
* | fix wasm interpreter bug on checking indirect call params | Alon Zakai | 2016-06-29 | 1 | -2/+4 | |
| | ||||||
* | Merge pull request #590 from WebAssembly/precompute | Alon Zakai | 2016-06-18 | 1 | -413/+429 | |
|\ | | | | | Precompute expressions at compile time when possible | |||||
| * | add a precompute pass | Alon Zakai | 2016-06-18 | 1 | -37/+1 | |
| | | ||||||
| * | refactor interpreter code to provide expression executors for both ↵ | Alon Zakai | 2016-06-18 | 1 | -411/+463 | |
| | | | | | | | | standalone and full funtime execution | |||||
* | | fix interpreter on indirect calls, do arguments before checking and doing ↵ | Alon Zakai | 2016-06-17 | 1 | -3/+3 | |
|/ | | | | the call (they might flow) | |||||
* | make call_indirect type a name, so that it is not a dependency on the ↵ | Alon Zakai | 2016-06-03 | 1 | -1/+1 | |
| | | | | module, which would break consistency and make some parallel passes tricky (#568) | |||||
* | trap on invalid call_indirects with bad arguments when no type provided | Alon Zakai | 2016-06-03 | 1 | -0/+4 | |
| | ||||||
* | handle stack frames we skip over by jumping up the stack, and update wasm.js | Alon Zakai | 2016-06-01 | 1 | -16/+25 | |
| | ||||||
* | store locals in a vector in the interpreter and update wasm.js. also fix ↵ | Alon Zakai | 2016-05-18 | 1 | -10/+11 | |
| | | | | address usage in wasm.js | |||||
* | use separate internal opcodes for binary variants | Alon Zakai | 2016-05-18 | 1 | -63/+63 | |
| | ||||||
* | use separate internal opcodes for unary variants | Alon Zakai | 2016-05-18 | 1 | -22/+22 | |
| | ||||||
* | Introduce a separate type for linear memory addresses (#477) | Derek Schuff | 2016-05-11 | 1 | -6/+6 | |
| | | | | | | | We've been using size_t (and other things) for addresses, which is generally wrong because it depends on the host, when it should in fact depend on the target. This is a partial fix for #278 (i.e. it's the right fix, I don't think it's applied quite everywhere yet). | |||||
* | Harmonize the internal opcodes with the binary format (#433) | Alon Zakai | 2016-05-03 | 1 | -12/+20 | |
| | | | | | | * harmonize the internal opcodes with the binary format, so they clearly parallel, and also this helps us avoid needing the type to disambiguate * comment on GetLocal in C API | |||||
* | f32.demote/f64 fix UB (#423) | JF Bastien | 2016-05-02 | 1 | -1/+8 | |
| | | | Another fix for #404. | |||||
* | Fix {i32,i64}.trunc_{s,u}/{f32,f64} in interpreter (#421) | Ben Smith | 2016-05-02 | 1 | -8/+22 | |
| | | | | Check the binary representation of the float instead of converting it to a float first. | |||||
* | grow_memory now returns in units of page size | Alon Zakai | 2016-04-18 | 1 | -1/+1 | |
| | ||||||
* | current_memory now returns in units of page size | Alon Zakai | 2016-04-18 | 1 | -1/+1 | |
| | ||||||
* | update MemorySize => CurrentMemory | Alon Zakai | 2016-04-18 | 1 | -1/+1 | |
| | ||||||
* | fix br_table order of evaluation, the value is first | Alon Zakai | 2016-04-18 | 1 | -9/+8 | |
| | ||||||
* | index locals, so that get_local and set_local have just an index, and local ↵ | Alon Zakai | 2016-04-18 | 1 | -13/+16 | |
| | | | | names are kept on the Function object (#354) | |||||
* | rename function locals, to params and vars, which together are all the ↵ | Alon Zakai | 2016-04-14 | 1 | -1/+1 | |
| | | | | locals. preparation for #336 (#349) |