Changeset 70111 in webkit for trunk/JavaScriptCore/runtime/Collector.cpp
- Timestamp:
- Oct 19, 2010, 4:55:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r67683 r70111 643 643 COMPILE_ASSERT(sizeof(CollectorCell) % 2 == 0, Collector_cell_size_is_power_of_two); 644 644 645 #if USE(JSVALUE32) 646 static bool isHalfCellAligned(void *p) 647 { 648 return (((intptr_t)(p) & (CELL_MASK >> 1)) == 0); 645 static inline bool isCellAligned(void *p) 646 { 647 return (((intptr_t)(p) & CELL_MASK) == 0); 649 648 } 650 649 651 650 static inline bool isPossibleCell(void* p) 652 651 { 653 return isHalfCellAligned(p) && p;654 }655 656 #else657 658 static inline bool isCellAligned(void *p)659 {660 return (((intptr_t)(p) & CELL_MASK) == 0);661 }662 663 static inline bool isPossibleCell(void* p)664 {665 652 return isCellAligned(p) && p; 666 653 } 667 #endif // USE(JSVALUE32)668 654 669 655 void Heap::markConservatively(MarkStack& markStack, void* start, void* end) … … 1146 1132 if (cell->isString()) 1147 1133 return "string"; 1148 #if USE(JSVALUE32)1149 if (cell->isNumber())1150 return "number";1151 #endif1152 1134 if (cell->isGetterSetter()) 1153 1135 return "Getter-Setter";
Note:
See TracChangeset
for help on using the changeset viewer.