Browse Source

* the a_ref_null instruction split into two subinstructions - a_ref_null_externref and a_ref_null_funcref

Nikolay Nikolov 2 years ago
parent
commit
3b3a0a660c
3 changed files with 3 additions and 3 deletions
  1. 1 1
      compiler/wasm32/cpubase.pas
  2. 1 1
      compiler/wasm32/itcpugas.pas
  3. 1 1
      compiler/wasm32/strinst.inc

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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