Explorar el Código

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

Nikolay Nikolov hace 2 años
padre
commit
bf8d1747af
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;