Changeset 139491 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Jan 11, 2013, 1:33:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r134555 r139491 219 219 220 220 if (propertyName == exec->propertyNames().prototype) { 221 WriteBarrierBase<Unknown>* location = thisObject->getDirectLocation(exec->globalData(), propertyName); 222 223 if (!location) { 221 PropertyOffset offset = thisObject->getDirectOffset(exec->globalData(), propertyName); 222 if (!isValidOffset(offset)) { 224 223 JSObject* prototype = constructEmptyObject(exec, thisObject->globalObject()->emptyObjectStructure()); 225 224 prototype->putDirect(exec->globalData(), exec->propertyNames().constructor, thisObject, DontEnum); 226 225 thisObject->putDirect(exec->globalData(), exec->propertyNames().prototype, prototype, DontDelete | DontEnum); 227 location = thisObject->getDirectLocation(exec->globalData(), exec->propertyNames().prototype); 228 } 229 230 slot.setValue(thisObject, location->get(), thisObject->offsetForLocation(location)); 226 offset = thisObject->getDirectOffset(exec->globalData(), exec->propertyNames().prototype); 227 ASSERT(isValidOffset(offset)); 228 } 229 230 slot.setValue(thisObject, thisObject->getDirect(offset), offset); 231 231 } 232 232
Note:
See TracChangeset
for help on using the changeset viewer.