Changeset 76399 in webkit
- Timestamp:
- Jan 21, 2011 3:24:07 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r76376 r76399 1 2011-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 1 19 2011-01-21 Peter Gal <galpeter@inf.u-szeged.hu> 2 20 -
trunk/Source/JavaScriptCore/runtime/Heap.cpp
r76331 r76399 42 42 , m_activityCallback(DefaultGCActivityCallback::create(this)) 43 43 , m_globalData(globalData) 44 , m_machineStackMarker(&globalData->heap) 44 , m_machineStackMarker(this) 45 , m_markStack(globalData->jsArrayVPtr) 45 46 , m_extraCost(0) 46 47 { … … 263 264 m_markedSpace.clearMarkBits(); 264 265 265 MarkStack& markStack = m_ globalData->markStack;266 MarkStack& markStack = m_markStack; 266 267 conservativeSet.mark(markStack); 267 268 markStack.drain(); -
trunk/Source/JavaScriptCore/runtime/Heap.h
r76331 r76399 23 23 #define Heap_h 24 24 25 #include "MarkStack.h" 25 26 #include "MarkedSpace.h" 26 27 #include <wtf/Forward.h> … … 132 133 133 134 MachineStackMarker m_machineStackMarker; 135 MarkStack m_markStack; 134 136 135 137 size_t m_extraCost; -
trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp
r75443 r76399 144 144 , dynamicGlobalObject(0) 145 145 , firstStringifierToMark(0) 146 , markStack(jsArrayVPtr)147 146 , cachedUTCOffset(NaN) 148 147 , maxReentryDepth(threadStackType == ThreadStackTypeSmall ? MaxSmallThreadReentryDepth : MaxLargeThreadReentryDepth) -
trunk/Source/JavaScriptCore/runtime/JSGlobalData.h
r76185 r76399 36 36 #include "JITStubs.h" 37 37 #include "JSValue.h" 38 #include "MarkStack.h"39 38 #include "NumericStrings.h" 40 39 #include "SmallStrings.h" … … 219 218 Stringifier* firstStringifierToMark; 220 219 221 MarkStack markStack;222 223 220 double cachedUTCOffset; 224 221 DSTOffsetCache dstOffsetCache;
Note: See TracChangeset
for help on using the changeset viewer.