Changeset 64319 in webkit


Ignore:
Timestamp:
Jul 29, 2010 4:19:31 PM (14 years ago)
Author:
barraclough@apple.com
Message:

Changed MINIMUM_CELL_SIZE to be fixed at 64 bytes.

Patch by Michael Saboff <msaboff@apple.com> on 2010-07-29
Reviewed by Darin Adler.

  • runtime/Collector.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r64313 r64319  
     12010-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
    192010-07-28  Dumitru Daniliuc  <dumi@chromium.org>
    210
  • trunk/JavaScriptCore/runtime/Collector.h

    r62367 r64319  
    186186
    187187    // 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.cpp
    191 #if USE(JSVALUE32)
    192     template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 32; };
    193 #else
    194     template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 64; };
    195 #endif
    196     template<> struct CellSize<sizeof(uint64_t)> { static const size_t m_value = 64; };
    197 
    198188#if OS(WINCE) || OS(SYMBIAN)
    199189    const size_t BLOCK_SIZE = 64 * 1024; // 64k
     
    205195    const size_t BLOCK_OFFSET_MASK = BLOCK_SIZE - 1;
    206196    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;
    208198    const size_t CELL_ARRAY_LENGTH = (MINIMUM_CELL_SIZE / sizeof(double)) + (MINIMUM_CELL_SIZE % sizeof(double) != 0 ? sizeof(double) : 0);
    209199    const size_t CELL_SIZE = CELL_ARRAY_LENGTH * sizeof(double);
Note: See TracChangeset for help on using the changeset viewer.