kiss_null-fix.patch 679 B

123456789101112131415
  1. From https://github.com/ehawkvu/kiss-xorg
  2. diff --git a/platform/js/src/jit/x64/BaseAssembler-x641.h b/platform/js/src/jit/x64/BaseAssembler-x64.h
  3. index bf9ca9f..9d78a11 100644
  4. --- a/platform/js/src/jit/x64/BaseAssembler-x641.h
  5. +++ b/platform/js/src/jit/x64/BaseAssembler-x64.h
  6. @@ -592,6 +592,8 @@ class BaseAssemblerX64 : public BaseAssembler
  7. void movq_mr(int32_t offset, RegisterID base, RegisterID index, int scale, RegisterID dst)
  8. {
  9. + if (!GPReg64Name(index))
  10. + return;
  11. spew("movq " MEM_obs ", %s", ADDR_obs(offset, base, index, scale), GPReg64Name(dst));
  12. m_formatter.oneByteOp64(OP_MOV_GvEv, offset, base, index, scale, dst);
  13. }