Bug 996715 - Remove the code that bails when determining if the second instruction in a chunk is a branch. r=dougc, a=lmandel
authorMarty Rosenberg <mrosenberg@mozilla.com>
Tue, 27 May 2014 09:40:35 -0400
changeset 192402 23cc851c112bd94b92e26e47beb0c69397cef796
parent 192401 3512c7ff3a7a35e0961d0697a4ae194a3103fc68
child 192403 e6e4abc426a0c7600aab110b8b3325ef5110d156
push id3604
push userryanvm@gmail.com
push dateWed, 28 May 2014 16:22:57 +0000
treeherdermozilla-beta@5ac65440631d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougc, lmandel
bugs996715
milestone30.0
Bug 996715 - Remove the code that bails when determining if the second instruction in a chunk is a branch. r=dougc, a=lmandel
js/src/jit/shared/IonAssemblerBufferWithConstantPools.h
--- a/js/src/jit/shared/IonAssemblerBufferWithConstantPools.h
+++ b/js/src/jit/shared/IonAssemblerBufferWithConstantPools.h
@@ -216,17 +216,17 @@ struct BufferSliceTail : public BufferSl
         memset(&isBranch[0], 0, sizeof(isBranch));
     }
     void markNextAsBranch() {
         int idx = this->nodeSize / InstBaseSize;
         isBranch[idx >> 3] |= 1 << (idx & 0x7);
     }
     bool isNextBranch() {
         unsigned int size = this->nodeSize;
-        if (size == InstBaseSize || size >= SliceSize)
+        if (size >= SliceSize)
             return false;
         int idx = size / InstBaseSize;
         return (isBranch[idx >> 3] >> (idx & 0x7)) & 1;
     }
 };
 
 #if 0
 static int getId() {