Ignore:
Timestamp:
May 27, 2010, 2:45:10 PM (15 years ago)
Author:
[email protected]
Message:

2010-05-27 Nathan Lawrence <[email protected]>

Reviewed by Geoffrey Garen.

Search for the new allocation one word at a time. Improves
performance on SunSpider by approximately 1%.
http://bugs.webkit.org/show_bug.cgi?id=39758

  • runtime/Collector.cpp: (JSC::Heap::allocate):
  • runtime/Collector.h: (JSC::CollectorBitmap::advanceToNextPossibleFreeCell):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r59526 r60323  
    395395                return cell;
    396396            }
    397         } while (++m_heap.nextCell != HeapConstants::cellsPerBlock);
     397            block->marked.advanceToNextPossibleFreeCell(m_heap.nextCell);
     398        } while (m_heap.nextCell != HeapConstants::cellsPerBlock);
    398399        m_heap.nextCell = 0;
    399400    } while (++m_heap.nextBlock != m_heap.usedBlocks);
Note: See TracChangeset for help on using the changeset viewer.