Changeset 184050 in webkit for trunk/Source/JavaScriptCore/runtime/PropertyNameArray.cpp
- Timestamp:
- May 10, 2015, 1:03:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/PropertyNameArray.cpp
r182406 r184050 30 30 namespace JSC { 31 31 32 void PropertyNameArray::add( StringImpl* identifier)32 void PropertyNameArray::add(AtomicStringImpl* identifier) 33 33 { 34 ASSERT(!identifier || (identifier == StringImpl::empty() || identifier->isAtomic() || identifier->isSymbol())); 35 if (!ASSERT_DISABLED) { 36 Optional<uint32_t> index = parseIndex(Identifier::fromUid(m_vm, identifier)); 37 ASSERT_UNUSED(index, !index || index.value() >= m_previouslyEnumeratedLength); 38 } 34 ASSERT(identifier); 39 35 40 if (m_alternateSet && m_alternateSet->contains(identifier)) 41 return; 42 43 if (!m_set->add(identifier).isNewEntry) 36 if (!m_set.add(identifier).isNewEntry) 44 37 return; 45 38 … … 47 40 } 48 41 49 void PropertyNameArray::setPreviouslyEnumeratedProperties(const JSPropertyNameEnumerator* enumerator)50 {51 m_alternateSet = enumerator->identifierSet();52 }53 54 42 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.