Browse Source

* support local.get/set/tee with a const parameter in the wasm internal assembler writer

Nikolay Nikolov 2 năm trước cách đây
mục cha
commit
84186db35f
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      compiler/wasm32/aasmcpu.pas

+ 4 - 0
compiler/wasm32/aasmcpu.pas

@@ -1430,6 +1430,8 @@ uses
                         internalerror(2021092007);
                       result:=1+UlebSize(ref^.offset);
                     end;
+                  top_const:
+                    result:=1+UlebSize(val);
                   else
                     internalerror(2021092008);
                 end;
@@ -2199,6 +2201,8 @@ uses
                         internalerror(2021092007);
                       WriteUleb(ref^.offset);
                     end;
+                  top_const:
+                    WriteUleb(val);
                   else
                     internalerror(2021092008);
                 end;