-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of module linking (#26)
* Initial implementation of module linking This commit is the initial implementation of the module linking proposal in the three tooling crates of this repository. Unfortunately this is just one massive commit which isn't really able to be reviewed in a nuanced way. I wanted to bundle everything up though because implementing each of the features of the module linking proposal ended up having a pretty major impact on at least the text parser. The main focus of this commit is getting the text parser to a "pretty complete" point. I suspect there's still various odds and ends remaining, but I believe it's almost entirely up to date with the current state of the proposal. The `wasmprinter` crate should be in good shape but I'm pretty certian that `wasmparser` is still missing at least some pieces of validation. This is hoped to be a good unit of work to start from after which I can focus more on a complete implementation in `wasmparser` in terms of validation. From there I think we'll have a good suite of tests and can start moving on towards an implementation in an engine and/or implementation in toolchains. The largest changes here are to the text parser, and it's important to note that the text parser at least is ideally pretty low-impact in terms of risky changes. We've got a pretty good regression test suite, and the interface of the text parser is "given this string give me the binary wasm". Coupled with the fact that the text parser is 100% safe code I'm pretty certain that the only bad pieces which can arise are panics, which fuzzers in theory should find relatively quickly. * Tidy up `item_for` method with `Ns` Also replace a "wut" string with an actual namespace description. * FIx wasmpaser examples * Check in more `*.dump` files * Fix custom section annotations * Fix a doc comment in wasmparser * Address some review comments
- Loading branch information
1 parent
1a1f366
commit c1aa81e
Showing
88 changed files
with
8,015 additions
and
1,356 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.