mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:29:21 +02:00
+ introduced TWasmValidationStacks.PopVals
This commit is contained in:
parent
4d5479741d
commit
064adbf3f8
@ -97,6 +97,7 @@ uses
|
|||||||
function PopVal: TWasmBasicType;
|
function PopVal: TWasmBasicType;
|
||||||
function PopVal(expect: TWasmBasicType): TWasmBasicType;
|
function PopVal(expect: TWasmBasicType): TWasmBasicType;
|
||||||
procedure PushVals(vals: TWasmBasicTypeList);
|
procedure PushVals(vals: TWasmBasicTypeList);
|
||||||
|
function PopVals(vals: TWasmBasicTypeList): TWasmBasicTypeList;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
twasmstruc_stack = class;
|
twasmstruc_stack = class;
|
||||||
@ -490,6 +491,15 @@ uses
|
|||||||
PushVal(v);
|
PushVal(v);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TWasmValidationStacks.PopVals(vals: TWasmBasicTypeList): TWasmBasicTypeList;
|
||||||
|
var
|
||||||
|
I: Integer;
|
||||||
|
begin
|
||||||
|
SetLength(Result,Length(vals));
|
||||||
|
for I:=High(vals) downto Low(Vals) do
|
||||||
|
Result[I]:=PopVal(vals[I]);
|
||||||
|
end;
|
||||||
|
|
||||||
{ twasmstruc_stack }
|
{ twasmstruc_stack }
|
||||||
|
|
||||||
function twasmstruc_stack.Get(Index: Integer): taicpu_wasm_structured_instruction;
|
function twasmstruc_stack.Get(Index: Integer): taicpu_wasm_structured_instruction;
|
||||||
|
Loading…
Reference in New Issue
Block a user