Changeset 53341 in webkit for trunk/JavaScriptCore/runtime/Operations.h
- Timestamp:
- Jan 15, 2010, 12:48:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Operations.h
r52182 r53341 340 340 } 341 341 342 inline size_t normalizePrototypeChain(CallFrame* callFrame, JSValue base, JSValue slotBase )342 inline size_t normalizePrototypeChain(CallFrame* callFrame, JSValue base, JSValue slotBase, const Identifier& propertyName, size_t& slotOffset) 343 343 { 344 344 JSCell* cell = asCell(base); … … 358 358 // Since we're accessing a prototype in a loop, it's a good bet that it 359 359 // should not be treated as a dictionary. 360 if (cell->structure()->isDictionary()) 360 if (cell->structure()->isDictionary()) { 361 361 asObject(cell)->flattenDictionaryObject(); 362 if (slotBase == cell) 363 slotOffset = cell->structure()->get(propertyName); 364 } 362 365 363 366 ++count;
Note:
See TracChangeset
for help on using the changeset viewer.