⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245409 in webkit


Ignore:
Timestamp:
May 16, 2019, 3:47:52 PM (7 years ago)
Author:
Kocsen Chung
Message:

Revert "Apply patch. rdar://problem/50754976"

Location:
branches/safari-607.2.1.2-branch/Source/JavaScriptCore/bytecompiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607.2.1.2-branch/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r245404 r245409  
    17091709}
    17101710
    1711 bool BytecodeGenerator::emitEqualityOpImpl(RegisterID* dst, RegisterID* src1, RegisterID* src2)
     1711template<typename EqOp>
     1712RegisterID* BytecodeGenerator::emitEqualityOp(RegisterID* dst, RegisterID* src1, RegisterID* src2)
    17121713{
    17131714    if (!canDoPeepholeOptimization())
     
    17241725                rewind();
    17251726                OpIsUndefined::emit(this, dst, op.m_value);
    1726                 return true;
     1727                return dst;
    17271728            }
    17281729            if (value == "boolean") {
    17291730                rewind();
    17301731                OpIsBoolean::emit(this, dst, op.m_value);
    1731                 return true;
     1732                return dst;
    17321733            }
    17331734            if (value == "number") {
    17341735                rewind();
    17351736                OpIsNumber::emit(this, dst, op.m_value);
    1736                 return true;
     1737                return dst;
    17371738            }
    17381739            if (value == "string") {
    17391740                rewind();
    17401741                OpIsCellWithType::emit(this, dst, op.m_value, StringType);
    1741                 return true;
     1742                return dst;
    17421743            }
    17431744            if (value == "symbol") {
    17441745                rewind();
    17451746                OpIsCellWithType::emit(this, dst, op.m_value, SymbolType);
    1746                 return true;
     1747                return dst;
    17471748            }
    17481749            if (Options::useBigInt() && value == "bigint") {
    17491750                rewind();
    17501751                OpIsCellWithType::emit(this, dst, op.m_value, BigIntType);
    1751                 return true;
     1752                return dst;
    17521753            }
    17531754            if (value == "object") {
    17541755                rewind();
    17551756                OpIsObjectOrNull::emit(this, dst, op.m_value);
    1756                 return true;
     1757                return dst;
    17571758            }
    17581759            if (value == "function") {
    17591760                rewind();
    17601761                OpIsFunction::emit(this, dst, op.m_value);
    1761                 return true;
     1762                return dst;
    17621763            }
    17631764        }
    17641765    }
    17651766
    1766     return false;
     1767    EqOp::emit(this, dst, src1, src2);
     1768    return dst;
    17671769}
    17681770
  • branches/safari-607.2.1.2-branch/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h

    r245404 r245409  
    712712
    713713        template<typename EqOp>
    714         RegisterID* emitEqualityOp(RegisterID* dst, RegisterID* src1, RegisterID* src2)
    715         {
    716             if (!emitEqualityOpImpl(dst, src1, src2))
    717                 EqOp::emit(this, dst, src1, src2);
    718             return dst;
    719         }
    720 
    721         bool emitEqualityOpImpl(RegisterID* dst, RegisterID* src1, RegisterID* src2);
    722 
     714        RegisterID* emitEqualityOp(RegisterID* dst, RegisterID* src1, RegisterID* src2);
    723715        RegisterID* emitCreateThis(RegisterID* dst);
    724716        void emitTDZCheck(RegisterID* target);
Note: See TracChangeset for help on using the changeset viewer.