⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181867 in webkit


Ignore:
Timestamp:
Mar 23, 2015, 1:48:18 PM (11 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.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r181841 r181867  
     12015-03-23  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Fix DO_PROPERTYMAP_CONSTENCY_CHECK enabled build
     4        https://bugs.webkit.org/show_bug.cgi?id=142952
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * runtime/Structure.cpp:
     9        (JSC::PropertyTable::checkConsistency):
     10        The check offset method doesn't exist in PropertyTable, it exists in Structure.
     11
     12        (JSC::Structure::checkConsistency):
     13        So move it here, and always put it at the start to match normal behavior.
     14
    1152015-03-22  Filip Pizlo  <fpizlo@apple.com>
    216
  • 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.