Changeset 155219 in webkit for trunk/Source/JavaScriptCore/runtime/ClassInfo.h
- Timestamp:
- Sep 6, 2013, 3:32:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/ClassInfo.h
r154459 r155219 145 145 146 146 struct ClassInfo { 147 /** 148 * A string denoting the class name. Example: "Window". 149 */ 147 // A string denoting the class name. Example: "Window". 150 148 const char* className; 151 149 152 /** 153 * Pointer to the class information of the base class. 154 * 0L if there is none. 155 */ 150 // Pointer to the class information of the base class. 151 // nullptrif there is none. 156 152 const ClassInfo* parentClass; 157 /** 158 *Static hash-table of properties.159 * 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.160 */153 154 // Static hash-table of properties. 155 // For classes that can be used from multiple threads, it is accessed via a getter function 156 // that would typically return a pointer to a thread-specific value. 161 157 const HashTable* propHashTable(ExecState* exec) const 162 158 { 163 159 if (classPropHashTableGetterFunction) 164 return classPropHashTableGetterFunction(exec); 160 return &classPropHashTableGetterFunction(exec); 161 165 162 return staticPropHashTable; 166 163 } … … 185 182 186 183 const HashTable* staticPropHashTable; 187 typedef const HashTable *(*ClassPropHashTableGetterFunction)(ExecState*);184 typedef const HashTable& (*ClassPropHashTableGetterFunction)(ExecState*); 188 185 const ClassPropHashTableGetterFunction classPropHashTableGetterFunction; 189 186
Note:
See TracChangeset
for help on using the changeset viewer.