Changeset 28110 in webkit for trunk/JavaScriptCore/kjs/property_map.cpp
- Timestamp:
- Nov 28, 2007, 5:12:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/property_map.cpp
r28106 r28110 623 623 } 624 624 625 void PropertyMap::markChildren(MarkStack& stack) const 626 { 627 if (!m_usingTable) { 628 #if USE_SINGLE_ENTRY 629 if (m_singleEntryKey) 630 stack.push(m_u.singleEntryValue); 625 void PropertyMap::mark() const 626 { 627 if (!m_usingTable) { 628 #if USE_SINGLE_ENTRY 629 if (m_singleEntryKey) { 630 JSValue* v = m_u.singleEntryValue; 631 if (!v->marked()) 632 v->mark(); 633 } 631 634 #endif 632 635 return; … … 634 637 635 638 unsigned entryCount = m_u.table->keyCount + m_u.table->deletedSentinelCount; 636 for (unsigned i = 1; i <= entryCount; i++) 637 stack.push(m_u.table->entries()[i].value); 639 for (unsigned i = 1; i <= entryCount; i++) { 640 JSValue* v = m_u.table->entries()[i].value; 641 if (!v->marked()) 642 v->mark(); 643 } 638 644 } 639 645
Note:
See TracChangeset
for help on using the changeset viewer.