Changeset 52346 in webkit for trunk/JavaScriptCore/runtime/Identifier.cpp
- Timestamp:
- Dec 18, 2009, 2:59:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Identifier.cpp
r45881 r52346 78 78 bool Identifier::equal(const UString::Rep* r, const char* s) 79 79 { 80 int length = r-> len;80 int length = r->size(); 81 81 const UChar* d = r->data(); 82 82 for (int i = 0; i != length; ++i) … … 88 88 bool Identifier::equal(const UString::Rep* r, const UChar* s, int length) 89 89 { 90 if (r-> len!= length)90 if (r->size() != length) 91 91 return false; 92 92 const UChar* d = r->data(); … … 116 116 117 117 UString::Rep* r = UString::Rep::create(d, static_cast<int>(length)).releaseRef(); 118 r-> _hash = hash;118 r->setHash(hash); 119 119 120 120 location = r; … … 181 181 182 182 UString::Rep* r = UString::Rep::create(d, buf.length).releaseRef(); 183 r-> _hash = hash;183 r->setHash(hash); 184 184 185 185 location = r; … … 214 214 { 215 215 ASSERT(!r->identifierTable()); 216 if (r-> len== 1) {216 if (r->size() == 1) { 217 217 UChar c = r->data()[0]; 218 218 if (c <= 0xFF) … … 225 225 } 226 226 } 227 if (!r-> len) {227 if (!r->size()) { 228 228 UString::Rep::empty().hash(); 229 229 return &UString::Rep::empty();
Note:
See TracChangeset
for help on using the changeset viewer.