Changeset 76399 in webkit


Ignore:
Timestamp:
Jan 21, 2011 3:24:07 PM (13 years ago)
Author:
ggaren@apple.com
Message:

2011-01-21 Geoffrey Garen <ggaren@apple.com>

Reviewed by Sam Weinig.

Moved the mark stack from global data to the heap, since it pertains
to the heap, and not the virtual machine as a whole.
https://bugs.webkit.org/show_bug.cgi?id=52930


SunSpider reports no change.

  • runtime/Heap.cpp: (JSC::Heap::Heap): (JSC::Heap::markRoots):
  • runtime/Heap.h:
  • runtime/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData):
  • runtime/JSGlobalData.h:
Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r76376 r76399  
     12011-01-21  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Moved the mark stack from global data to the heap, since it pertains
     6        to the heap, and not the virtual machine as a whole.
     7        https://bugs.webkit.org/show_bug.cgi?id=52930
     8       
     9        SunSpider reports no change.
     10
     11        * runtime/Heap.cpp:
     12        (JSC::Heap::Heap):
     13        (JSC::Heap::markRoots):
     14        * runtime/Heap.h:
     15        * runtime/JSGlobalData.cpp:
     16        (JSC::JSGlobalData::JSGlobalData):
     17        * runtime/JSGlobalData.h:
     18
    1192011-01-21  Peter Gal  <galpeter@inf.u-szeged.hu>
    220
  • trunk/Source/JavaScriptCore/runtime/Heap.cpp

    r76331 r76399  
    4242    , m_activityCallback(DefaultGCActivityCallback::create(this))
    4343    , m_globalData(globalData)
    44     , m_machineStackMarker(&globalData->heap)
     44    , m_machineStackMarker(this)
     45    , m_markStack(globalData->jsArrayVPtr)
    4546    , m_extraCost(0)
    4647{
     
    263264    m_markedSpace.clearMarkBits();
    264265
    265     MarkStack& markStack = m_globalData->markStack;
     266    MarkStack& markStack = m_markStack;
    266267    conservativeSet.mark(markStack);
    267268    markStack.drain();
  • trunk/Source/JavaScriptCore/runtime/Heap.h

    r76331 r76399  
    2323#define Heap_h
    2424
     25#include "MarkStack.h"
    2526#include "MarkedSpace.h"
    2627#include <wtf/Forward.h>
     
    132133       
    133134        MachineStackMarker m_machineStackMarker;
     135        MarkStack m_markStack;
    134136       
    135137        size_t m_extraCost;
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp

    r75443 r76399  
    144144    , dynamicGlobalObject(0)
    145145    , firstStringifierToMark(0)
    146     , markStack(jsArrayVPtr)
    147146    , cachedUTCOffset(NaN)
    148147    , maxReentryDepth(threadStackType == ThreadStackTypeSmall ? MaxSmallThreadReentryDepth : MaxLargeThreadReentryDepth)
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.h

    r76185 r76399  
    3636#include "JITStubs.h"
    3737#include "JSValue.h"
    38 #include "MarkStack.h"
    3938#include "NumericStrings.h"
    4039#include "SmallStrings.h"
     
    219218        Stringifier* firstStringifierToMark;
    220219
    221         MarkStack markStack;
    222 
    223220        double cachedUTCOffset;
    224221        DSTOffsetCache dstOffsetCache;
Note: See TracChangeset for help on using the changeset viewer.