Changeset 9145 in webkit for trunk/JavaScriptCore/kjs/object.h
- Timestamp:
- May 9, 2005, 4:57:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.h
r8453 r9145 90 90 public: 91 91 Object() { } 92 explicit Object(ObjectImp *v); 92 Object(ObjectImp *); 93 operator ObjectImp *() const { return imp(); } 93 94 94 95 ObjectImp *imp() const; … … 622 623 URIError = 6}; 623 624 625 ObjectImp *error(ExecState *exec, ErrorType type = GeneralError, 626 const char *message = 0, int lineno = -1, int sourceId = -1, const UString *sourceURL = 0); 627 624 628 /** 625 629 * @short Factory methods for error objects. … … 646 650 }; 647 651 648 inline Object::Object(ObjectImp *v) : Value(v) { } 649 650 inline ObjectImp *Object::imp() const { return static_cast<ObjectImp*>(rep); } 652 inline bool ValueImp::isObject(const ClassInfo *info) const 653 { return isObject() && static_cast<const ObjectImp *>(this)->inherits(info); } 654 655 inline ObjectImp *ValueImp::asObject() 656 { return isObject() ? static_cast<ObjectImp *>(this) : 0; } 657 658 inline Object::Object(ObjectImp *o) : Value(o) { } 659 660 inline ObjectImp *Object::imp() const 661 { return static_cast<ObjectImp *>(Value::imp()); } 651 662 652 663 inline const ClassInfo *Object::classInfo() const … … 730 741 { imp()->restoreProperties(p); } 731 742 732 } ;// namespace743 } // namespace 733 744 734 745 #endif // _KJS_OBJECT_H_
Note:
See TracChangeset
for help on using the changeset viewer.