mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 16:28:24 +02:00
+ added a zero/unitialized/unknown value to TWasmBasicType: wbt_Unknown
This commit is contained in:
parent
4867d48e99
commit
03fc5d2323
@ -402,7 +402,7 @@ implementation
|
||||
InlineLevel : longint;
|
||||
do_line : boolean;
|
||||
const
|
||||
WasmBasicTypeStr : array [TWasmBasicType] of string = ('i32','i64','f32','f64','funcref','externref','v128');
|
||||
WasmBasicTypeStr : array [TWasmBasicType] of string = ('unknown','i32','i64','f32','f64','funcref','externref','v128');
|
||||
|
||||
begin
|
||||
if not assigned(p) then
|
||||
|
@ -131,6 +131,7 @@ uses
|
||||
);
|
||||
|
||||
TWasmBasicType = (
|
||||
wbt_Unknown,
|
||||
{ number types }
|
||||
wbt_i32, wbt_i64, wbt_f32, wbt_f64,
|
||||
{ reference types }
|
||||
@ -680,7 +681,7 @@ uses
|
||||
|
||||
function TWasmFuncType.ToString: ansistring;
|
||||
const
|
||||
wasm_basic_type_str : array [TWasmBasicType] of string = ('i32','i64','f32','f64','funcref','externref','v128');
|
||||
wasm_basic_type_str : array [TWasmBasicType] of string = ('unknown','i32','i64','f32','f64','funcref','externref','v128');
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
|
@ -129,7 +129,7 @@ interface
|
||||
'memory.atomic.wait32', 'memory.atomic.wait64', 'memory.atomic.notify', 'atomic.fence'
|
||||
);
|
||||
|
||||
gas_wasm_basic_type_str : array [TWasmBasicType] of string = ('i32','i64','f32','f64','funcref','externref','v128');
|
||||
gas_wasm_basic_type_str : array [TWasmBasicType] of string = ('unknown','i32','i64','f32','f64','funcref','externref','v128');
|
||||
|
||||
function gas_regname(r:Tregister):string;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user