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 199344 44bc3af856a4b4202864f9ed27aae1028d601b95
parent 199343 4059390acc463059c9b9177e00574f39d0d6a37a
child 199345 18bd62a3aa7a8003ebebd8fa145e4268a410ff49
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougc, lmandel
bugs996715
milestone31.0a2
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() {