* moved the insertion of the wasm locals asmlist to a local subroutine

This commit is contained in:
Nikolay Nikolov 2023-10-18 01:50:31 +03:00
parent 0e39e7c12d
commit e81cff0408

View File

@ -674,12 +674,17 @@ implementation
local.last:=true; local.last:=true;
end; end;
procedure insert_localslist(destlist,localslist: TAsmList);
begin
destlist.insertListAfter(findfirst_tai_functype(destlist),localslist);
end;
var var
localslist: TAsmList; localslist: TAsmList;
labels_resolved: Boolean; labels_resolved: Boolean;
begin begin
localslist:=prepare_locals; localslist:=prepare_locals;
aktproccode.insertListAfter(findfirst_tai_functype(aktproccode),localslist); insert_localslist(aktproccode,localslist);
localslist.Free; localslist.Free;
replace_local_frame_pointer(aktproccode); replace_local_frame_pointer(aktproccode);