Bug 518775 - Remove unused Windows x64 code of Nativei386.cpp. r=gal
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 28 Sep 2009 18:27:21 +0900
changeset 33540 920bc62ca39c80d96a937dc5bfa29fbb7d4444c3
parent 33539 54bc1f6a31efc8c6f5cc8e63d76566955738f3a6
child 33541 fb92e8e990cedcf31eb83c7393c0c7ad120b04fc
push idunknown
push userunknown
push dateunknown
reviewersgal
bugs518775
milestone1.9.3a1pre
Bug 518775 - Remove unused Windows x64 code of Nativei386.cpp. r=gal
js/src/nanojit/Nativei386.cpp
--- a/js/src/nanojit/Nativei386.cpp
+++ b/js/src/nanojit/Nativei386.cpp
@@ -260,22 +260,16 @@ namespace nanojit
     #ifdef WIN32
         _asm
         {
             mov ecx, regs
             bsf eax, set                    // i = first bit set
             btr RegAlloc::free[ecx], eax    // free &= ~rmask(i)
             mov r, eax
         }
-    #elif defined WIN64
-        unsigned long tr, fr;
-        _BitScanForward(&tr, set);
-        _bittestandreset(&fr, tr);
-        regs.free = fr;
-        r = tr;
     #else
         asm(
             "bsf    %1, %%eax\n\t"
             "btr    %%eax, %2\n\t"
             "movl   %%eax, %0\n\t"
             : "=m"(r) : "m"(set), "m"(regs.free) : "%eax", "memory" );
     #endif /* WIN32 */
         return r;