Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions proposals/custom-descriptors/br_on_cast_desc.wast
Original file line number Diff line number Diff line change
Expand Up @@ -1126,13 +1126,13 @@
(global $b2-exact (ref null (exact $b)) (struct.new $b))
(global $b1 (ref null $b) (global.get $b1-exact))
(global $b2 (ref null $b) (global.get $b2-exact))
(global $a1 (ref null $a) (struct.new $a (global.get $b1-exact)))
(global $a1 (ref null $a) (struct.new_desc $a (global.get $b1-exact)))

(global $d1-exact (ref null (exact $d)) (struct.new $d))
(global $d2-exact (ref null (exact $d)) (struct.new $d))
(global $d1 (ref null $d) (global.get $d1-exact))
(global $d2 (ref null $d) (global.get $d2-exact))
(global $c1 (ref null $c) (struct.new $c (global.get $d1-exact)))
(global $c1 (ref null $c) (struct.new_desc $c (global.get $d1-exact)))

(global $c1-as-a (ref null $a) (global.get $c1))

Expand Down Expand Up @@ -1916,7 +1916,7 @@

(global $b1 (ref (exact $b)) (struct.new $b))
(global $b2 (ref (exact $b)) (struct.new $b))
(global $a1 (ref (exact $a)) (struct.new $a (global.get $b1)))
(global $a1 (ref (exact $a)) (struct.new_desc $a (global.get $b1)))

