Skip to content
  • barraclough@apple.com's avatar
    https://bugs.webkit.org/show_bug.cgi?id=120139 · 61ff98cd
    barraclough@apple.com authored
    PropertyDescriptor argument to define methods should be const
    
    Rubber stamped by Sam Weinig.
    
    This should never be modified, and this way we can use rvalues.
    
    Source/JavaScriptCore: 
    
    * debugger/DebuggerActivation.cpp:
    (JSC::DebuggerActivation::defineOwnProperty):
    * debugger/DebuggerActivation.h:
    * runtime/Arguments.cpp:
    (JSC::Arguments::defineOwnProperty):
    * runtime/Arguments.h:
    * runtime/ClassInfo.h:
    * runtime/JSArray.cpp:
    (JSC::JSArray::defineOwnProperty):
    * runtime/JSArray.h:
    * runtime/JSArrayBuffer.cpp:
    (JSC::JSArrayBuffer::defineOwnProperty):
    * runtime/JSArrayBuffer.h:
    * runtime/JSArrayBufferView.cpp:
    (JSC::JSArrayBufferView::defineOwnProperty):
    * runtime/JSArrayBufferView.h:
    * runtime/JSCell.cpp:
    (JSC::JSCell::defineOwnProperty):
    * runtime/JSCell.h:
    * runtime/JSFunction.cpp:
    (JSC::JSFunction::defineOwnProperty):
    * runtime/JSFunction.h:
    * runtime/JSGenericTypedArrayView.h:
    * runtime/JSGenericTypedArrayViewInlines.h:
    (JSC::::defineOwnProperty):
    * runtime/JSGlobalObject.cpp:
    (JSC::JSGlobalObject::defineOwnProperty):
    * runtime/JSGlobalObject.h:
    * runtime/JSObject.cpp:
    (JSC::JSObject::putIndexedDescriptor):
    (JSC::JSObject::defineOwnIndexedProperty):
    (JSC::putDescriptor):
    (JSC::JSObject::defineOwnNonIndexProperty):
    (JSC::JSObject::defineOwnProperty):
    * runtime/JSObject.h:
    * runtime/JSProxy.cpp:
    (JSC::JSProxy::defineOwnProperty):
    * runtime/JSProxy.h:
    * runtime/RegExpMatchesArray.h:
    (JSC::RegExpMatchesArray::defineOwnProperty):
    * runtime/RegExpObject.cpp:
    (JSC::RegExpObject::defineOwnProperty):
    * runtime/RegExpObject.h:
    * runtime/StringObject.cpp:
    (JSC::StringObject::defineOwnProperty):
    * runtime/StringObject.h:
        - make PropertyDescriptor const
    
    Source/WebCore: 
    
    * bindings/js/JSDOMWindowCustom.cpp:
    (WebCore::JSDOMWindow::defineOwnProperty):
    * bindings/js/JSLocationCustom.cpp:
    (WebCore::JSLocation::defineOwnProperty):
    (WebCore::JSLocationPrototype::defineOwnProperty):
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateHeader):
        - make PropertyDescriptor const
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154422 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    61ff98cd