Changeset 30534 in webkit for trunk/JavaScriptCore/kjs/object.h
- Timestamp:
- Feb 23, 2008, 9:01:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.h
r29425 r30534 48 48 DontEnum = 1 << 2, // property doesn't appear in (for .. in ..) 49 49 DontDelete = 1 << 3, // property can't be deleted 50 Internal = 1 << 4, // an internal property, set to bypass checks 51 Function = 1 << 5, // property is a function - only used by static hashtables 52 GetterSetter = 1 << 6 }; // property is a getter or setter 50 Function = 1 << 4, // property is a function - only used by static hashtables 51 GetterSetter = 1 << 5 }; // property is a getter or setter 53 52 54 53 /** … … 244 243 * @param propertyValue The value to set 245 244 */ 246 virtual void put(ExecState* exec, const Identifier &propertyName, JSValue* value, int attr = None); 247 virtual void put(ExecState* exec, unsigned propertyName, JSValue* value, int attr = None); 248 249 /** 250 * Used to check whether or not a particular property is allowed to be set 251 * on an object 252 * 253 * See ECMA 8.6.2.3 254 * 255 * @param exec The current execution state 256 * @param propertyName The name of the property 257 * @return true if the property can be set, otherwise false 258 */ 259 /** 260 * Implementation of the [[CanPut]] internal property (implemented by all 261 * Objects) 262 */ 263 virtual bool canPut(ExecState *exec, const Identifier &propertyName) const; 245 virtual void put(ExecState*, const Identifier& propertyName, JSValue* value); 246 virtual void put(ExecState*, unsigned propertyName, JSValue* value); 264 247 265 248 /** … … 448 431 void restoreProperties(const SavedProperties &p) { _prop.restore(p); } 449 432 450 virtual bool isActivationObject() { return false; }433 virtual bool isActivationObject() const { return false; } 451 434 virtual bool isGlobalObject() const { return false; } 452 435
Note:
See TracChangeset
for help on using the changeset viewer.