Skip to content
This repository has been 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

Conversation

AndrewScheidecker
Copy link
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
Copy link
Member

binji commented Sep 7, 2018

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.

Copy link
Member

@binji binji left a comment

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.

None yet

2 participants