Changeset 99357 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Nov 5, 2011, 1:29:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.