Repository navigation
wasmparser: Get more GC spec tests passing - #1346
Merged
Merged
Conversation
Newly passing tests: * `br_on_cast.wast` * `br_on_cast_fail.wast` * `struct.wast` Newly implemented instructions: * `struct.new` * `struct.get` * `struct.get_s` * `struct.get_u` * `struct.set` * `br_on_cast` * `br_on_cast_fail`
The `extern.wast` test was already passing. The `ref_eq.wast` test required implementing `ref.eq`, which is very simple. And now all of the GC spec tests are passing!
Member
Author
|
Added another commit and now all GC spec tests are passing! |
alexcrichton
approved these changes
Dec 22, 2023
Comment on lines
+241
to
+244
| fn field_index(&mut self, idx: u32) -> Result<()> { | ||
| write!(&mut self.printer.result, "{idx}")?; | ||
| Ok(()) | ||
| } |
Member
There was a problem hiding this comment.
Would you be up for threading field names through here? (or is there not a subsection of the name custom section to specify field names yet?)
Member
Author
There was a problem hiding this comment.
There is a fields subsection of the name custom section in the spec appendix, but we don't parse it at all in wasmprinter yet. I'd prefer to leave this for a follow up PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Newly passing tests:
br_on_cast.wastbr_on_cast_fail.waststruct.wastNewly implemented instructions:
struct.newstruct.getstruct.get_sstruct.get_ustruct.setbr_on_castbr_on_cast_fail