Ignore:
Timestamp:
Sep 27, 2021, 12:33:18 PM (4 years ago)
Author:
[email protected]
Message:

Unreviewed, reverting r283102, r283103 and r283104.
https://bugs.webkit.org/show_bug.cgi?id=230854

It regresses JetStream2 on iOS devices

Reverted changesets:

"Build an unlinked baseline JIT"
https://bugs.webkit.org/show_bug.cgi?id=229223
https://commits.webkit.org/r283102

"Unreviewed, fix CLoop build"
https://bugs.webkit.org/show_bug.cgi?id=229223
https://commits.webkit.org/r283103

"Unreviewed, fix CLoop build part 2"
https://bugs.webkit.org/show_bug.cgi?id=229223
https://commits.webkit.org/r283104

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JITCompilationKey.h

    r283102 r283129  
    3131namespace JSC {
    3232
    33 class JSCell;
     33class CodeBlock;
     34class CodeBlockSet;
    3435
    3536class JITCompilationKey {
    3637public:
    3738    JITCompilationKey()
    38         : m_codeBlock(nullptr)
     39        : m_profiledBlock(nullptr)
    3940        , m_mode(JITCompilationMode::InvalidCompilation)
    4041    {
     
    4243   
    4344    JITCompilationKey(WTF::HashTableDeletedValueType)
    44         : m_codeBlock(nullptr)
     45        : m_profiledBlock(nullptr)
    4546        , m_mode(JITCompilationMode::DFG)
    4647    {
    4748    }
    4849   
    49     JITCompilationKey(JSCell* profiledBlock, JITCompilationMode mode)
    50         : m_codeBlock(profiledBlock)
     50    JITCompilationKey(CodeBlock* profiledBlock, JITCompilationMode mode)
     51        : m_profiledBlock(profiledBlock)
    5152        , m_mode(mode)
    5253    {
     
    5556    bool operator!() const
    5657    {
    57         return !m_codeBlock && m_mode == JITCompilationMode::InvalidCompilation;
     58        return !m_profiledBlock && m_mode == JITCompilationMode::InvalidCompilation;
    5859    }
    5960   
    6061    bool isHashTableDeletedValue() const
    6162    {
    62         return !m_codeBlock && m_mode != JITCompilationMode::InvalidCompilation;
     63        return !m_profiledBlock && m_mode != JITCompilationMode::InvalidCompilation;
    6364    }
    6465   
     66    CodeBlock* profiledBlock() const { return m_profiledBlock; }
    6567    JITCompilationMode mode() const { return m_mode; }
    6668   
    6769    bool operator==(const JITCompilationKey& other) const
    6870    {
    69         return m_codeBlock == other.m_codeBlock
     71        return m_profiledBlock == other.m_profiledBlock
    7072            && m_mode == other.m_mode;
    7173    }
     
    7375    unsigned hash() const
    7476    {
    75         return WTF::pairIntHash(WTF::PtrHash<JSCell*>::hash(m_codeBlock), static_cast<std::underlying_type<JITCompilationMode>::type>(m_mode));
     77        return WTF::pairIntHash(WTF::PtrHash<CodeBlock*>::hash(m_profiledBlock), static_cast<std::underlying_type<JITCompilationMode>::type>(m_mode));
    7678    }
    7779   
     
    7981
    8082private:
    81     // Either CodeBlock* or UnlinkedCodeBlock* for basleline JIT.
    82     JSCell* m_codeBlock;
     83    CodeBlock* m_profiledBlock;
    8384    JITCompilationMode m_mode;
    8485};
Note: See TracChangeset for help on using the changeset viewer.