Rename "index type" to "address type" across the spec#90
Rename "index type" to "address type" across the spec#90bvisness merged 5 commits intoWebAssembly:mainfrom
Conversation
It is very important that you have precisely the correct number of dots. It would be too much work for the computer otherwise.
|
Re-requested review now that the spec interpreter has also been updated. |
rossberg
left a comment
There was a problem hiding this comment.
LGTM, with perhaps one request: in the interpreter, shorten the type name to addr_type to more closely match the spec's naming.
This was discussed in WebAssembly/memory64#67 and changed in WebAssembly/memory64#90. This is a pure mechanical renaming of "IndexType" -> "AddressType" and "index_type" -> "address_type". [email protected] Bug: 41480462 Change-Id: Ifb6843ca47d9a48d7aac3d7f64d0f7c7ce4ecec5 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5941627 Commit-Queue: Clemens Backes <[email protected]> Reviewed-by: Eva Herencsárová <[email protected]> Cr-Commit-Position: refs/heads/main@{#96704}
| undefined set(IndexValue index, optional any value); | ||
| readonly attribute IndexValue length; | ||
| AddressValue grow(AddressValue delta, optional any value); | ||
| any get(AddressValue index); |
There was a problem hiding this comment.
Should the parameter name have been updated to address, for get and set?
There was a problem hiding this comment.
Ah, right you are. I'll make a follow-up PR.
There was a problem hiding this comment.
Well, actually, this is arguably fine since the current spec uses "index" (predating memory64) and it's quite clear in context that this is referring to the index of an element. We can rename if we want, but I'm actually somewhat inclined to keep it as is. I'll open an issue just for any final bikeshedding.
"index" was renamed to "address". Without this change, all JS tests generated from the core tests will fail.
1) Use 'address' instead of 'index'; this was a last-minute change, see WebAssembly/memory64#90 and WebAssembly/memory64#92. 2) Only treat RangeError as passing test. Note that the tests were passing before because engines threw a TypeError if the memory descriptor used bigints without specifying {address: 'i64'}.
1) Use 'address' instead of 'index'; this was a last-minute change, see WebAssembly/memory64#90 and WebAssembly/memory64#92. 2) Only treat RangeError as passing test. Note that the tests were passing before because engines threw a TypeError if the memory descriptor used bigints without specifying {address: 'i64'}.
Resolves #67.
Currently draft because I have not yet updated the spec interpreter, but the entire spec (core and JS) should be correct.