Ignore:
Timestamp:
Mar 23, 2015, 1:48:18 PM (10 years ago)
Author:
Joseph Pecoraro
Message:

Fix DO_PROPERTYMAP_CONSTENCY_CHECK enabled build
https://bugs.webkit.org/show_bug.cgi?id=142952

Reviewed by Geoffrey Garen.

  • runtime/Structure.cpp:

(JSC::PropertyTable::checkConsistency):
The check offset method doesn't exist in PropertyTable, it exists in Structure.

(JSC::Structure::checkConsistency):
So move it here, and always put it at the start to match normal behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Structure.cpp

    r181297 r181867  
    829829#endif
    830830
    831 #if !DO_PROPERTYMAP_CONSTENCY_CHECK
    832 
    833 inline void Structure::checkConsistency()
    834 {
    835     checkOffsetConsistency();
    836 }
    837 
    838 #endif
    839 
    840831PropertyTable* Structure::copyPropertyTable(VM& vm)
    841832{
     
    11341125void PropertyTable::checkConsistency()
    11351126{
    1136     checkOffsetConsistency();
    11371127    ASSERT(m_indexSize >= PropertyTable::MinimumTableSize);
    11381128    ASSERT(m_indexMask);
     
    11921182void Structure::checkConsistency()
    11931183{
     1184    checkOffsetConsistency();
     1185
    11941186    if (!propertyTable())
    11951187        return;
     
    12031195
    12041196    propertyTable()->checkConsistency();
     1197}
     1198
     1199#else
     1200
     1201inline void Structure::checkConsistency()
     1202{
     1203    checkOffsetConsistency();
    12051204}
    12061205
Note: See TracChangeset for help on using the changeset viewer.