Ignore:
Timestamp:
Aug 22, 2013, 1:35:09 PM (12 years ago)
Author:
[email protected]
Message:

https://bugs.webkit.org/show_bug.cgi?id=120128
Remove putDirectVirtual

Reviewed by Sam Weinig.

This could most generously be described as 'vestigial'.
No performance impact.

  • API/JSObjectRef.cpp:

(JSObjectSetProperty):

  • changed to use defineOwnProperty
  • debugger/DebuggerActivation.cpp:
  • debugger/DebuggerActivation.h:
    • remove putDirectVirtual
  • interpreter/Interpreter.cpp:

(JSC::Interpreter::execute):

  • changed to use defineOwnProperty
  • runtime/ClassInfo.h:
  • runtime/JSActivation.cpp:
  • runtime/JSActivation.h:
  • runtime/JSCell.cpp:
  • runtime/JSCell.h:
  • runtime/JSGlobalObject.cpp:
  • runtime/JSGlobalObject.h:
  • runtime/JSObject.cpp:
  • runtime/JSObject.h:
  • runtime/JSProxy.cpp:
  • runtime/JSProxy.h:
  • runtime/JSSymbolTableObject.cpp:
  • runtime/JSSymbolTableObject.h:
    • remove putDirectVirtual
  • runtime/PropertyDescriptor.h:

(JSC::PropertyDescriptor::PropertyDescriptor):

  • added constructor for convenience
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSActivation.cpp

    r154373 r154459  
    194194}
    195195
    196 // FIXME: Make this function honor ReadOnly (const) and DontEnum
    197 void JSActivation::putDirectVirtual(JSObject* object, ExecState* exec, PropertyName propertyName, JSValue value, unsigned attributes)
    198 {
    199     JSActivation* thisObject = jsCast<JSActivation*>(object);
    200     ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(thisObject));
    201 
    202     if (thisObject->symbolTablePutWithAttributes(exec->vm(), propertyName, value, attributes))
    203         return;
    204 
    205     // We don't call through to JSObject because __proto__ and getter/setter
    206     // properties are non-standard extensions that other implementations do not
    207     // expose in the activation object.
    208     ASSERT(!thisObject->hasGetterSetterProperties());
    209     JSObject::putDirectVirtual(thisObject, exec, propertyName, value, attributes);
    210 }
    211 
    212196bool JSActivation::deleteProperty(JSCell* cell, ExecState* exec, PropertyName propertyName)
    213197{
Note: See TracChangeset for help on using the changeset viewer.