Ignore:
Timestamp:
Jun 23, 2009, 7:47:48 PM (16 years ago)
Author:
[email protected]
Message:

<rdar://problem/6992806> REGRESSION: Enumeration can skip new properties in cases of prototypes that have more than 64 (26593)
<https://bugs.webkit.org/show_bug.cgi?id=26593>

Reviewed by Gavin Barraclough.

Add tests to ensure we correctly invalidate caching that depends on structure chains
that include dictionaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/StructureChain.cpp

    r44224 r45039  
    4747}
    4848
     49bool StructureChain::isCacheable() const
     50{
     51    uint32_t i = 0;
     52   
     53    while (m_vector[i]) {
     54        if (m_vector[i++]->isDictionary())
     55            return false;
     56    }
     57    return true;
     58}
     59
    4960} // namespace JSC
Note: See TracChangeset for help on using the changeset viewer.