Bug 996715 - Remove the code that bails when determining if the second instruction in a chunk is a branch. r=dougc, a=1.2.x+
authorMarty Rosenberg <mrosenberg@mozilla.com>
Tue, 27 May 2014 09:40:35 -0400
changeset 157142 d2b20f54d7e58fe21086c7bdf5e5146438800538
parent 157141 f19a72c9d1c8b395c148596206d226a56bd6c10a
child 157143 8f952940d1c1478d0aeeaa6152e90c7ce0fd888f
push id513
push userryanvm@gmail.com
push dateWed, 28 May 2014 16:14:32 +0000
reviewersdougc, 1
bugs996715
milestone26.0
Bug 996715 - Remove the code that bails when determining if the second instruction in a chunk is a branch. r=dougc, a=1.2.x+
js/src/jit/shared/IonAssemblerBufferWithConstantPools.h
--- a/js/src/jit/shared/IonAssemblerBufferWithConstantPools.h
+++ b/js/src/jit/shared/IonAssemblerBufferWithConstantPools.h
@@ -215,18 +215,16 @@ struct BufferSliceTail : public BufferSl
     BufferSliceTail() : data(NULL), isNatural(true) {
         memset(isBranch, 0, sizeof(isBranch));
     }
     void markNextAsBranch() {
         int idx = this->nodeSize / InstBaseSize;
         isBranch[idx >> 3] |= 1 << (idx & 0x7);
     }
     bool isNextBranch() {
-        if (this->nodeSize == InstBaseSize)
-            return false;
         int idx = this->nodeSize / InstBaseSize;
         return (isBranch[idx >> 3] >> (idx & 0x7)) & 1;
     }
 };
 
 #if 0
 static int getId() {
     if (MaybeGetIonContext())