Ignore:
Timestamp:
Dec 25, 2013, 4:29:42 PM (12 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r161033 and r161074.
http://trac.webkit.org/changeset/161033
http://trac.webkit.org/changeset/161074
https://bugs.webkit.org/show_bug.cgi?id=126240

Oliver says that a rollout would be better (Requested by ap on
#webkit).

Source/JavaScriptCore:

  • API/JSObjectRef.cpp:

(JSObjectSetProperty):

  • dfg/DFGOperations.cpp:

(JSC::DFG::operationPutByValInternal):

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::execute):

  • jit/JITOperations.cpp:
  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::LLINT_SLOW_PATH_DECL):

  • runtime/Arguments.cpp:

(JSC::Arguments::putByIndex):

  • runtime/ArrayPrototype.cpp:

(JSC::putProperty):
(JSC::arrayProtoFuncPush):

  • runtime/JSCJSValue.cpp:

(JSC::JSValue::putToPrimitiveByIndex):

  • runtime/JSCell.cpp:

(JSC::JSCell::putByIndex):

  • runtime/JSFunction.cpp:

(JSC::JSFunction::put):

  • runtime/JSGenericTypedArrayViewInlines.h:

(JSC::JSGenericTypedArrayView<Adaptor>::putByIndex):

  • runtime/JSONObject.cpp:

(JSC::Walker::walk):

  • runtime/JSObject.cpp:

(JSC::JSObject::putByIndex):
(JSC::JSObject::putDirectNonIndexAccessor):
(JSC::JSObject::deleteProperty):

  • runtime/JSObject.h:

(JSC::JSObject::putDirect):

  • runtime/Lookup.h:

(JSC::putEntry):
(JSC::lookupPut):

  • runtime/PutPropertySlot.h:

(JSC::PutPropertySlot::PutPropertySlot):
(JSC::PutPropertySlot::setNewProperty):
(JSC::PutPropertySlot::isCacheable):

Source/WebCore:

  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::JSDOMWindow::put):

  • bindings/objc/WebScriptObject.mm:

(-[WebScriptObject setValue:forKey:]):

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateImplementation):

  • bindings/scripts/test/JS/JSTestInterface.cpp:

(WebCore::JSTestInterface::putByIndex):

  • bridge/NP_jsobject.cpp:

(_NPN_SetProperty):

Source/WebKit/mac:

  • Plugins/Hosted/NetscapePluginInstanceProxy.mm:

(WebKit::NetscapePluginInstanceProxy::setProperty):

Source/WebKit2:

  • WebProcess/Plugins/Netscape/NPJSObject.cpp:

(WebKit::NPJSObject::setProperty):

LayoutTests:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/PutPropertySlot.h

    r161033 r161077  
    2828#define PutPropertySlot_h
    2929
    30 #include "JSCJSValue.h"
    31 
    3230#include <wtf/Assertions.h>
    3331
     
    3937    class PutPropertySlot {
    4038    public:
    41         enum Type { Uncachable, ExistingProperty, NewProperty, CustomProperty };
     39        enum Type { Uncachable, ExistingProperty, NewProperty };
    4240        enum Context { UnknownContext, PutById, PutByIdEval };
    43         typedef void (*PutValueFunc)(ExecState*, EncodedJSValue base, EncodedJSValue value);
    4441
    45         PutPropertySlot(JSValue thisValue, bool isStrictMode = false, Context context = UnknownContext)
     42        PutPropertySlot(bool isStrictMode = false, Context context = UnknownContext)
    4643            : m_type(Uncachable)
    4744            , m_base(0)
    48             , m_thisValue(thisValue)
    4945            , m_isStrictMode(isStrictMode)
    5046            , m_context(context)
    51             , m_putFunction(nullptr)
    5247        {
    5348        }
     
    6661            m_offset = offset;
    6762        }
    68 
    69         void setCustomProperty(JSObject* base, PutValueFunc function)
    70         {
    71             m_type = CustomProperty;
    72             m_base = base;
    73             m_putFunction = function;
    74         }
    7563       
    7664        Context context() const { return static_cast<Context>(m_context); }
     
    7866        Type type() const { return m_type; }
    7967        JSObject* base() const { return m_base; }
    80         JSValue thisValue() const { return m_thisValue; }
    8168
    8269        bool isStrictMode() const { return m_isStrictMode; }
    83         bool isCacheable() const { return m_type != Uncachable && m_type != CustomProperty; }
     70        bool isCacheable() const { return m_type != Uncachable; }
    8471        PropertyOffset cachedOffset() const
    8572        {
     
    9178        Type m_type;
    9279        JSObject* m_base;
    93         JSValue m_thisValue;
    9480        PropertyOffset m_offset;
    9581        bool m_isStrictMode;
    9682        uint8_t m_context;
    97         PutValueFunc m_putFunction;
    98 
    9983    };
    10084
Note: See TracChangeset for help on using the changeset viewer.