Changeset 2783 in webkit for trunk/JavaScriptCore/kjs/object.h
- Timestamp:
- Nov 20, 2002, 1:12:14 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.h
r2772 r2783 370 370 */ 371 371 ObjectImp(const Object &proto); 372 ObjectImp(ObjectImp *proto); 372 373 373 374 /** … … 525 526 * It's simply a quick way to remove everything before destroying. 526 527 */ 527 void deleteAllProperties( ExecState *);528 void deleteAllProperties(ExecState *); 528 529 529 530 /** … … 572 573 Value internalValue() const; 573 574 void setInternalValue(const Value &v); 575 void setInternalValue(ValueImp *v); 574 576 575 577 Value toPrimitive(ExecState *exec, … … 580 582 Object toObject(ExecState *exec) const; 581 583 582 ValueImp* getDirect(const Identifier& propertyName) const; 584 // This get method only looks at the property map. 585 // A bit like hasProperty(recursive=false), this doesn't go to the prototype. 586 // This is used e.g. by lookupOrCreateFunction (to cache a function, we don't want 587 // to look up in the prototype, it might already exist there) 588 ValueImp *getDirect(const Identifier& propertyName) const 589 { return _prop.get(propertyName); } 590 void putDirect(const Identifier &propertyName, ValueImp *value, int attr = 0); 591 void putDirect(const Identifier &propertyName, int value, int attr = 0); 592 583 593 private: 584 594 const HashEntry* findPropertyHashEntry( const Identifier& propertyName ) const;
Note:
See TracChangeset
for help on using the changeset viewer.