Changeset 36286 in webkit for trunk/JavaScriptCore/kjs/lookup.cpp
- Timestamp:
- Sep 9, 2008, 12:58:53 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/lookup.cpp
r36263 r36286 73 73 { 74 74 ASSERT(entry->attributes & Function); 75 PrototypeFunction* function = new (exec) PrototypeFunction(exec, entry->length, propertyName, entry->functionValue); 76 thisObj->putDirect(propertyName, function, entry->attributes); 75 JSValue** location = thisObj->getDirectLocation(propertyName); 76 77 if (!location) { 78 PrototypeFunction* function = new (exec) PrototypeFunction(exec, entry->length, propertyName, entry->functionValue); 79 thisObj->putDirect(propertyName, function, entry->attributes); 80 location = thisObj->getDirectLocation(propertyName); 81 } 77 82 78 JSValue** location = thisObj->getDirectLocation(propertyName);79 83 slot.setValueSlot(thisObj, location, thisObj->offsetForLocation(location)); 80 84 }
Note:
See TracChangeset
for help on using the changeset viewer.