Преглед на файлове

+ added const sets for the WebAssembly reference, numeric and vector types

Nikolay Nikolov преди 1 година
родител
ревизия
57aead9a14
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      compiler/wasm32/cpubase.pas

+ 4 - 0
compiler/wasm32/cpubase.pas

@@ -157,6 +157,10 @@ uses
       op2strtable=array[tasmop] of string[31];
 
     Const
+      WasmNumberTypes = [wbt_i32, wbt_i64, wbt_f32, wbt_f64];
+      WasmReferenceTypes = [wbt_funcref, wbt_externref];
+      WasmVectorTypes = [wbt_v128];
+
       {# First value of opcode enumeration }
       firstop = low(tasmop);
       {# Last value of opcode enumeration  }