authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-10 14:01:13-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-06 12:15:04-07:00
log55ca43a04c6273d3b68c4b5a40f8576c106de5e7
treec6946e1788ddcf5d7bec93fecc7b5a0a55323c3b
parent6b0d77326678d198550c0cc3ef7fe82a53e0e508

std.wasm: add Opcode.prefixed and make PrefixedOpcode nonexhaustive


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/wasm.zig+3
...@@ -188,6 +188,8 @@ pub const Opcode = enum(u8) {...@@ -188,6 +188,8 @@ pub const Opcode = enum(u8) {
188 i64_extend8_s = 0xC2,188 i64_extend8_s = 0xC2,
189 i64_extend16_s = 0xC3,189 i64_extend16_s = 0xC3,
190 i64_extend32_s = 0xC4,190 i64_extend32_s = 0xC4,
191
192 prefixed = 0xFC,
191 _,193 _,
192};194};
193195
...@@ -232,6 +234,7 @@ pub const PrefixedOpcode = enum(u8) {...@@ -232,6 +234,7 @@ pub const PrefixedOpcode = enum(u8) {
232 table_grow = 0x0F,234 table_grow = 0x0F,
233 table_size = 0x10,235 table_size = 0x10,
234 table_fill = 0x11,236 table_fill = 0x11,
237 _,
235};238};
236239
237/// Enum representing all Wasm value types as per spec:240/// Enum representing all Wasm value types as per spec: