Changeset 52762 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Jan 4, 2010, 2:49:27 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Identifier.cpp
r52346 r52762 213 213 PassRefPtr<UString::Rep> Identifier::addSlowCase(JSGlobalData* globalData, UString::Rep* r) 214 214 { 215 ASSERT(!r->i dentifierTable());215 ASSERT(!r->isIdentifier()); 216 216 if (r->size() == 1) { 217 217 UChar c = r->data()[0]; 218 218 if (c <= 0xFF) 219 219 r = globalData->smallStrings.singleCharacterStringRep(c); 220 if (r->i dentifierTable()) {220 if (r->isIdentifier()) { 221 221 #ifndef NDEBUG 222 222 checkSameIdentifierTable(globalData, r); -
trunk/JavaScriptCore/runtime/Identifier.h
r47847 r52762 93 93 static PassRefPtr<UString::Rep> add(ExecState* exec, UString::Rep* r) 94 94 { 95 if (r->i dentifierTable()) {95 if (r->isIdentifier()) { 96 96 #ifndef NDEBUG 97 97 checkSameIdentifierTable(exec, r); … … 103 103 static PassRefPtr<UString::Rep> add(JSGlobalData* globalData, UString::Rep* r) 104 104 { 105 if (r->i dentifierTable()) {105 if (r->isIdentifier()) { 106 106 #ifndef NDEBUG 107 107 checkSameIdentifierTable(globalData, r); -
trunk/JavaScriptCore/runtime/PropertyNameArray.cpp
r49734 r52762 31 31 void PropertyNameArray::add(UString::Rep* identifier) 32 32 { 33 ASSERT(identifier == &UString::Rep::null() || identifier == &UString::Rep::empty() || identifier->i dentifierTable());33 ASSERT(identifier == &UString::Rep::null() || identifier == &UString::Rep::empty() || identifier->isIdentifier()); 34 34 35 35 size_t size = m_data->propertyNameVector().size(); -
trunk/JavaScriptCore/runtime/UStringImpl.h
r52758 r52762 138 138 unsigned computedHash() const { ASSERT(m_hash); return m_hash; } // fast path for Identifiers 139 139 void setHash(unsigned hash) { ASSERT(hash == computeHash(data(), m_length)); m_hash = hash; } // fast path for Identifiers 140 bool isIdentifier() const { return m_identifierTable; } 140 141 IdentifierTable* identifierTable() const { return m_identifierTable; } 141 142 void setIdentifierTable(IdentifierTable* table) { ASSERT(!isStatic()); m_identifierTable = table; }
Note:
See TracChangeset
for help on using the changeset viewer.