• andersca@apple.com's avatar
    Stop using PassWeak · c21b1344
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=121968
    
    Reviewed by Sam Weinig.
    
    Source/JavaScriptCore:
    
    * heap/Weak.h:
    Remove all knowledge of PassWeak.
    
    (JSC::Weak::Weak):
    These constructors don't need to be explicit.
    
    * heap/WeakInlines.h:
    (JSC::weakAdd):
    Change Value to be an rvalue reference and use std::forward.
    
    * jit/JITThunks.cpp:
    (JSC::JITThunks::hostFunctionStub):
    Remove PassWeak.
    
    * runtime/RegExpCache.cpp:
    (JSC::RegExpCache::lookupOrCreate):
    Use Weak instead of PassWeak.
    
    * runtime/SimpleTypedArrayController.cpp:
    Change add and set to take Weak by value and std::move into place.
    
    * runtime/WeakGCMap.h:
    (JSC::WeakGCMap::get):
    (JSC::WeakGCMap::set):
    (JSC::WeakGCMap::add):
    
    Source/WebCore:
    
    Update for JavaScriptCore changes.
    
    * bindings/js/JSDOMBinding.h:
    (WebCore::setInlineCachedWrapper):
    (WebCore::cacheWrapper):
    * bindings/js/JSEventListener.cpp:
    (WebCore::JSEventListener::JSEventListener):
    * bindings/js/JSEventListener.h:
    (WebCore::JSEventListener::setWrapper):
    (WebCore::JSEventListener::jsFunction):
    * bindings/js/JSMutationCallback.cpp:
    (WebCore::JSMutationCallback::JSMutationCallback):
    * bindings/js/JSNodeFilterCondition.cpp:
    (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
    * bindings/js/ScriptWrappableInlines.h:
    (WebCore::ScriptWrappable::setWrapper):
    * bindings/js/WebCoreTypedArrayController.cpp:
    * bridge/jsc/BridgeJSC.cpp:
    (JSC::Bindings::Instance::createRuntimeObject):
    * bridge/runtime_root.cpp:
    (JSC::Bindings::RootObject::addRuntimeObject):
    
    Source/WebKit2:
    
    Update for JavaScriptCore changes.
    
    * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
    (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c21b1344
RegExpCache.cpp 3.09 KB