+ support load/store with op_const

This commit is contained in:
Nikolay Nikolov 2021-09-26 08:15:04 +03:00
parent 7e9607a62c
commit 9e0c028142

View File

@ -675,6 +675,12 @@ uses
UlebSize(ref^.offset);
end;
end;
top_const:
begin
Result:=1+
UlebSize(natural_alignment_for_load_store(opcode))+
UlebSize(val);
end;
else
internalerror(2021092017);
end;
@ -1334,6 +1340,11 @@ uses
WriteUleb(ref^.offset);
end;
end;
top_const:
begin
WriteUleb(natural_alignment_for_load_store(opcode));
WriteUleb(val);
end;
else
internalerror(2021092017);
end;