patch-js_src_nanojit_NativeX64_cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $OpenBSD: patch-js_src_nanojit_NativeX64_cpp,v 1.2 2015/07/19 02:06:30 ajacoutot Exp $
  2. Allows debug build on !i386.
  3. --- js/src/nanojit/NativeX64.cpp.orig Tue Oct 26 23:24:13 2010
  4. +++ js/src/nanojit/NativeX64.cpp Tue Oct 26 23:28:39 2010
  5. @@ -1388,9 +1388,9 @@ namespace nanojit
  6. // really do need a page break
  7. verbose_only(if (_logc->lcbits & LC_Assembly) outputf("newpage %p:", pc);)
  8. if (_inExit)
  9. - codeAlloc(exitStart, exitEnd, _nIns);
  10. + codeAlloc(exitStart, exitEnd, _nIns verbose_only(, exitBytes));
  11. else
  12. - codeAlloc(codeStart, codeEnd, _nIns);
  13. + codeAlloc(codeStart, codeEnd, _nIns verbose_only(, codeBytes));
  14. }
  15. // now emit the jump, but make sure we won't need another page break.
  16. // we're pedantic, but not *that* pedantic.
  17. @@ -1402,9 +1402,9 @@ namespace nanojit
  18. if (pc - bytes < top) {
  19. verbose_only(if (_logc->lcbits & LC_Assembly) outputf("newpage %p:", pc);)
  20. if (_inExit)
  21. - codeAlloc(exitStart, exitEnd, _nIns);
  22. + codeAlloc(exitStart, exitEnd, _nIns verbose_only(, exitBytes));
  23. else
  24. - codeAlloc(codeStart, codeEnd, _nIns);
  25. + codeAlloc(codeStart, codeEnd, _nIns verbose_only(, codeBytes));
  26. // this jump will call underrunProtect again, but since we're on a new
  27. // page, nothing will happen.
  28. JMP(pc);
  29. @@ -1418,11 +1418,11 @@ namespace nanojit
  30. void Assembler::nativePageSetup() {
  31. if (!_nIns) {
  32. - codeAlloc(codeStart, codeEnd, _nIns);
  33. + codeAlloc(codeStart, codeEnd, _nIns verbose_only(, codeBytes));
  34. IF_PEDANTIC( pedanticTop = _nIns; )
  35. }
  36. if (!_nExitIns) {
  37. - codeAlloc(exitStart, exitEnd, _nExitIns);
  38. + codeAlloc(exitStart, exitEnd, _nExitIns verbose_only(, exitBytes));
  39. }
  40. }