[PATCH 143/188] splitting normalization between function reference

number

From 523144777fd5df98f3b40962d7c1a7729adc39a5 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Wed, 25 Mar 2020 11:59:02 -0400

git-svn-id: branches/wasm@46139 -
This commit is contained in:
nickysn 2020-08-03 13:01:37 +00:00
parent 39c720778f
commit 49e71fe739

View File

@ -1050,11 +1050,16 @@ begin
f.idNum := fnIdx;
NormalizeFuncType(m, f.functype);
inc(fnIdx);
end;
// normalizing function body
for i:=0 to m.FuncCount-1 do begin
f:=m.GetFunc(i);
// finding the reference in functions
// populating "nums" where string "index" is used
NormalizeInst(m, f, f.instr);
inc(fnIdx);
end;
// normalizing exports