diff options
author | Jérôme Vouillon <jerome.vouillon@gmail.com> | 2024-07-08 16:23:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-08 20:23:00 +0000 |
commit | 81f8f770a1b2adc027cbbbd981781d2ee6952e54 (patch) | |
tree | 11df952c2b2da03fb5ad5a3d75b64a060df1a130 /src/wasm/wasm-stack.cpp | |
parent | 9792f2c1fd311c3ffd2036288c6e7614a0486481 (diff) | |
download | binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.tar.gz binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.tar.bz2 binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.zip |
Rename external conversion instructions (#6716)
Rename instructions `extern.internalize` into `any.convert_extern` and
`extern.externalize` into `extern.convert_any` to follow more closely
the spec. This was changed in
https://github.com/WebAssembly/gc/issues/432.
The legacy name is still accepted in text inputs and in the C and JS
APIs.
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index ac117e2e0..40a50706a 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -2334,13 +2334,13 @@ void BinaryInstWriter::visitRefAs(RefAs* curr) { case RefAsNonNull: o << int8_t(BinaryConsts::RefAsNonNull); break; - case ExternInternalize: + case AnyConvertExtern: o << int8_t(BinaryConsts::GCPrefix) - << U32LEB(BinaryConsts::ExternInternalize); + << U32LEB(BinaryConsts::AnyConvertExtern); break; - case ExternExternalize: + case ExternConvertAny: o << int8_t(BinaryConsts::GCPrefix) - << U32LEB(BinaryConsts::ExternExternalize); + << U32LEB(BinaryConsts::ExternConvertAny); break; default: WASM_UNREACHABLE("invalid ref.as_*"); |