From 6e929c1385b9af2e1f0af82969bcce83c431acc5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 4 Sep 2009 14:50:16 -0700 Subject: [PATCH] Fixed codeAlloc misuse in x64 backend (bug 513842 followup, r=gal). --- js/src/nanojit/NativeX64.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/nanojit/NativeX64.cpp b/js/src/nanojit/NativeX64.cpp index 707a1f0bfe0..9001cc02a6e 100644 --- a/js/src/nanojit/NativeX64.cpp +++ b/js/src/nanojit/NativeX64.cpp @@ -1292,7 +1292,7 @@ namespace nanojit // really do need a page break verbose_only(if (_logc->lcbits & LC_Assembly) outputf("newpage %p:", pc);) if (_inExit) - codeAlloc(exitStart, exitEnd, _nExitIns); + codeAlloc(exitStart, exitEnd, _nIns); else codeAlloc(codeStart, codeEnd, _nIns); } @@ -1306,7 +1306,7 @@ namespace nanojit if (pc - bytes < top) { verbose_only(if (_logc->lcbits & LC_Assembly) outputf("newpage %p:", pc);) if (_inExit) - codeAlloc(exitStart, exitEnd, _nExitIns); + codeAlloc(exitStart, exitEnd, _nIns); else codeAlloc(codeStart, codeEnd, _nIns); // this jump will call underrunProtect again, but since we're on a new