Adjust binary encoding of import/export names#623
Open
alexcrichton wants to merge 1 commit intoWebAssembly:mainfrom
Open
Adjust binary encoding of import/export names#623alexcrichton wants to merge 1 commit intoWebAssembly:mainfrom
alexcrichton wants to merge 1 commit intoWebAssembly:mainfrom
Conversation
The purpose of this commit is to address the discrepancy between the specification and wasm-tools discovered in WebAssembly#622. The history here is: * WebAssembly#222 - historical addition of `(interface "name")` as an import/export name. * WebAssembly#263 - moral revert of the previous change where the kind of name was now encoded in the name instead. At this point `Binary.md` mistakenly no longer reflected what wasm-tools parsed. * WebAssembly#536 - addition of more metadata to import/export names with a discriminator byte that overlapped the previous. This commit is is an adjustment to `Binary.md` to fix these discrepancies. Notably `exportname` and `importname` productions, previously absent. The `exportname'` and `importname'` productions are now renamed to `exportname` and `importname`. Additioanlly the production with `versionsuffix'` have been renumbered to `0x02` while an `0x01` production was added which is the exact same as `0x00` (intended for historical compat). A note was updated in the 1.0 binary adjustments to clean this up. Closes WebAssembly#622
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.
The purpose of this commit is to address the discrepancy between the specification and wasm-tools discovered in #622. The history here is:
(interface "name")as an import/export name.Binary.mdmistakenly no longer reflected what wasm-tools parsed.This commit is is an adjustment to
Binary.mdto fix these discrepancies. Notablyexportnameandimportnameproductions, previously absent. Theexportname'andimportname'productions are now renamed toexportnameandimportname. Additioanlly the production withversionsuffix'have been renumbered to0x02while an0x01production was added which is the exact same as0x00(intended for historical compat). A note was updated in the 1.0 binary adjustments to clean this up.Closes #622