Unreviewed, rolling out r189136.
[WebKit-https.git] / Source / JavaScriptCore / assembler / MacroAssembler.h
index 5a47d70..8cc7fba 100644 (file)
@@ -112,7 +112,6 @@ public:
     using MacroAssemblerBase::pop;
     using MacroAssemblerBase::jump;
     using MacroAssemblerBase::branch32;
-    using MacroAssemblerBase::compare32;
     using MacroAssemblerBase::move;
     using MacroAssemblerBase::add32;
     using MacroAssemblerBase::and32;
@@ -330,11 +329,6 @@ public:
         return branch32(commute(cond), right, left);
     }
 
-    void compare32(RelationalCondition cond, Imm32 left, RegisterID right, RegisterID dest)
-    {
-        compare32(commute(cond), right, left, dest);
-    }
-
     void branchTestPtr(ResultCondition cond, RegisterID reg, Label target)
     {
         branchTestPtr(cond, reg).linkTo(target, this);
@@ -1515,24 +1509,6 @@ public:
         return branch32(cond, left, right.asTrustedImm32());
     }
 
-    void compare32(RelationalCondition cond, RegisterID left, Imm32 right, RegisterID dest)
-    {
-        if (shouldBlind(right)) {
-            if (haveScratchRegisterForBlinding()) {
-                loadXorBlindedConstant(xorBlindConstant(right), scratchRegisterForBlinding());
-                compare32(cond, left, scratchRegisterForBlinding(), dest);
-            }
-            // If we don't have a scratch register available for use, we'll just
-            // place a random number of nops.
-            uint32_t nopCount = random() & 3;
-            while (nopCount--)
-                nop();
-            compare32(cond, left, right.asTrustedImm32(), dest);
-        }
-
-        compare32(cond, left, right.asTrustedImm32(), dest);
-    }
-
     Jump branchAdd32(ResultCondition cond, RegisterID src, Imm32 imm, RegisterID dest)
     {
         if (src == dest)