summaryrefslogtreecommitdiff
path: root/test/reference-types.wast.fromBinary.noDebugInfo
diff options
context:
space:
mode:
authorJay Phelps <hello@jayphelps.com>2020-06-10 16:34:56 -0400
committerGitHub <noreply@github.com>2020-06-10 13:34:56 -0700
commitf21eb572dd4a30c27dfad813249c3d715b4d1bca (patch)
tree2e1a2d9020a88584625e5c51dc691193037685cf /test/reference-types.wast.fromBinary.noDebugInfo
parent6ec03c5c0c664660a88fdb61ac1d3bd1f8b14771 (diff)
downloadbinaryen-f21eb572dd4a30c27dfad813249c3d715b4d1bca.tar.gz
binaryen-f21eb572dd4a30c27dfad813249c3d715b4d1bca.tar.bz2
binaryen-f21eb572dd4a30c27dfad813249c3d715b4d1bca.zip
Rename anyref to externref to match proposal change (#2900)
anyref future semantics were changed to only represent opaque host values, and thus renamed to externref. [Chromium](https://bugs.chromium.org/p/v8/issues/detail?id=7748#c360) was just updated to today (not yet released). I couldn't find a Mozilla bugzilla ticket mentioning externref so I don't immediately know if they've updated yet. https://github.com/WebAssembly/reference-types/pull/87
Diffstat (limited to 'test/reference-types.wast.fromBinary.noDebugInfo')
-rw-r--r--test/reference-types.wast.fromBinary.noDebugInfo72
1 files changed, 36 insertions, 36 deletions
diff --git a/test/reference-types.wast.fromBinary.noDebugInfo b/test/reference-types.wast.fromBinary.noDebugInfo
index a89f3a3a3..9e8dac3a3 100644
--- a/test/reference-types.wast.fromBinary.noDebugInfo
+++ b/test/reference-types.wast.fromBinary.noDebugInfo
@@ -1,6 +1,6 @@
(module
- (type $anyref_=>_none (func (param anyref)))
- (type $none_=>_anyref (func (result anyref)))
+ (type $externref_=>_none (func (param externref)))
+ (type $none_=>_externref (func (result externref)))
(type $funcref_=>_none (func (param funcref)))
(type $nullref_=>_none (func (param nullref)))
(type $exnref_=>_none (func (param exnref)))
@@ -8,20 +8,20 @@
(type $none_=>_exnref (func (result exnref)))
(type $none_=>_none (func))
(type $none_=>_nullref (func (result nullref)))
- (type $anyref_=>_funcref (func (param anyref) (result funcref)))
- (import "env" "import_global" (global $gimport$1 anyref))
- (import "env" "import_func" (func $fimport$0 (param anyref) (result funcref)))
+ (type $externref_=>_funcref (func (param externref) (result funcref)))
+ (import "env" "import_global" (global $gimport$1 externref))
+ (import "env" "import_func" (func $fimport$0 (param externref) (result funcref)))
(table $0 4 4 funcref)
(elem (i32.const 0) $0 $1 $2 $3)
- (global $global$0 (mut anyref) (ref.null))
+ (global $global$0 (mut externref) (ref.null))
(global $global$1 (mut funcref) (ref.null))
(global $global$2 (mut exnref) (ref.null))
(global $global$3 (mut nullref) (ref.null))
- (global $global$4 (mut anyref) (ref.func $4))
+ (global $global$4 (mut externref) (ref.func $4))
(global $global$5 (mut funcref) (ref.func $4))
(export "export_func" (func $fimport$0))
(export "export_global" (global $gimport$1))
- (func $0 (param $0 anyref)
+ (func $0 (param $0 externref)
(nop)
)
(func $1 (param $0 funcref)
@@ -38,7 +38,7 @@
)
(func $5
(local $0 funcref)
- (local $1 anyref)
+ (local $1 externref)
(local $2 nullref)
(local $3 exnref)
(local.set $1
@@ -131,19 +131,19 @@
(call $0
(ref.null)
)
- (call_indirect (type $anyref_=>_none)
+ (call_indirect (type $externref_=>_none)
(local.get $1)
(i32.const 0)
)
- (call_indirect (type $anyref_=>_none)
+ (call_indirect (type $externref_=>_none)
(local.get $0)
(i32.const 0)
)
- (call_indirect (type $anyref_=>_none)
+ (call_indirect (type $externref_=>_none)
(local.get $3)
(i32.const 0)
)
- (call_indirect (type $anyref_=>_none)
+ (call_indirect (type $externref_=>_none)
(ref.null)
(i32.const 0)
)
@@ -172,7 +172,7 @@
(i32.const 3)
)
(drop
- (block $label$1 (result anyref)
+ (block $label$1 (result externref)
(br_if $label$1
(local.get $1)
(i32.const 1)
@@ -180,7 +180,7 @@
)
)
(drop
- (block $label$2 (result anyref)
+ (block $label$2 (result externref)
(br_if $label$2
(local.get $0)
(i32.const 1)
@@ -188,7 +188,7 @@
)
)
(drop
- (block $label$3 (result anyref)
+ (block $label$3 (result externref)
(br_if $label$3
(local.get $3)
(i32.const 1)
@@ -196,7 +196,7 @@
)
)
(drop
- (block $label$4 (result anyref)
+ (block $label$4 (result externref)
(br_if $label$4
(ref.null)
(i32.const 1)
@@ -228,22 +228,22 @@
)
)
(drop
- (loop $label$8 (result anyref)
+ (loop $label$8 (result externref)
(local.get $1)
)
)
(drop
- (loop $label$9 (result anyref)
+ (loop $label$9 (result externref)
(local.get $0)
)
)
(drop
- (loop $label$10 (result anyref)
+ (loop $label$10 (result externref)
(local.get $3)
)
)
(drop
- (loop $label$11 (result anyref)
+ (loop $label$11 (result externref)
(ref.null)
)
)
@@ -273,14 +273,14 @@
)
)
(drop
- (if (result anyref)
+ (if (result externref)
(i32.const 1)
(local.get $1)
(local.get $3)
)
)
(drop
- (if (result anyref)
+ (if (result externref)
(i32.const 1)
(ref.func $4)
(ref.null)
@@ -308,7 +308,7 @@
)
)
(drop
- (try (result anyref)
+ (try (result externref)
(do
(local.get $1)
)
@@ -318,7 +318,7 @@
)
)
(drop
- (try (result anyref)
+ (try (result externref)
(do
(ref.func $4)
)
@@ -367,28 +367,28 @@
)
)
(drop
- (select (result anyref)
+ (select (result externref)
(local.get $1)
(ref.func $4)
(i32.const 1)
)
)
(drop
- (select (result anyref)
+ (select (result externref)
(local.get $3)
(local.get $1)
(i32.const 1)
)
)
(drop
- (select (result anyref)
+ (select (result externref)
(local.get $1)
(ref.null)
(i32.const 1)
)
)
(drop
- (select (result anyref)
+ (select (result externref)
(ref.null)
(ref.func $4)
(i32.const 1)
@@ -443,18 +443,18 @@
)
)
)
- (func $6 (result anyref)
- (local $0 anyref)
+ (func $6 (result externref)
+ (local $0 externref)
(local.get $0)
)
- (func $7 (result anyref)
+ (func $7 (result externref)
(ref.func $4)
)
- (func $8 (result anyref)
+ (func $8 (result externref)
(local $0 exnref)
(local.get $0)
)
- (func $9 (result anyref)
+ (func $9 (result externref)
(ref.null)
)
(func $10 (result funcref)
@@ -474,8 +474,8 @@
(local $0 nullref)
(local.get $0)
)
- (func $15 (result anyref)
- (local $0 anyref)
+ (func $15 (result externref)
+ (local $0 externref)
(local $1 exnref)
(return
(local.get $0)