Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move wasm.cpp and wasm-s-parser into a library (#796) | Derek Schuff | 2016-10-20 | 1 | -1759/+67 |
| | | | | | Also moves the bulk of the code in wasm-s-parser into a cpp file. Allows namespace and #include cleanups, and improves j4 compile time by 20%. Should also make any future parser changes easier and more localized. | ||||
* | Fix some C6246: "Local declaration of 'i' hides declaration of the same name ↵ | juj | 2016-10-20 | 1 | -4/+4 |
| | | | | in outer scope." warnings. (#795) | ||||
* | Don't create a memory section for an imported memory; fixes #772 (#773) | Benjamin Bouvier | 2016-10-13 | 1 | -10/+16 |
| | |||||
* | fix bug where we set memory max to the initial value if the max wasn't ↵ | Alon Zakai | 2016-10-12 | 1 | -2/+0 |
| | | | | specified (#760) | ||||
* | Don't create table sections for imported tables (#756) | Derek Schuff | 2016-10-11 | 1 | -0/+9 |
| | | | Previously the Print pass searched the imports for a table import and skipped printing a local table declaration if found. Instead this refactors to make importation explicit, and also create importation records (previously we were inconsistent about whether such records were created in the IR depending on the wast syntax). | ||||
* | Require unique names in binaryen IR (#746) | Alon Zakai | 2016-10-06 | 1 | -43/+23 |
| | |||||
* | More binary updates for 0xc (#733) | Derek Schuff | 2016-10-03 | 1 | -7/+6 |
| | | | | | | | | | | | | | | | Refine tables to explicitly exist or not. Previously they were printed or encoded if it had any segments, or an initial or max size. However tables can be defined but empty, so we had a special hack that defined an empty segment when we really just wanted an empty table. Now, just make the existence explicit. Update Function table encoding for 0xc (Table and Element sections) Add end opcodes after function bodies (these are consumed by getMaybeBlock with the same behavior that it had before when it reached the function end, so no explicit decode) Update call_indirect encoding for 0xc (no arity, call target is last) | ||||
* | Refactor Import::Kind and Export::Kind into an ExternalKind enum class (#725) | Alon Zakai | 2016-10-03 | 1 | -32/+32 |
| | |||||
* | Type check block/loop/if sigs (#717) | Alon Zakai | 2016-09-28 | 1 | -12/+16 |
| | | | | | | * type check using block/loop/if types provided in text and binary formats. * print if and loop sigs which were missing. * remove dsl from OptimizeInstructions as after those changes it needs rethinking. | ||||
* | auto-generated import names must be unique by kind | Alon Zakai | 2016-09-21 | 1 | -12/+19 |
| | |||||
* | new if label behavior | Alon Zakai | 2016-09-21 | 1 | -33/+21 |
| | |||||
* | loop block signatures | Alon Zakai | 2016-09-21 | 1 | -2/+6 |
| | |||||
* | refactor wasm.h to remove numericIndex hacks, and move indexing to the parsers | Alon Zakai | 2016-09-21 | 1 | -13/+39 |
| | |||||
* | function numbering fix in wasm-s-parser | Alon Zakai | 2016-09-20 | 1 | -3/+8 |
| | |||||
* | memory data parsing fixes | Alon Zakai | 2016-09-20 | 1 | -1/+8 |
| | |||||
* | table elem parsing fixes | Alon Zakai | 2016-09-20 | 1 | -7/+28 |
| | |||||
* | max memory and table fixes | Alon Zakai | 2016-09-20 | 1 | -0/+4 |
| | |||||
* | memory parsing fixes | Alon Zakai | 2016-09-20 | 1 | -3/+12 |
| | |||||
* | memory and table parsing fixes | Alon Zakai | 2016-09-20 | 1 | -7/+21 |
| | |||||
* | table parsing and executing fixes | Alon Zakai | 2016-09-20 | 1 | -9/+16 |
| | |||||
* | mark table as present if seen as an import | Alon Zakai | 2016-09-20 | 1 | -0/+1 |
| | |||||
* | support spectest.global | Alon Zakai | 2016-09-20 | 1 | -2/+6 |
| | |||||
* | global importing fixes: use the right counter for globals and for functions | Alon Zakai | 2016-09-20 | 1 | -13/+47 |
| | |||||
* | import parsing fixes | Alon Zakai | 2016-09-19 | 1 | -12/+12 |
| | |||||
* | globals mutability fixes | Alon Zakai | 2016-09-19 | 1 | -2/+1 |
| | |||||
* | global parsing | Alon Zakai | 2016-09-19 | 1 | -5/+33 |
| | |||||
* | new-style import parsing | Alon Zakai | 2016-09-19 | 1 | -5/+40 |
| | |||||
* | parsing and validation fixes | Alon Zakai | 2016-09-17 | 1 | -11/+19 |
| | |||||
* | support module operations in shell tests | Alon Zakai | 2016-09-17 | 1 | -2/+2 |
| | |||||
* | parse empty modules without error | Alon Zakai | 2016-09-16 | 1 | -0/+1 |
| | |||||
* | use export name as internal name if no internal name, for better s-expr ↵ | Alon Zakai | 2016-09-16 | 1 | -0/+3 |
| | | | | debugging | ||||
* | block signatures | Alon Zakai | 2016-09-16 | 1 | -8/+23 |
| | |||||
* | s-expression modules can have names | Alon Zakai | 2016-09-16 | 1 | -8/+14 |
| | |||||
* | call_import changes: no more call_import, shared index space with functions | Alon Zakai | 2016-09-16 | 1 | -1/+11 |
| | |||||
* | new validation checks for upcoming spec tests | Alon Zakai | 2016-09-07 | 1 | -1/+2 |
| | |||||
* | additional parsing support for new spec things | Alon Zakai | 2016-09-07 | 1 | -22/+74 |
| | |||||
* | new export syntax in spec repo | Alon Zakai | 2016-09-07 | 1 | -3/+20 |
| | |||||
* | new import syntax in spec repo | Alon Zakai | 2016-09-07 | 1 | -8/+27 |
| | |||||
* | use globals in asm2wasm | Alon Zakai | 2016-09-07 | 1 | -4/+11 |
| | |||||
* | get_global and set_global use a Name instead of an Index, to be more ↵ | Alon Zakai | 2016-09-07 | 1 | -17/+5 |
| | | | | consistent with refering to other global objects; e.g. this avoids ordering issues with imported vs non-imported globals | ||||
* | import type for globals | Alon Zakai | 2016-09-07 | 1 | -2/+4 |
| | |||||
* | import kinds | Alon Zakai | 2016-09-07 | 1 | -21/+37 |
| | |||||
* | export kinds | Alon Zakai | 2016-09-07 | 1 | -7/+21 |
| | |||||
* | support (data .. ..), separate strings in a data() | Alon Zakai | 2016-09-07 | 1 | -7/+7 |
| | |||||
* | SetGlobal should not return a value | Alon Zakai | 2016-09-07 | 1 | -1/+0 |
| | |||||
* | some additional validations | Alon Zakai | 2016-09-07 | 1 | -0/+5 |
| | |||||
* | support (memory (data ..)) notation | Alon Zakai | 2016-09-07 | 1 | -2/+15 |
| | |||||
* | parse s-expression quoted strings more carefully | Alon Zakai | 2016-09-07 | 1 | -6/+12 |
| | |||||
* | throw a parse error on bad result arities | Alon Zakai | 2016-09-07 | 1 | -1/+4 |
| | |||||
* | loops no longer have an out label and other upstream loop updates | Alon Zakai | 2016-09-07 | 1 | -8/+12 |
| |