From 3b3a0a660cfd8427674a6d689172b4bc4672ae3e Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Wed, 7 Jun 2023 01:42:46 +0300 Subject: [PATCH] * the a_ref_null instruction split into two subinstructions - a_ref_null_externref and a_ref_null_funcref --- compiler/wasm32/cpubase.pas | 2 +- compiler/wasm32/itcpugas.pas | 2 +- compiler/wasm32/strinst.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/wasm32/cpubase.pas b/compiler/wasm32/cpubase.pas index b892eac29c..2c0b8238ba 100644 --- a/compiler/wasm32/cpubase.pas +++ b/compiler/wasm32/cpubase.pas @@ -87,7 +87,7 @@ uses // bulk memory operations a_memory_copy, a_memory_fill, a_memory_init, a_data_drop, // reference instructions - a_ref_null, a_ref_is_null, a_ref_func, + a_ref_null_funcref, a_ref_null_externref, a_ref_is_null, a_ref_func, // table instructions a_table_get, a_table_set, a_table_size, a_table_grow, a_table_fill, a_table_copy, a_table_init, a_elem_drop, // saturating truncation instructions diff --git a/compiler/wasm32/itcpugas.pas b/compiler/wasm32/itcpugas.pas index c4e857d19a..aac9bb1ee8 100644 --- a/compiler/wasm32/itcpugas.pas +++ b/compiler/wasm32/itcpugas.pas @@ -86,7 +86,7 @@ interface // bulk memory operations 'memory.copy 0,0', 'memory.fill 0', 'memory.init', 'data.drop', // reference instructions - 'ref.null', 'ref.is_null', 'ref.func', + 'ref.null func', 'ref.null extern', 'ref.is_null', 'ref.func', // table instructions 'table.get', 'table.set', 'table.size', 'table.grow', 'table.fill', 'table.copy', 'table.init', 'elem.drop', // saturating truncation instructions diff --git a/compiler/wasm32/strinst.inc b/compiler/wasm32/strinst.inc index f6e1d9e7d0..0176b7ba1b 100644 --- a/compiler/wasm32/strinst.inc +++ b/compiler/wasm32/strinst.inc @@ -70,7 +70,7 @@ // bulk memory operations 'memory.copy', 'memory.fill', 'memory.init', 'data.drop', // reference instructions - 'ref.null', 'ref.is_null', 'ref.func', + 'ref.null func', 'ref.null extern', 'ref.is_null', 'ref.func', // table instructions 'table.get', 'table.set', 'table.size', 'table.grow', 'table.fill', 'table.copy', 'table.init', 'elem.drop', // saturating truncation instructions