Ignore:
Timestamp:
Aug 10, 2016, 2:19:03 PM (9 years ago)
Author:
[email protected]
Message:

[JSC] Remove some useless code I left when rewriting CSE's large maps
https://bugs.webkit.org/show_bug.cgi?id=160720

Patch by Benjamin Poulain <[email protected]> on 2016-08-10
Reviewed by Michael Saboff.

  • dfg/DFGCSEPhase.cpp:

The maps m_worldMap && m_sideStateMap are useless. They come from the previous
iteration that had weaker constraints.

Also move m_heapMap after m_fallbackStackMap since that is the order
in which they are used in the algorithm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGCSEPhase.cpp

    r198490 r204352  
    109109    ImpureMap(ImpureMap&& other)
    110110    {
    111         m_heapMap.swap(other.m_heapMap);
    112111        m_abstractHeapStackMap.swap(other.m_abstractHeapStackMap);
    113112        m_fallbackStackMap.swap(other.m_fallbackStackMap);
     113        m_heapMap.swap(other.m_heapMap);
    114114#if !defined(NDEBUG)
    115115        m_debugImpureData.swap(other.m_debugImpureData);
     
    176176    void clear()
    177177    {
    178         m_heapMap.clear();
    179178        m_abstractHeapStackMap.clear();
    180179        m_fallbackStackMap.clear();
     180        m_heapMap.clear();
    181181#if !defined(NDEBUG)
    182182        m_debugImpureData.clear();
     
    258258    }
    259259
    260     Map m_worldMap;
    261     Map m_heapMap;
    262     Map m_sideStateMap;
    263 
    264260    // The majority of Impure Stack Slotsare unique per value.
    265261    // This is very useful for fast clobber(), we can just remove the slot addressed by AbstractHeap
     
    275271    HashMap<int32_t, std::unique_ptr<ImpureDataSlot>, DefaultHash<int32_t>::Hash, WTF::SignedWithZeroKeyHashTraits<int32_t>> m_abstractHeapStackMap;
    276272    Map m_fallbackStackMap;
     273
     274    Map m_heapMap;
    277275
    278276#if !defined(NDEBUG)
Note: See TracChangeset for help on using the changeset viewer.