Changeset 99357 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Nov 5, 2011, 1:29:01 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r99333 r99357 1 2011-11-04 Sam Weinig <[email protected]> 2 3 Reduce the number of putWithAttributes 4 https://bugs.webkit.org/show_bug.cgi?id=71597 5 6 Reviewed by Adam Roben. 7 8 * JavaScriptCore.exp: 9 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: 10 Remove exports of removed functions. 11 12 * runtime/JSActivation.cpp: 13 (JSC::JSActivation::putWithAttributes): 14 Calling the overload without the extra parameters does the same thing. 15 16 * runtime/JSObject.cpp: 17 (JSC::JSObject::putWithAttributes): 18 * runtime/JSObject.h: 19 Remove four unused JSObject::putWithAttributes overloads and make one of the remaining 20 two overloads not virtual, since no one overrides it. 21 1 22 2011-11-04 Pratik Solanki <[email protected]> 2 23 -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r99312 r99357 317 317 __ZN3JSC8JSObject17preventExtensionsERNS_12JSGlobalDataE 318 318 __ZN3JSC8JSObject17putWithAttributesEPNS_12JSGlobalDataERKNS_10IdentifierENS_7JSValueEj 319 __ZN3JSC8JSObject17putWithAttributesEPNS_12JSGlobalDataERKNS_10IdentifierENS_7JSValueEjbRNS_15PutPropertySlotE320 __ZN3JSC8JSObject17putWithAttributesEPNS_12JSGlobalDataEjNS_7JSValueEj321 319 __ZN3JSC8JSObject17putWithAttributesEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueEj 322 __ZN3JSC8JSObject17putWithAttributesEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueEjbRNS_15PutPropertySlotE323 __ZN3JSC8JSObject17putWithAttributesEPNS_9ExecStateEjNS_7JSValueEj324 320 __ZN3JSC8JSObject19getOwnPropertyNamesEPS0_PNS_9ExecStateERNS_17PropertyNameArrayENS_15EnumerationModeE 325 321 __ZN3JSC8JSObject21deletePropertyByIndexEPNS_6JSCellEPNS_9ExecStateEj -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def
r99312 r99357 271 271 ?putWithAttributes@JSGlobalObject@JSC@@UAEXPAVExecState@2@ABVIdentifier@2@VJSValue@2@I@Z 272 272 ?putWithAttributes@JSObject@JSC@@UAEXPAVExecState@2@ABVIdentifier@2@VJSValue@2@I@Z 273 ?putWithAttributes@JSObject@JSC@@UAEXPAVExecState@2@ABVIdentifier@2@VJSValue@2@I_NAAVPutPropertySlot@2@@Z274 ?putWithAttributes@JSObject@JSC@@UAEXPAVExecState@2@IVJSValue@2@I@Z275 273 ?putWithAttributes@JSObject@JSC@@UAEXPAVJSGlobalData@2@ABVIdentifier@2@VJSValue@2@I@Z 276 ?putWithAttributes@JSObject@JSC@@UAEXPAVJSGlobalData@2@ABVIdentifier@2@VJSValue@2@I_NAAVPutPropertySlot@2@@Z277 ?putWithAttributes@JSObject@JSC@@UAEXPAVJSGlobalData@2@IVJSValue@2@I@Z278 274 ?randomNumber@WTF@@YANXZ 279 275 ?recompileAllJSFunctions@Debugger@JSC@@QAEXPAVJSGlobalData@2@@Z -
trunk/Source/JavaScriptCore/runtime/JSActivation.cpp
r99126 r99357 193 193 // expose in the activation object. 194 194 ASSERT(!hasGetterSetterProperties()); 195 PutPropertySlot slot; 196 JSObject::putWithAttributes(exec, propertyName, value, attributes, true, slot); 195 JSObject::putWithAttributes(exec, propertyName, value, attributes); 197 196 } 198 197 -
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r99312 r99357 201 201 } 202 202 203 void JSObject::putWithAttributes(JSGlobalData* globalData, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot) 204 { 205 putDirectInternal(*globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction(value)); 203 void JSObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes) 204 { 205 PutPropertySlot slot; 206 putDirectInternal(exec->globalData(), propertyName, value, attributes, true, slot, getJSFunction(value)); 206 207 } 207 208 … … 210 211 PutPropertySlot slot; 211 212 putDirectInternal(*globalData, propertyName, value, attributes, true, slot, getJSFunction(value)); 212 }213 214 void JSObject::putWithAttributes(JSGlobalData* globalData, unsigned propertyName, JSValue value, unsigned attributes)215 {216 putWithAttributes(globalData, Identifier::from(globalData, propertyName), value, attributes);217 }218 219 void JSObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot)220 {221 JSGlobalData& globalData = exec->globalData();222 putDirectInternal(globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction(value));223 }224 225 void JSObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes)226 {227 PutPropertySlot slot;228 JSGlobalData& globalData = exec->globalData();229 putDirectInternal(globalData, propertyName, value, attributes, true, slot, getJSFunction(value));230 }231 232 void JSObject::putWithAttributes(ExecState* exec, unsigned propertyName, JSValue value, unsigned attributes)233 {234 putWithAttributes(exec, Identifier::from(exec, propertyName), value, attributes);235 213 } 236 214 -
trunk/Source/JavaScriptCore/runtime/JSObject.h
r99312 r99357 107 107 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue); 108 108 109 virtual void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot); 110 virtual void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue value, unsigned attributes); 111 virtual void putWithAttributes(JSGlobalData*, unsigned propertyName, JSValue value, unsigned attributes); 112 virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot); 113 virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes); 114 virtual void putWithAttributes(ExecState*, unsigned propertyName, JSValue value, unsigned attributes); 109 virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue, unsigned attributes); 110 void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue, unsigned attributes); 115 111 116 112 bool propertyIsEnumerable(ExecState*, const Identifier& propertyName) const;
Note:
See TracChangeset
for help on using the changeset viewer.