Explorar el Código

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

Nikolay Nikolov hace 1 año
padre
commit
57aead9a14
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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  }