Changeset 58851 in webkit for trunk/JavaScriptCore/wtf/text/StringImpl.h
- Timestamp:
- May 5, 2010, 6:08:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/text/StringImpl.h
r58712 r58851 224 224 bool hasTerminatingNullCharacter() const { return m_refCountAndFlags & s_refCountFlagHasTerminatingNullCharacter; } 225 225 226 bool inTable() const { return m_refCountAndFlags & s_refCountFlagInTable; } 227 void setInTable() { m_refCountAndFlags |= s_refCountFlagInTable; } 226 bool isAtomic() const { return m_refCountAndFlags & s_refCountFlagIsAtomic; } 227 void setIsAtomic(bool isIdentifier) 228 { 229 ASSERT(!isStatic()); 230 if (isIdentifier) 231 m_refCountAndFlags |= s_refCountFlagIsAtomic; 232 else 233 m_refCountAndFlags &= ~s_refCountFlagIsAtomic; 234 } 228 235 229 236 unsigned hash() const { if (!m_hash) m_hash = computeHash(m_data, m_length); return m_hash; }
Note:
See TracChangeset
for help on using the changeset viewer.