Browse Source

[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 <[email protected]>
Date: Wed, 8 Apr 2020 11:59:26 -0400

git-svn-id: branches/wasm@46174 -

nickysn 5 years ago
parent
commit
6a08f41442
2 changed files with 2 additions and 2 deletions
  1. 1 1
      utils/wasmbin/wasmbinwriter.pas
  2. 1 1
      utils/wasmbin/wasmnormalize.pas

+ 1 - 1
utils/wasmbin/wasmbinwriter.pas

@@ -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);
 

+ 1 - 1
utils/wasmbin/wasmnormalize.pas

@@ -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