Explorar o código

+ added WebAssembly invalid register check in op_reg when compiler is compiled with EXTDEBUG

git-svn-id: branches/wasm@48177 -
nickysn %!s(int64=4) %!d(string=hai) anos
pai
achega
c8e130d525
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      compiler/wasm32/aasmcpu.pas

+ 4 - 0
compiler/wasm32/aasmcpu.pas

@@ -186,6 +186,10 @@ implementation
       begin
         inherited create(op);
         ops:=1;
+{$ifdef EXTDEBUG}
+        if getregtype(_op1)=R_INVALIDREGISTER then
+          InternalError(2021011901);
+{$endif EXTDEBUG}
         loadreg(0,_op1);
       end;