From 57aead9a1487bf0d0f60110780e5b73408bd23d8 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Sun, 24 Dec 2023 16:13:37 +0200 Subject: [PATCH] + added const sets for the WebAssembly reference, numeric and vector types --- compiler/wasm32/cpubase.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/wasm32/cpubase.pas b/compiler/wasm32/cpubase.pas index 4e79ed637d..7dbc3aecd1 100644 --- a/compiler/wasm32/cpubase.pas +++ b/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 }