Changeset 177130 in webkit for trunk/Source/JavaScriptCore/heap
- Timestamp:
- Dec 10, 2014, 9:31:04 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore/heap
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/CopiedBlock.h
r164448 r177130 33 33 #include "Options.h" 34 34 #include <wtf/Atomics.h> 35 #include <wtf/OwnPtr.h>36 #include <wtf/PassOwnPtr.h>37 35 38 36 namespace JSC { … … 95 93 96 94 SpinLock m_workListLock; 97 OwnPtr<CopyWorkList> m_workList;95 std::unique_ptr<CopyWorkList> m_workList; 98 96 99 97 size_t m_remaining; … … 155 153 m_isPinned = false; 156 154 if (m_workList) 157 m_workList .clear();155 m_workList = nullptr; 158 156 } 159 157 … … 186 184 m_isPinned = true; 187 185 if (m_workList) 188 m_workList .clear();186 m_workList = nullptr; 189 187 } 190 188 -
trunk/Source/JavaScriptCore/heap/CopiedBlockInlines.h
r166375 r177130 63 63 64 64 if (!m_workList) 65 m_workList = adoptPtr(new CopyWorkList(Heap::heap(owner)->blockAllocator()));65 m_workList = std::make_unique<CopyWorkList>(Heap::heap(owner)->blockAllocator()); 66 66 67 67 m_workList->append(CopyWorklistItem(owner, token)); -
trunk/Source/JavaScriptCore/heap/GCActivityCallback.h
r165940 r177130 31 31 32 32 #include "HeapTimer.h" 33 #include <wtf/OwnPtr.h>34 33 #include <wtf/PassRefPtr.h> 35 34 -
trunk/Source/JavaScriptCore/heap/GCThread.cpp
r163844 r177130 33 33 #include "SlotVisitor.h" 34 34 #include <wtf/MainThread.h> 35 #include <wtf/PassOwnPtr.h>36 35 37 36 namespace JSC { -
trunk/Source/JavaScriptCore/heap/Heap.h
r176424 r177130 354 354 ProtectCountSet m_protectedValues; 355 355 Vector<Vector<ValueStringPair, 0, UnsafeVectorOverflow>*> m_tempSortingVectors; 356 OwnPtr<HashSet<MarkedArgumentBuffer*>> m_markListSet;356 std::unique_ptr<HashSet<MarkedArgumentBuffer*>> m_markListSet; 357 357 358 358 MachineThreads m_machineThreads; -
trunk/Source/JavaScriptCore/heap/HeapInlines.h
r170774 r177130 287 287 { 288 288 if (!m_markListSet) 289 m_markListSet = adoptPtr(new HashSet<MarkedArgumentBuffer*>);289 m_markListSet = std::make_unique<HashSet<MarkedArgumentBuffer*>>(); 290 290 return *m_markListSet; 291 291 }
Note:
See TracChangeset
for help on using the changeset viewer.