소스 검색

+ support the throw instruction in the internal WebAssembly assembler writer

Nikolay Nikolov 23 시간 전
부모
커밋
6eb2be4bb7
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      compiler/wasm32/aasmcpu.pas

+ 6 - 3
compiler/wasm32/aasmcpu.pas

@@ -2589,7 +2589,8 @@ uses
                 end;
             end;
           a_legacy_catch,
-          a_legacy_throw:
+          a_legacy_throw,
+          a_throw:
             begin
               if ops<>1 then
                 internalerror(2021092709);
@@ -3583,12 +3584,14 @@ uses
                 end;
             end;
           a_legacy_catch,
-          a_legacy_throw:
+          a_legacy_throw,
+          a_throw:
             begin
               case opcode of
                 a_legacy_catch:
                   WriteByte($07);
-                a_legacy_throw:
+                a_legacy_throw,
+                a_throw:
                   WriteByte($08);
                 else
                   internalerror(2021092708);