[PATCH 178/188] update normalization and binary output for the new

table.id

From 3910ff460510bab5f4ec615abdb6d989cc909b04 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Wed, 8 Apr 2020 11:59:26 -0400

git-svn-id: branches/wasm@46174 -
This commit is contained in:
nickysn 2020-08-03 13:02:09 +00:00
parent cdc7401d91
commit 6a08f41442
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ begin
WriteU32(dst, module.ElementCount);
for i:=0 to module.ElementCount-1 do begin
el := module.GetElement(i);
WriteU32(dst, el.tableIdx);
WriteU32(dst, el.tableId.idNum);
WriteInstList(el.offset, sc.datapos);
WriteU32(dst, el.funcCount);

View File

@ -220,7 +220,7 @@ begin
if not Assigned(t.elem) then continue;
se:=t.elem;
de := m.AddElement;
de.tableIdx := t.id.idNum;
de.tableId.idNum := t.id.idNum;
de.funcCount:=se.funcCount;
if se.funcCount>0 then begin