Changeset 128146 in webkit for trunk/Source/JavaScriptCore/runtime
- Timestamp:
- Sep 10, 2012, 10:05:53 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSCell.h
r128084 r128146 110 110 // Object operations, with the toObject operation included. 111 111 const ClassInfo* classInfo() const; 112 const ClassInfo* validatedClassInfo() const;113 112 const MethodTable* methodTable() const; 114 113 static void put(JSCell*, ExecState*, PropertyName, JSValue, PutPropertySlot&); … … 135 134 } 136 135 137 static ptrdiff_t classInfoOffset()138 {139 return OBJECT_OFFSETOF(JSCell, m_classInfo);140 }141 142 136 void* structureAddress() 143 137 { … … 172 166 friend class LLIntOffsetsExtractor; 173 167 174 const ClassInfo* m_classInfo;175 168 WriteBarrier<Structure> m_structure; 176 169 }; -
trunk/Source/JavaScriptCore/runtime/JSObject.h
r127202 r128146 347 347 348 348 StorageBarrier m_outOfLineStorage; 349 #if USE(JSVALUE32_64)350 void* m_padding;351 #endif352 349 }; 353 350 -
trunk/Source/JavaScriptCore/runtime/PropertyOffset.h
r123905 r128146 35 35 36 36 #if USE(JSVALUE32_64) 37 #define INLINE_STORAGE_CAPACITY 7 38 #else 37 39 #define INLINE_STORAGE_CAPACITY 6 38 #else39 #define INLINE_STORAGE_CAPACITY 540 40 #endif 41 41 -
trunk/Source/JavaScriptCore/runtime/Structure.h
r128141 r128146 555 555 } 556 556 557 inline const ClassInfo* JSCell::validatedClassInfo() const558 {559 #if ENABLE(GC_VALIDATION)560 ASSERT(m_structure.unvalidatedGet()->classInfo() == m_classInfo);561 #else562 ASSERT(m_structure->classInfo() == m_classInfo);563 #endif564 return m_classInfo;565 }566 567 557 ALWAYS_INLINE void SlotVisitor::internalAppend(JSCell* cell) 568 558 { … … 604 594 605 595 inline JSCell::JSCell(JSGlobalData& globalData, Structure* structure) 606 : m_classInfo(structure->classInfo()) 607 , m_structure(globalData, this, structure) 596 : m_structure(globalData, this, structure) 608 597 { 609 598 } … … 617 606 #endif 618 607 m_structure.setEarlyValue(globalData, this, structure); 619 m_classInfo = structure->classInfo();620 608 // Very first set of allocations won't have a real structure. 621 609 ASSERT(m_structure || !globalData.structureStructure);
Note:
See TracChangeset
for help on using the changeset viewer.