Skip to content

Reorder section size field #639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2016
Merged

Reorder section size field #639

merged 2 commits into from
Apr 18, 2016

Conversation

rossberg
Copy link
Member

@rossberg rossberg commented Apr 5, 2016

[Retargeted from #634.]

Put the size of a section after its name, as suggested in #623.


Each section is optional and may appear at most once.
Known sections (from this list) may not appear out of order.
The actual content of each section is encoded in its `payload_str`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Instead of "actual content", can we just call it payload or "body"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, "The payload is in the payload_str" would seem kind of vacuous; "body" would be okay. But what's wrong with (information) "content"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nit is more with "actual" than content.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, removed the "actual".

@rossberg
Copy link
Member Author

Objections to this?

@jfbastien
Copy link
Member

Do we want to do this change at the same time as postorder? Seems fine.

@lukewagner
Copy link
Member

lgtm. Our assumption was indeed that this change was in 0xb.

@rossberg rossberg merged commit 9a7f8be into binary_0xb Apr 18, 2016
@rossberg rossberg deleted the section-size branch April 18, 2016 16:31
lukewagner pushed a commit that referenced this pull request Apr 28, 2016
lukewagner added a commit that referenced this pull request Apr 29, 2016
* Merge pull request #648 from WebAssembly/current_memory

Add current_memory operator

* Reorder section size field (#639)

* Prettify section names (#638)

* Extensible encoding of function signatures (#640)

* Prettify section names

* Restructure encoding of function signatures

* Revert "[Binary 11] Update the version number to 0xB."

* Leave index space for growing the number of base types

* Comments addressed

* clarify how export/import names convert to JS strings (#569) (#573)

* When embedded in the web, clarify how export/import names convert to JS strings (#569)

* Fixes suggested by @jf

* Address more feedback

Added a link to http://monsur.hossa.in/2012/07/20/utf-8-in-javascript.html.  Simplified the decoding algorithm thanks to Luke's feedback.

* Access to proprietary APIs apart from HTML5 (#656)

* comments

* Merge pull request #641 from WebAssembly/postorder_opcodes

Postorder opcodes

* fix some text that seems to be in the wrong order (#670)

* Clarify that br_table has a branch argument (#664)

* Add explicit argument counts (#672)

* Add explicit arities

* Rename

* Replace uint8 with varint7 in form field (#662)

This needs to be variable-length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants