Skip to content

Commit 52c6a0f

Browse files
committed
Tweak wording, align bullets
1 parent 0d96673 commit 52c6a0f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

design/mvp/CanonicalABI.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,16 +1182,16 @@ built-ins).
11821182

11831183
### `canon lift`
11841184

1185-
For a function:
1185+
For a canonical definition:
11861186
```
11871187
(canon lift $callee:<funcidx> $opts:<canonopt>* (func $f (type $ft)))
11881188
```
11891189
validation specifies:
1190-
* `$callee` must have type `flatten($ft, 'lift')`
1191-
* `$f` is given type `$ft`
1192-
* a `memory` is present if required by lifting and is a subtype of `(memory 1)`
1193-
* a `realloc` is present if required by lifting and has type `(func (param i32 i32 i32 i32) (result i32))`
1194-
* if a `post-return` is present, it has type `(func (param flatten($ft)['results']))`
1190+
* `$callee` must have type `flatten($ft, 'lift')`
1191+
* `$f` is given type `$ft`
1192+
* a `memory` is present if required by lifting and is a subtype of `(memory 1)`
1193+
* a `realloc` is present if required by lifting and has type `(func (param i32 i32 i32 i32) (result i32))`
1194+
* if a `post-return` is present, it has type `(func (param flatten($ft)['results']))`
11951195

11961196
When instantiating component instance `$inst`:
11971197
* Define `$f` to be the closure `lambda args: canon_lift(Context($opts, $inst), $callee, $ft, args)`
@@ -1261,15 +1261,15 @@ actions after the lowering is complete.
12611261

12621262
### `canon lower`
12631263

1264-
For a function:
1264+
For a canonical definition:
12651265
```
12661266
(canon lower $callee:<funcidx> $opts:<canonopt>* (core func $f))
12671267
```
12681268
where `$callee` has type `$ft`, validation specifies:
12691269
* `$f` is given type `flatten($ft, 'lower')`
1270-
* a `memory` is present if required by lifting and is a subtype of `(memory 1)`
1271-
* a `realloc` is present if required by lifting and has type `(func (param i32 i32 i32 i32) (result i32))`
1272-
* there is no `post-return` in `$opts`
1270+
* a `memory` is present if required by lifting and is a subtype of `(memory 1)`
1271+
* a `realloc` is present if required by lifting and has type `(func (param i32 i32 i32 i32) (result i32))`
1272+
* there is no `post-return` in `$opts`
12731273

12741274
When instantiating component instance `$inst`:
12751275
* Define `$f` to be the closure: `lambda args: canon_lower(Context($opts, $inst), $callee, $ft, args)`

0 commit comments

Comments
 (0)