summaryrefslogtreecommitdiff
path: root/test/lit/parse-bad-tuple-extract-index.wast
Commit message (Collapse)AuthorAgeFilesLines
* [Parser] Enable the new text parser by default (#6371)Thomas Lively2024-04-251-1/+1
| | | | | | | | | | | | | | The new text parser is faster and more standards compliant than the old text parser. Enable it by default in wasm-opt and update the tests to reflect the slightly different results it produces. Besides following the spec, the new parser differs from the old parser in that it: - Does not synthesize `loop` and `try` labels unnecessarily - Synthesizes different block names in some cases - Parses exports in a different order - Parses `nop`s instead of empty blocks for empty control flow arms - Does not support parsing Poppy IR - Produces different error messages - Cannot parse `pop` except as the first instruction inside a `catch`
* Add an arity immediate to tuple.extract (#6172)Thomas Lively2023-12-121-2/+2
| | | | | | | | Once support for tuple.extract lands in the new WAT parser, this arity immediate will let the parser determine how many values it should pop off the stack to serve as the tuple operand to `tuple.extract`. This will usually coincide with the arity of a tuple-producing instruction on top of the stack, but in the spirit of treating the input as a proper stack machine, it will not have to and the parser will still work correctly.
* Update `tuple.make` text format to include arity (#6169)Thomas Lively2023-12-121-2/+2
| | | | | | | | | | Previously, the number of tuple elements was inferred from the number of s-expression children of the `tuple.make` expression, but that scheme would not work in the new wat parser, where s-expressions are optional and cannot be semantically meaningful. Update the text format to take the number of tuple elements (i.e. the tuple arity) as an immediate. This new format will be able to be implemented in the new parser as follow-on work.
* wasm-s-parser: Add context in validation errors (#5981)Alon Zakai2023-09-281-1/+1
| | | | Instead of just reporting the reason and line + column, also log out the element the error occurred at.
* Catch bad tuple.extract index in parser (#3766)Thomas Lively2021-03-311-0/+16
Previously an out-of-bounds index would result in an out-of-bounds read during finalization of the tuple.extract expression.