Changeset 32652 in webkit for trunk/JavaScriptCore/kjs/object.h
- Timestamp:
- Apr 28, 2008, 11:22:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.h
r32587 r32652 66 66 /** 67 67 * Static hash-table of properties. 68 */ 69 const HashTable* propHashTable; 68 * For classes that can be used from multiple threads, it is accessed via a getter function that would typically return a pointer to thread-specific value. 69 */ 70 const HashTable* propHashTable(ExecState* exec) const 71 { 72 if (classPropHashTableGetterFunction) 73 return classPropHashTableGetterFunction(exec); 74 return staticPropHashTable; 75 } 76 77 const HashTable* staticPropHashTable; 78 typedef const HashTable* (*ClassPropHashTableGetterFunction)(ExecState*); 79 const ClassPropHashTableGetterFunction classPropHashTableGetterFunction; 70 80 }; 71 81 … … 146 156 * 147 157 * \code 148 * const ClassInfo BarImp::info = { "Bar", 0, 0 }; // no parent class149 * const ClassInfo FooImp::info = { "Foo", &BarImp::info, 0 };158 * const ClassInfo BarImp::info = { "Bar", 0, 0, 0 }; // no parent class 159 * const ClassInfo FooImp::info = { "Foo", &BarImp::info, 0, 0 }; 150 160 * \endcode 151 161 * … … 410 420 virtual JSGlobalObject* toGlobalObject(ExecState*) const; 411 421 412 virtual bool getPropertyAttributes( const Identifier& propertyName, unsigned& attributes) const;422 virtual bool getPropertyAttributes(ExecState*, const Identifier& propertyName, unsigned& attributes) const; 413 423 414 424 // WebCore uses this to make document.all and style.filter undetectable … … 444 454 445 455 private: 446 const HashEntry* findPropertyHashEntry( const Identifier& propertyName) const;456 const HashEntry* findPropertyHashEntry(ExecState*, const Identifier& propertyName) const; 447 457 JSValue *_proto; 448 458 };
Note:
See TracChangeset
for help on using the changeset viewer.