Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Add a second placeholder zero to the encoding of memory.copy and table.copy. - #29

Merged
binji merged 1 commit into
WebAssembly:masterfrom
AndrewScheidecker:copy-encoding-extra-zero-byte
Nov 29, 2018
Merged

binji merged 1 commit into
WebAssembly:masterfrom
AndrewScheidecker:copy-encoding-extra-zero-byte

Conversation

@AndrewScheidecker

Copy link
Copy Markdown
Contributor

This would make it simpler to extend those instructions to support multiple memories/tables, and copying between different memories/tables.

The current encoding has a single placeholder zero byte for those instructions, which allows extension to multiple memories/tables, but would require a more complicated encoding to add two immediate indices.

…able.copy`.

This would make it simpler to extend those instructions to support multiple memories/tables, and copying between different memories/tables.
The current encoding has a single placeholder zero byte for those instructions, which allows extension to multiple memories/tables, but would require a more complicated encoding to add two immediate indices.
@binji

binji commented Sep 7, 2018

Copy link
Copy Markdown
Member

Hm, I'm not sure I'm convinced yet. We'll probably want a flag byte either way, so we can add other extensions later, so I wouldn't want to use these two bytes as indexes directly.

@binji binji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Guess I was wrong again about this one :-) Thanks for jumping on this early. lgtm

@binji
binji merged commit b19cbf3 into WebAssembly:master Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants