Ignore:
Timestamp:
Apr 22, 2007, 9:10:47 PM (18 years ago)
Author:
mjs
Message:

Reviewed by Darin.


Inspired by similar changes by Christopher E. Hyde <[email protected]>
done in the kjs-tweaks branch of KDE's kjs. However, this version is somewhat
cleaner style-wise and avoids some of the negative speed impact (at least on gcc/x86)
of his version.


This is nearly a wash performance-wise, maybe a slight slowdown, but worth doing
to eventually reach cell size 32.


  • kjs/collector.cpp: (KJS::):
  • kjs/property_map.cpp: (KJS::PropertyMap::~PropertyMap): (KJS::PropertyMap::clear): (KJS::PropertyMap::get): (KJS::PropertyMap::getLocation): (KJS::PropertyMap::put): (KJS::PropertyMap::insert): (KJS::PropertyMap::expand): (KJS::PropertyMap::rehash): (KJS::PropertyMap::remove): (KJS::PropertyMap::mark): (KJS::PropertyMap::containsGettersOrSetters): (KJS::PropertyMap::getEnumerablePropertyNames): (KJS::PropertyMap::getSparseArrayPropertyNames): (KJS::PropertyMap::save): (KJS::PropertyMap::checkConsistency):
  • kjs/property_map.h: (KJS::PropertyMap::hasGetterSetterProperties): (KJS::PropertyMap::setHasGetterSetterProperties): (KJS::PropertyMap::): (KJS::PropertyMap::PropertyMap):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r21017 r21018  
    6969
    7070template<size_t bytesPerWord> struct CellSize;
    71 template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 48; }; // 32-bit
    72 template<> struct CellSize<sizeof(uint64_t)> { static const size_t m_value = 80; }; // 64-bit
     71template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 40; }; // 32-bit
     72template<> struct CellSize<sizeof(uint64_t)> { static const size_t m_value = 64; }; // 64-bit
    7373
    7474const size_t BLOCK_SIZE = (16 * 4096); // 64k
Note: See TracChangeset for help on using the changeset viewer.