|
@@ -103,7 +103,7 @@ interface
|
|
public
|
|
public
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
|
|
|
|
- function AddFuncType(wft: TWasmFuncType): integer;
|
|
|
|
|
|
+ function AddOrGetFuncType(wft: TWasmFuncType): integer;
|
|
property Count: Integer read GetCount;
|
|
property Count: Integer read GetCount;
|
|
property Items[Index: Integer]: TWasmFuncType read GetItem; default;
|
|
property Items[Index: Integer]: TWasmFuncType read GetItem; default;
|
|
end;
|
|
end;
|
|
@@ -492,7 +492,7 @@ implementation
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
- function TWasmFuncTypeTable.AddFuncType(wft: TWasmFuncType): integer;
|
|
|
|
|
|
+ function TWasmFuncTypeTable.AddOrGetFuncType(wft: TWasmFuncType): integer;
|
|
var
|
|
var
|
|
i: Integer;
|
|
i: Integer;
|
|
begin
|
|
begin
|
|
@@ -785,7 +785,7 @@ implementation
|
|
|
|
|
|
function TWasmObjData.AddFuncType(wft: TWasmFuncType): integer;
|
|
function TWasmObjData.AddFuncType(wft: TWasmFuncType): integer;
|
|
begin
|
|
begin
|
|
- Result:=FFuncTypes.AddFuncType(wft);
|
|
|
|
|
|
+ Result:=FFuncTypes.AddOrGetFuncType(wft);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TWasmObjData.globalref(asmsym: TAsmSymbol): TObjSymbol;
|
|
function TWasmObjData.globalref(asmsym: TAsmSymbol): TObjSymbol;
|