Changeset 36789 in webkit for trunk/JavaScriptCore/kjs/StructureID.cpp
- Timestamp:
- Sep 22, 2008, 7:44:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StructureID.cpp
r36756 r36789 50 50 } 51 51 52 static bool structureIDChainsAreEqual(StructureIDChain* chainA, StructureIDChain* chainB)53 {54 if (!chainA || !chainB)55 return false;56 57 RefPtr<StructureID>* a = chainA->head();58 RefPtr<StructureID>* b = chainB->head();59 while (1) {60 if (*a != *b)61 return false;62 if (!*a)63 return true;64 a++;65 b++;66 }67 }68 69 52 void StructureID::getEnumerablePropertyNames(ExecState* exec, PropertyNameArray& propertyNames, JSObject* baseObject) 70 53 { … … 105 88 chain = createCachedPrototypeChain(); 106 89 m_cachedPropertyNameArrayData->setCachedPrototypeChain(chain); 90 m_cachedPropertyNameArrayData->setCachedStructureID(this); 107 91 } 108 92 } … … 236 220 } 237 221 222 bool structureIDChainsAreEqual(StructureIDChain* chainA, StructureIDChain* chainB) 223 { 224 if (!chainA || !chainB) 225 return false; 226 227 RefPtr<StructureID>* a = chainA->head(); 228 RefPtr<StructureID>* b = chainB->head(); 229 while (1) { 230 if (*a != *b) 231 return false; 232 if (!*a) 233 return true; 234 a++; 235 b++; 236 } 237 } 238 238 239 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.