Bläddra i källkod

* generate an internal error, instead of warning for i32.const and
i64.const instructions with an unknown parameter

Nikolay Nikolov 3 år sedan
förälder
incheckning
0486caeb91
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      compiler/wasm32/aasmcpu.pas

+ 2 - 2
compiler/wasm32/aasmcpu.pas

@@ -552,7 +552,7 @@ uses
                   top_const:
                   top_const:
                     result:=1+SlebSize(val);
                     result:=1+SlebSize(val);
                   else
                   else
-                    Writeln('Warning! Not implemented opcode, pass1: ', opcode, ' ', typ);
+                    internalerror(2021092615);
                 end;
                 end;
             end;
             end;
           a_local_get,
           a_local_get,
@@ -1046,7 +1046,7 @@ uses
                   top_const:
                   top_const:
                     WriteSleb(val);
                     WriteSleb(val);
                   else
                   else
-                    Writeln('Warning! Not implemented opcode, pass2: ', opcode, ' ', typ);
+                    internalerror(2021092615);
                 end;
                 end;
             end;
             end;
           a_local_get,
           a_local_get,