Skip to content

Commit

Permalink
Revert parameterization of limits that was added in WebAssembly#13. (W…
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored May 30, 2024
1 parent 415cdaf commit 6f101d6
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions proposals/memory64/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,16 @@ have to support 32-bit memory addresses in their ABI.

### Structure

* The [limits][syntax limits] structure is changed to use `u64`
 - `limits ::= {min u64, max u64?}`

* A new `idxtype` can be either `i32` or `i64`
- `idxtype ::= i32 | i64`

* The [limits][syntax limits] structure is parameterised by index syntax
- `limits(iv) ::= {min iv, max iv?}`
The parameter is omitted where it is immaterial.

* The [memory type][syntax memtype] and [table type][syntax tabletype]
structures are extended to include an index type
- `memtype ::= idxtype limits(type(iv))`
- `tabletype ::= idxtype limits(type(iv)) reftype`
- where
```
type(\i32) = \I32
type(\i64) = \I64
```
- `memtype ::= idxtype limits`
- `tabletype ::= idxtype limits reftype`

* The [memarg][syntax memarg] immediate is changed to allow a 64-bit offset
- `memarg ::= {offset u64, align u32}`
Expand Down

0 comments on commit 6f101d6

Please sign in to comment.