Ignore:
Timestamp:
Sep 26, 2013, 1:44:02 PM (12 years ago)
Author:
[email protected]
Message:

Change a couple of HashMap value types from OwnPtr to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=121973

Reviewed by Andreas Kling.

Source/JavaScriptCore:

  • API/JSClassRef.cpp:

(OpaqueJSClassContextData::OpaqueJSClassContextData):
(OpaqueJSClass::contextData):

  • API/JSClassRef.h:
  • bytecode/SamplingTool.h:
  • ftl/FTLAbstractHeap.h:
  • parser/Parser.cpp:

(JSC::::parseFunctionInfo):

  • parser/SourceProviderCache.cpp:

(JSC::SourceProviderCache::add):

  • parser/SourceProviderCache.h:
  • parser/SourceProviderCacheItem.h:

(JSC::SourceProviderCacheItem::create):

  • profiler/ProfilerCompilation.cpp:

(JSC::Profiler::Compilation::executionCounterFor):
(JSC::Profiler::Compilation::toJS):

  • profiler/ProfilerCompilation.h:
  • runtime/JSGlobalObject.h:

Source/WTF:

  • wtf/RefPtrHashMap.h:

Add a missing std::forward.

  • wtf/StdLibExtras.h:

(std::make_unique):
Add more overloads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/SourceProviderCache.cpp

    r143279 r156492  
    3939}
    4040
    41 void SourceProviderCache::add(int sourcePosition, PassOwnPtr<SourceProviderCacheItem> item)
     41void SourceProviderCache::add(int sourcePosition, std::unique_ptr<SourceProviderCacheItem> item)
    4242{
    43     m_map.add(sourcePosition, item);
     43    m_map.add(sourcePosition, std::move(item));
    4444}
    4545
Note: See TracChangeset for help on using the changeset viewer.