Changeset 39956 in webkit for trunk/JavaScriptCore/runtime/SmallStrings.cpp
- Timestamp:
- Jan 15, 2009, 4:53:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/SmallStrings.cpp
r39815 r39956 100 100 } 101 101 } 102 102 103 unsigned SmallStrings::count() const 104 { 105 unsigned count = 0; 106 if (m_emptyString) 107 ++count; 108 for (unsigned i = 0; i < numCharactersToStore; ++i) { 109 if (m_singleCharacterStrings[i]) 110 ++count; 111 } 112 return count; 113 } 114 103 115 void SmallStrings::createEmptyString(JSGlobalData* globalData) 104 116 {
Note:
See TracChangeset
for help on using the changeset viewer.