Răsfoiți Sursa

+ added the memory.init and data.drop instructions

Nikolay Nikolov 3 ani în urmă
părinte
comite
e2eadc51a3

+ 1 - 1
compiler/wasm32/cpubase.pas

@@ -85,7 +85,7 @@ uses
       // additional memory
       a_memory_grow, a_memory_size,
       // bulk memory operations
-      a_memory_copy, a_memory_fill,
+      a_memory_copy, a_memory_fill, a_memory_init, a_data_drop,
       // exceptions
       a_try,a_catch,a_catch_all,a_delegate,a_throw,a_rethrow,a_end_try,
       // atomic memory accesses - load/store

+ 1 - 1
compiler/wasm32/itcpugas.pas

@@ -84,7 +84,7 @@ interface
       // additional memory
       'memory.grow 0', 'memory.size 0',
       // bulk memory operations
-      'memory.copy 0,0', 'memory.fill 0',
+      'memory.copy 0,0', 'memory.fill 0', 'memory.init', 'data.drop',
       // exceptions
       'try','catch','catch_all','delegate','throw','rethrow','end_try',
       // atomic memory accesses - load/store

+ 1 - 1
compiler/wasm32/strinst.inc

@@ -68,7 +68,7 @@
         // additional memory
         'grow_memory', 'current_memory',
         // bulk memory operations
-        'memory.copy', 'memory.fill',
+        'memory.copy', 'memory.fill', 'memory.init', 'data.drop',
         // exceptions
         'try','catch','catch_all','delegate','throw','rethrow','end',
         // atomic memory accesses - load/store