Browse Source

+ WebAssembly internal assembler support for the ref.is_null instruction

Nikolay Nikolov 2 years ago
parent
commit
a0b78ad1f7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/wasm32/aasmcpu.pas

+ 4 - 1
compiler/wasm32/aasmcpu.pas

@@ -570,7 +570,8 @@ uses
           a_end_if,
           a_end_loop,
           a_end_try,
-          a_catch_all:
+          a_catch_all,
+          a_ref_is_null:
             result:=1;
           a_i32_trunc_sat_f32_s,
           a_i32_trunc_sat_f32_u,
@@ -2003,6 +2004,8 @@ uses
               WriteByte($D0);
               WriteByte($6F);
             end;
+          a_ref_is_null:
+            WriteByte($D1);
           else
             internalerror(2021092624);
         end;