Changeset 257237 in webkit


Ignore:
Timestamp:
Feb 24, 2020 1:18:35 PM (4 years ago)
Author:
ysuzuki@apple.com
Message:

Unreviewed, fix watchOS build
https://bugs.webkit.org/show_bug.cgi?id=207827

While watchOS does not use FTL at all, it still compiles.

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::compileObjectKeys):
(JSC::FTL::DFG::LowerDFGToB3::compileCreatePromise):
(JSC::FTL::DFG::LowerDFGToB3::compileCreateInternalFieldObject):
(JSC::FTL::DFG::LowerDFGToB3::compileCheckSubClass):
(JSC::FTL::DFG::LowerDFGToB3::loadStructureClassInfo):
(JSC::FTL::DFG::LowerDFGToB3::loadStructureCachedPrototypeChainOrRareData):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r257212 r257237  
     12020-02-24  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Unreviewed, fix watchOS build
     4        https://bugs.webkit.org/show_bug.cgi?id=207827
     5
     6        While watchOS does not use FTL at all, it still compiles.
     7
     8        * ftl/FTLLowerDFGToB3.cpp:
     9        (JSC::FTL::DFG::LowerDFGToB3::compileObjectKeys):
     10        (JSC::FTL::DFG::LowerDFGToB3::compileCreatePromise):
     11        (JSC::FTL::DFG::LowerDFGToB3::compileCreateInternalFieldObject):
     12        (JSC::FTL::DFG::LowerDFGToB3::compileCheckSubClass):
     13        (JSC::FTL::DFG::LowerDFGToB3::loadStructureClassInfo):
     14        (JSC::FTL::DFG::LowerDFGToB3::loadStructureCachedPrototypeChainOrRareData):
     15
    1162020-02-24  Yusuke Suzuki  <ysuzuki@apple.com>
    217
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

    r257201 r257237  
    60926092                LValue object = lowObject(m_node->child1());
    60936093                LValue structure = loadStructure(object);
    6094                 LValue cachedPrototypeChainOrRareData = m_out.bitAnd(m_out.constIntPtr(Structure::cachedPrototypeChainOrRareDataMask), m_out.loadPtr(structure, m_heaps.Structure_cachedPrototypeChainOrRareData));
     6094                LValue cachedPrototypeChainOrRareData = loadStructureCachedPrototypeChainOrRareData(structure);
    60956095                m_out.branch(m_out.notNull(cachedPrototypeChainOrRareData), unsure(notNullCase), unsure(slowCase));
    60966096
     
    66766676
    66776677        m_out.appendTo(hasStructure, checkGlobalObjectCase);
    6678         LValue classInfo = m_out.bitAnd(m_out.loadPtr(structure, m_heaps.Structure_classInfo), m_out.constIntPtr(Structure::classInfoMask));
     6678        LValue classInfo = loadStructureClassInfo(structure);
    66796679        m_out.branch(m_out.equal(classInfo, m_out.constIntPtr(m_node->isInternalPromise() ? JSInternalPromise::info() : JSPromise::info())), usually(checkGlobalObjectCase), rarely(slowCase));
    66806680
     
    67326732
    67336733        m_out.appendTo(hasStructure, checkGlobalObjectCase);
    6734         LValue classInfo = m_out.bitAnd(m_out.loadPtr(structure, m_heaps.Structure_classInfo), m_out.constIntPtr(Structure::classInfoMask));
     6734        LValue classInfo = loadStructureClassInfo(structure);
    67356735        m_out.branch(m_out.equal(classInfo, m_out.constIntPtr(JSClass::info())), usually(checkGlobalObjectCase), rarely(slowCase));
    67366736
     
    1321113211
    1321213212            LValue structure = loadStructure(cell);
    13213             LValue classInfo = m_out.bitAnd(m_out.loadPtr(structure, m_heaps.Structure_classInfo), m_out.constIntPtr(Structure::classInfoMask));
     13213            LValue classInfo = loadStructureClassInfo(structure);
    1321413214            ValueFromBlock otherAtStart = m_out.anchor(classInfo);
    1321513215            m_out.jump(loop);
     
    1822018220    }
    1822118221
     18222    LValue loadStructureClassInfo(LValue structure)
     18223    {
     18224        LValue result = m_out.loadPtr(structure, m_heaps.Structure_classInfo);
     18225#if CPU(ADDRESS64)
     18226        return m_out.bitAnd(m_out.constIntPtr(Structure::classInfoMask), result);
     18227#else
     18228        return result;
     18229#endif
     18230    }
     18231
     18232    LValue loadStructureCachedPrototypeChainOrRareData(LValue structure)
     18233    {
     18234        LValue result = m_out.loadPtr(structure, m_heaps.Structure_cachedPrototypeChainOrRareData);
     18235#if CPU(ADDRESS64)
     18236        return m_out.bitAnd(m_out.constIntPtr(Structure::cachedPrototypeChainOrRareDataMask), result);
     18237#else
     18238        return result;
     18239#endif
     18240    }
     18241
    1822218242    LValue weakPointer(JSCell* pointer)
    1822318243    {
Note: See TracChangeset for help on using the changeset viewer.