mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 23:59:10 +02:00
[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:
parent
cdc7401d91
commit
6a08f41442
@ -514,7 +514,7 @@ begin
|
|||||||
WriteU32(dst, module.ElementCount);
|
WriteU32(dst, module.ElementCount);
|
||||||
for i:=0 to module.ElementCount-1 do begin
|
for i:=0 to module.ElementCount-1 do begin
|
||||||
el := module.GetElement(i);
|
el := module.GetElement(i);
|
||||||
WriteU32(dst, el.tableIdx);
|
WriteU32(dst, el.tableId.idNum);
|
||||||
WriteInstList(el.offset, sc.datapos);
|
WriteInstList(el.offset, sc.datapos);
|
||||||
WriteU32(dst, el.funcCount);
|
WriteU32(dst, el.funcCount);
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ begin
|
|||||||
if not Assigned(t.elem) then continue;
|
if not Assigned(t.elem) then continue;
|
||||||
se:=t.elem;
|
se:=t.elem;
|
||||||
de := m.AddElement;
|
de := m.AddElement;
|
||||||
de.tableIdx := t.id.idNum;
|
de.tableId.idNum := t.id.idNum;
|
||||||
|
|
||||||
de.funcCount:=se.funcCount;
|
de.funcCount:=se.funcCount;
|
||||||
if se.funcCount>0 then begin
|
if se.funcCount>0 then begin
|
||||||
|
Loading…
Reference in New Issue
Block a user