Changeset 119865 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- Jun 8, 2012, 2:30:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.h
r119795 r119865 237 237 static size_t offsetOfInlineStorage(); 238 238 static size_t offsetOfPropertyStorage(); 239 static size_t offsetOfInheritorID(); 239 240 240 241 static JS_EXPORTDATA const ClassInfo s_info; … … 264 265 JSObject(JSGlobalData&, Structure*, PropertyStorage inlineStorage); 265 266 266 void resetInheritorID( JSGlobalData& globalData)267 { 268 removeDirect(globalData, globalData.m_inheritorIDKey);267 void resetInheritorID() 268 { 269 m_inheritorID.clear(); 269 270 } 270 271 … … 303 304 304 305 StorageBarrier m_propertyStorage; 305 306 #if USE(JSVALUE32_64) 307 // FIXME: keep the size of JSObject a multiple of 64-bits, so that the 308 // internal storage is aligned. We can remove this when we remove JSCell's 309 // direct ClassInfo pointer. 310 void* sixtyFourBitAlign; 311 #endif 306 WriteBarrier<Structure> m_inheritorID; 312 307 }; 313 308 … … 317 312 #define JSFinalObject_inlineStorageCapacity 6 318 313 #else 319 #define JSNonFinalObject_inlineStorageCapacity 3320 #define JSFinalObject_inlineStorageCapacity 5314 #define JSNonFinalObject_inlineStorageCapacity 2 315 #define JSFinalObject_inlineStorageCapacity 4 321 316 #endif 322 317 … … 423 418 } 424 419 420 inline size_t JSObject::offsetOfInheritorID() 421 { 422 return OBJECT_OFFSETOF(JSObject, m_inheritorID); 423 } 424 425 425 inline bool JSObject::isGlobalObject() const 426 426 { … … 515 515 inline Structure* JSObject::inheritorID(JSGlobalData& globalData) 516 516 { 517 if (WriteBarrierBase<Unknown>* location = getDirectLocation(globalData, globalData.m_inheritorIDKey)) { 518 Structure* inheritorID = jsCast<Structure*>(location->get()); 519 ASSERT(inheritorID->isEmpty()); 520 return inheritorID; 517 if (m_inheritorID) { 518 ASSERT(m_inheritorID->isEmpty()); 519 return m_inheritorID.get(); 521 520 } 522 521 return createInheritorID(globalData);
Note:
See TracChangeset
for help on using the changeset viewer.