X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=cacao.git;a=blobdiff_plain;f=src%2Fvm%2Fjit%2Fx86_64%2Fcodegen.h;h=4fa215d54d72f7cd4fed04f964900501a2edda81;hp=d5b1367df78b718b3c234efb49de5e9658238b56;hb=d1377204f560df4d6656f58914bc4d242193c5e0;hpb=9b9ebd46a1cc12643c6d2d9dc4347b038ce0adf6 diff --git a/src/vm/jit/x86_64/codegen.h b/src/vm/jit/x86_64/codegen.h index d5b1367df..4fa215d54 100644 --- a/src/vm/jit/x86_64/codegen.h +++ b/src/vm/jit/x86_64/codegen.h @@ -50,8 +50,9 @@ #define ALIGNCODENOP \ do { \ - for (s1 = 0; s1 < (s4) (((ptrint) cd->mcodeptr) & 7); s1++) \ - M_NOP; \ + int len = (-(ptrint) cd->mcodeptr) & 7; \ + if (len) \ + emit_nop(cd, len); \ } while (0) @@ -98,8 +99,7 @@ #define PATCHER_NOPS \ do { \ - M_NOP; \ - M_NOP; \ + emit_nop(cd, 2); \ } while (0)