diff options
author | Abbas Mashayekh <martianboy2005@gmail.com> | 2021-03-06 03:08:51 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 15:38:51 -0800 |
commit | 89b8af006bc56cb4bf68f12a80b1cfe8e7a353d4 (patch) | |
tree | 602bd8e24753b5e45c859a2c3672062ce07133fe /CHANGELOG.md | |
parent | 57619b508d38677844cb482a4034dc985d2cecc6 (diff) | |
download | binaryen-89b8af006bc56cb4bf68f12a80b1cfe8e7a353d4.tar.gz binaryen-89b8af006bc56cb4bf68f12a80b1cfe8e7a353d4.tar.bz2 binaryen-89b8af006bc56cb4bf68f12a80b1cfe8e7a353d4.zip |
[reference-types] Support passive elem segments (#3572)
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.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index fc63248f3..62b1a925f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,40 @@ full changeset diff at the end of each section. Current Trunk ------------- +- `BinaryenSetFunctionTable` and `module.setFunctionTable` have been removed + in favor of `BinaryenAddTable` and `module.addTable` respectively. +- `BinaryenIsFunctionTableImported` is removed. +- A new type `BinaryenElementSegmentRef` has been added to the C API with + new apis in both C & JS: + - `BinaryenAddActiveElementSegment` + - `BinaryenAddPassiveElementSegment` + - `BinaryenRemoveElementSegment` + - `BinaryenGetElementSegment` + - `BinaryenGetElementSegmentByIndex` + - `BinaryenElementSegmentGetName` + - `BinaryenElementSegmentSetName` + - `BinaryenElementSegmentGetTable` + - `BinaryenElementSegmentSetTable` + - `BinayenElementSegmentIsPassive` + - `module.addActiveElementSegment` + - `module.addPassiveElementSegment` + - `module.removeElementSegment` + - `module.getElementSegment` + - `module.getElementSegmentByIndex` + - `module.getTableSegments` + - `module.getNumElementSegments` + - `binaryen.getElementSegmentInfo` +- `BinaryenAddTable` and `module.addTable` no longer take offset and function + names. +- `BinaryenGetNumFunctionTableSegments` is replaced with + `BinaryenGetNumElementSegments`. +- `BinaryenGetFunctionTableSegmentOffset` is replaced with + `BinaryenElementSegmentGetOffset`. +- `BinaryenGetFunctionTableSegmentLength` is replaced with + `BinaryenElementSegmentGetLength`. +- `BinaryenGetFunctionTableSegmentData` is replaced with + `BinaryenElementSegmentGetData`. + v100 ---- |