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

Reverse order of {table,memory}.init immediates - #45

Merged
binji merged 1 commit into
masterfrom
binji-init-immediate
Jan 9, 2019
Merged

binji merged 1 commit into
masterfrom
binji-init-immediate

Conversation

@binji

@binji binji commented Jan 9, 2019

Copy link
Copy Markdown
Member

The order of the table.init and memory.init immediates should be the index followed by the reserved byte (which is a placeholder for the table or memory index). This matches ordering of immediates in call_indirect (type index, followed by table index reserved byte).

The order of the `table.init` and `memory.init` immediates should be the index followed by the reserved byte (which is a placeholder for the table or memory index). This matches ordering of immediates in `call_indirect` (type index, followed by table index reserved byte).
@binji
binji merged commit 446b9c2 into master Jan 9, 2019
@binji
binji deleted the binji-init-immediate branch January 9, 2019 18:37
alexcrichton added a commit to alexcrichton/wabt that referenced this pull request Jan 29, 2019
binji pushed a commit to WebAssembly/wabt that referenced this pull request Jan 29, 2019
joyeecheung pushed a commit to joyeecheung/v8 that referenced this pull request Feb 4, 2019
* There are now two indexes for table.copy and memory.copy, one for the
source and the one for the destination table/memory. (see
WebAssembly/bulk-memory-operations#43)

* Reverse the order of the table.init and memory.init indexes, so the
segment index is first and the table/memory index is second. (see
WebAssembly/bulk-memory-operations#45)

Change-Id: I1781edd4200a7b693e3d0814999e6292aafa58d3
Reviewed-on: https://chromium-review.googlesource.com/c/1446149
Reviewed-by: Ben Titzer <[email protected]>
Commit-Queue: Ben Smith <[email protected]>
Cr-Commit-Position: refs/heads/master@{#59259}
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