Changeset 175443 in webkit for trunk/Source/JavaScriptCore/heap/Heap.cpp
- Timestamp:
- Oct 31, 2014, 5:26:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Heap.cpp
r174789 r175443 255 255 class RecordType { 256 256 public: 257 typedef PassOwnPtr<TypeCountSet> ReturnType;257 typedef std::unique_ptr<TypeCountSet> ReturnType; 258 258 259 259 RecordType(); … … 263 263 private: 264 264 const char* typeName(JSCell*); 265 OwnPtr<TypeCountSet> m_typeCountSet;265 std::unique_ptr<TypeCountSet> m_typeCountSet; 266 266 }; 267 267 268 268 inline RecordType::RecordType() 269 : m_typeCountSet( adoptPtr(new TypeCountSet))269 : m_typeCountSet(std::make_unique<TypeCountSet>()) 270 270 { 271 271 } … … 284 284 } 285 285 286 inline PassOwnPtr<TypeCountSet> RecordType::returnValue()287 { 288 return m_typeCountSet.release();286 inline std::unique_ptr<TypeCountSet> RecordType::returnValue() 287 { 288 return WTF::move(m_typeCountSet); 289 289 } 290 290 … … 862 862 } 863 863 864 PassOwnPtr<TypeCountSet> Heap::protectedObjectTypeCounts()864 std::unique_ptr<TypeCountSet> Heap::protectedObjectTypeCounts() 865 865 { 866 866 return forEachProtectedCell<RecordType>(); 867 867 } 868 868 869 PassOwnPtr<TypeCountSet> Heap::objectTypeCounts()869 std::unique_ptr<TypeCountSet> Heap::objectTypeCounts() 870 870 { 871 871 HeapIterationScope iterationScope(*this);
Note:
See TracChangeset
for help on using the changeset viewer.