Changeset 64319 in webkit
- Timestamp:
- Jul 29, 2010 4:19:31 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r64313 r64319 1 2010-07-29 Michael Saboff <msaboff@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Changed MINIMUM_CELL_SIZE to be fixed at 64 bytes. 6 7 * runtime/Collector.h: 8 1 9 2010-07-28 Dumitru Daniliuc <dumi@chromium.org> 2 10 -
trunk/JavaScriptCore/runtime/Collector.h
r62367 r64319 186 186 187 187 // tunable parameters 188 template<size_t bytesPerWord> struct CellSize;189 190 // cell size needs to be a power of two for certain optimizations in collector.cpp191 #if USE(JSVALUE32)192 template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 32; };193 #else194 template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 64; };195 #endif196 template<> struct CellSize<sizeof(uint64_t)> { static const size_t m_value = 64; };197 198 188 #if OS(WINCE) || OS(SYMBIAN) 199 189 const size_t BLOCK_SIZE = 64 * 1024; // 64k … … 205 195 const size_t BLOCK_OFFSET_MASK = BLOCK_SIZE - 1; 206 196 const size_t BLOCK_MASK = ~BLOCK_OFFSET_MASK; 207 const size_t MINIMUM_CELL_SIZE = CellSize<sizeof(void*)>::m_value;197 const size_t MINIMUM_CELL_SIZE = 64; 208 198 const size_t CELL_ARRAY_LENGTH = (MINIMUM_CELL_SIZE / sizeof(double)) + (MINIMUM_CELL_SIZE % sizeof(double) != 0 ? sizeof(double) : 0); 209 199 const size_t CELL_SIZE = CELL_ARRAY_LENGTH * sizeof(double);
Note: See TracChangeset
for help on using the changeset viewer.