(func $assert-eq-i32 (param i32 i32)
(if
Expand Down
6 changes: 3 additions & 3 deletions proposals/custom-descriptors/br_on_cast_desc_fail.wast
Original file line number Diff line number Diff line change
Expand Up @@ -1112,13 +1112,13 @@
(global $b2-exact (ref null (exact $b)) (struct.new $b))
(global $b1 (ref null $b) (global.get $b1-exact))
(global $b2 (ref null $b) (global.get $b2-exact))
(global $a1 (ref null $a) (struct.new $a (global.get $b1-exact)))
(global $a1 (ref null $a) (struct.new_desc $a (global.get $b1-exact)))

(global $d1-exact (ref null (exact $d)) (struct.new $d))
(global $d2-exact (ref null (exact $d)) (struct.new $d))
(global $d1 (ref null $d) (global.get $d1-exact))
(global $d2 (ref null $d) (global.get $d2-exact))
(global $c1 (ref null $c) (struct.new $c (global.get $d1-exact)))
(global $c1 (ref null $c) (struct.new_desc $c (global.get $d1-exact)))

(global $c1-as-a (ref null $a) (global.get $c1))

Expand Down Expand Up @@ -1902,7 +1902,7 @@

(global $b1 (ref (exact $b)) (struct.new $b))
(global $b2 (ref (exact $b)) (struct.new $b))
(global $a1 (ref (exact $a)) (struct.new $a (global.get $b1)))
(global $a1 (ref (exact $a)) (struct.new_desc $a (global.get $b1)))

(func $assert-eq-i32 (param i32 i32)
(if
Expand Down
4 changes: 2 additions & 2 deletions proposals/custom-descriptors/ref_cast_desc.wast
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,13 @@
(global $b2-exact (ref null (exact $b)) (struct.new $b))
(global $b1 (ref null $b) (global.get $b1-exact))
(global $b2 (ref null $b) (global.get $b2-exact))
(global $a1 (ref null $a) (struct.new $a (global.get $b1-exact)))
(global $a1 (ref null $a) (struct.new_desc $a (global.get $b1-exact)))

(global $d1-exact (ref null (exact $d)) (struct.new $d))
(global $d2-exact (ref null (exact $d)) (struct.new $d))
(global $d1 (ref null $d) (global.get $d1-exact))
(global $d2 (ref null $d) (global.get $d2-exact))
(global $c1 (ref null $c) (struct.new $c (global.get $d1-exact)))
(global $c1 (ref null $c) (struct.new_desc $c (global.get $d1-exact)))

(global $c1-as-a (ref null $a) (global.get $c1))

Expand Down
26 changes: 13 additions & 13 deletions proposals/custom-descriptors/ref_get_desc.wast
Original file line number Diff line number Diff line change
Expand Up @@ -305,20 +305,20 @@
(global $b1 (ref (exact $b)) (struct.new $b (i32.const 1)))
(global $b2 (ref (exact $b)) (struct.new $b (i32.const 2)))

(global $a1 (ref null $a) (struct.new $a (global.get $b1)))
(global $a2 (ref null (exact $a)) (struct.new $a (global.get $b2)))
(global $a3 (ref (exact $a)) (struct.new $a (struct.new $b (i32.const 3))))
(global $a1 (ref null $a) (struct.new_desc $a (global.get $b1)))
(global $a2 (ref null (exact $a)) (struct.new_desc $a (global.get $b2)))
(global $a3 (ref (exact $a)) (struct.new_desc $a (struct.new $b (i32.const 3))))

(global $null (ref null $a) (ref.null none))
(global $null-exact (ref null (exact $a)) (ref.null (exact $a)))

(func $null (result (ref null $a)) (ref.null none))
(func $null-exact (result (ref null (exact $a))) (ref.null (exact $a)))
(func $alloc-i32 (param i32) (result (ref (exact $a)))
(struct.new $a (struct.new $b (local.get 0)))
(struct.new_desc $a (struct.new $b (local.get 0)))
)
(func $alloc-desc (param (ref (exact $b))) (result (ref (exact $a)))
(struct.new $a (local.get 0))
(struct.new_desc $a (local.get 0))
)

(func (export "null") (result anyref)
Expand Down Expand Up @@ -346,7 +346,7 @@
(func (export "alloc-0") (result i32)
(struct.get $b 0
(ref.get_desc $a
(struct.new $a
(struct.new_desc $a
(struct.new $b
(i32.const 0)
)
Expand Down Expand Up @@ -374,22 +374,22 @@
(local.set 0 (struct.new_default $b))
(ref.eq
(local.get 0)
(ref.get_desc $a (struct.new $a (local.get 0)))
(ref.get_desc $a (struct.new_desc $a (local.get 0)))
)
)
(func (export "not-equal") (result i32)
(ref.eq
(struct.new_default $b)
(ref.get_desc $a (struct.new $a (struct.new_default $b)))
(ref.get_desc $a (struct.new_desc $a (struct.new_default $b)))
)
)
(func (export "chain-equal") (result i32)
(local $three (ref null (exact $three)))
(local $two (ref null (exact $two)))
(local $one (ref null (exact $one)))
(local.set $three (struct.new $three))
(local.set $two (struct.new $two (local.get $three)))
(local.set $one (struct.new $one (local.get $two)))
(local.set $two (struct.new_desc $two (local.get $three)))
(local.set $one (struct.new_desc $one (local.get $two)))
(ref.eq
(local.get $three)
(ref.get_desc $two (ref.get_desc $one (local.get $one)))
Expand Down Expand Up @@ -426,7 +426,7 @@
(global (export "b") (ref null (exact $b)) (struct.new $b))

(func (export "make-a") (result (ref null $a))
(struct.new $a (global.get 0))
(struct.new_desc $a (global.get 0))
)

(func (export "check-eq") (param (ref null $a)) (result i32)
Expand All @@ -453,11 +453,11 @@
)

(func (export "imported-check-equal") (result i32)
(call $check-eq (struct.new $a (global.get $b)))
(call $check-eq (struct.new_desc $a (global.get $b)))
)

(func (export "imported-check-not-equal") (result i32)
(call $check-eq (struct.new $a (struct.new $b)))
(call $check-eq (struct.new_desc $a (struct.new $b)))
)
)

Expand Down
Loading