summaryrefslogtreecommitdiff
path: root/test/example/c-api-multiple-tables.c
Commit message (Collapse)AuthorAgeFilesLines
* C API: Add BinaryenTableGetType and BinaryenTableSetType (#6137)KinderGartenKiller2023-11-301-0/+5
| | | Fixes #6136
* Support specialized function types in element segments (#4109)Alon Zakai2021-09-021-0/+1
| | | | | | Before this, the element segments would be printed as having type funcref, and then if their table had a specialized type, the element type would not be a subtype of the table and validation would fail.
* [API] Add type argument for BinaryenAddTable method (#4107)Max Graey2021-08-271-2/+2
| | | In the JS API this is optional and it defaults to `funcref`.
* Fix typo in function name: BinayenElementSegmentIsPassive (#3862)Paulo Matos2021-05-061-1/+1
| | | Becomes BinaryenElementSegmentIsPassive
* [reference-types] Support passive elem segments (#3572)Abbas Mashayekh2021-03-051-15/+29
| | | | | | | | | | | Passive element segments do not belong to any table, so the link between Table and elem needs to be weaker; i.e. an elem may have a table in case of active segments, or simply be a collection of function references in case of passive/declarative segments. This PR takes Table::Segment out and turns it into a first class module element just like tables and functions. It also implements early support for parsing, printing, encoding and decoding passive/declarative elem segments.
* Slightly improve table C API (#3604)Daniel Wirtz2021-02-261-0/+6
| | | Uses BinaryenIndex instead of int to mirror parameter types in table construction, and adds setters for name, initial and max.
* Print the features section in a comment (#3563)Alon Zakai2021-02-121-1/+1
|
* [reference-types] remove single table restriction in IR (#3517)Abbas Mashayekh2021-02-091-0/+90
Adds support for modules with multiple tables. Adds a field for the table name to `CallIndirect` and updates the C/JS APIs accordingly.