浏览代码

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