Browse Source

* fixed some WebAssembly instruction names in the wasm_op2str array

Nikolay Nikolov 1 year ago
parent
commit
0c61c7057a
1 changed files with 4 additions and 3 deletions
  1. 4 3
      compiler/wasm32/strinst.inc

+ 4 - 3
compiler/wasm32/strinst.inc

@@ -22,11 +22,12 @@
 
 
         '<none>',
         '<none>',
         // control flow
         // control flow
-        'block', 'loop', 'br', 'br_if', 'br_table', 'if', 'else', 'end', 'end', 'end', '',
+        'block', 'loop', 'br', 'br_if', 'br_table', 'if', 'else', 'end' {block},
+        'end' {loop}, 'end' {if}, '' {end function},
         'return', 'unreachable',
         'return', 'unreachable',
         // basic
         // basic
         'nop', 'drop', 'i32.const', 'i64.const', 'f32.const', 'f64.const',
         'nop', 'drop', 'i32.const', 'i64.const', 'f32.const', 'f64.const',
-        'get_local', 'set_local', 'tee_local', 'get_global', 'set_global',
+        'local.get', 'local.set', 'local.tee', 'global.get', 'global.set',
         'select', 'call', 'call_indirect',
         'select', 'call', 'call_indirect',
         // integer
         // integer
         'i32.add', 'i64.add', 'i32.sub', 'i64.sub', 'i32.mul', 'i64.mul',
         'i32.add', 'i64.add', 'i32.sub', 'i64.sub', 'i32.mul', 'i64.mul',
@@ -83,7 +84,7 @@
         'i64.trunc_sat_f64_s',
         'i64.trunc_sat_f64_s',
         'i64.trunc_sat_f64_u',
         'i64.trunc_sat_f64_u',
         // exceptions
         // exceptions
-        'try','catch','catch_all','delegate','throw','rethrow','end',
+        'try','catch','catch_all','delegate','throw','rethrow','end' {try},
         // atomic memory accesses - load/store
         // atomic memory accesses - load/store
         'i32.atomic.load8_u', 'i32.atomic.load16_u', 'i32.atomic.load',
         'i32.atomic.load8_u', 'i32.atomic.load16_u', 'i32.atomic.load',
         'i64.atomic.load8_u', 'i64.atomic.load16_u', 'i64.atomic.load32_u',
         'i64.atomic.load8_u', 'i64.atomic.load16_u', 'i64.atomic.load32_u',