Forráskód Böngészése

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

Nikolay Nikolov 1 éve
szülő
commit
57aead9a14
1 módosított fájl, 4 hozzáadás és 0 törlés
  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  }