Ignore:
Timestamp:
Aug 15, 2005, 11:47:49 AM (20 years ago)
Author:
darin
Message:

Reviewed by Geoff.

  • kjs/collector.cpp: (KJS::Collector::allocate): Use a local instead of a global in one more place; slight speedup.
File:
1 edited

Legend:

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

    r10179 r10197  
    147147
    148148    int numBlocks = heap.numBlocks;
    149     if (usedBlocks == heap.numBlocks) {
     149    if (usedBlocks == numBlocks) {
    150150      numBlocks = max(MIN_ARRAY_SIZE, numBlocks * GROWTH_FACTOR);
    151151      heap.numBlocks = numBlocks;
Note: See TracChangeset for help on using the changeset viewer.