Browse Source

[PATCH 134/188] adding legacy memory.size instruction

From f8b32d8a1d7ce9b86c30266416eb9a9b14d53ee1 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Tue, 24 Mar 2020 16:38:09 -0400

git-svn-id: branches/wasm@46130 -
nickysn 5 years ago
parent
commit
6feb5c24f6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/wasmbin/wasmtext.pas

+ 1 - 0
utils/wasmbin/wasmtext.pas

@@ -433,6 +433,7 @@ begin
   'c':
   'c':
     if t = 'call'          then inst := inst_call
     if t = 'call'          then inst := inst_call
     else if t = 'call_indirect' then inst := inst_call_indirect
     else if t = 'call_indirect' then inst := inst_call_indirect
+    else if t = 'current_memory' then inst := INST_memory_size
     else Result := false;
     else Result := false;
   'd':
   'd':
     if t = 'drop' then inst := inst_drop
     if t = 'drop' then inst := inst_drop