Changeset 36286 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Sep 9, 2008, 12:58:53 AM (17 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/MathObject.cpp
r36263 r36286 107 107 108 108 ASSERT(entry->attributes & Function); 109 s lot.setStaticEntry(this, entry, staticFunctionGetter);109 setUpStaticFunctionSlot(exec, entry, this, propertyName, slot); 110 110 return true; 111 111 } -
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 } -
trunk/JavaScriptCore/kjs/lookup.h
r36264 r36286 146 146 147 147 if (entry->attributes & Function) 148 s lot.setStaticEntry(thisObj, entry, staticFunctionGetter);148 setUpStaticFunctionSlot(exec, entry, thisObj, propertyName, slot); 149 149 else 150 150 slot.setStaticEntry(thisObj, entry, staticValueGetter<ThisImp>);
Note:
See TracChangeset
for help on using the changeset viewer.