Ignore:
Timestamp:
Dec 10, 2005, 6:06:17 PM (20 years ago)
Author:
darin
Message:

JavaScriptCore:

Rubber stamped by Maciej.

  • did long-promised KJS renaming:

ValueImp -> JSValue
ObjectImp -> JSObject
AllocatedValueImp -> JSCell

A renaming to get a class out of the way

KJS::Bindings::JSObject -> JavaJSObject

and some other "imp-reduction" renaming

*InstanceImp -> *Instance
*ProtoFuncImp -> *ProtoFunc
*PrototypeImp -> *Prototype
ArgumentsImp -> Arguments
RuntimeArrayImp -> RuntimeArray
RuntimeMethodImp -> RuntimeMethod

  • most files and functions

WebCore:

Rubber stamped by Maciej.

  • updated for KJS class renaming
  • many files and functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bindings/runtime_array.cpp

    r11525 r11527  
    3131using namespace KJS;
    3232
    33 const ClassInfo RuntimeArrayImp::info = {"RuntimeArray", &ArrayInstanceImp::info, 0, 0};
     33const ClassInfo RuntimeArray::info = {"RuntimeArray", &ArrayInstance::info, 0, 0};
    3434
    35 RuntimeArrayImp::RuntimeArrayImp(ExecState *exec, Bindings::Array *a)
    36     : ArrayInstanceImp(exec->lexicalInterpreter()->builtinArrayPrototype(), a->getLength())
     35RuntimeArray::RuntimeArray(ExecState *exec, Bindings::Array *a)
     36    : ArrayInstance(exec->lexicalInterpreter()->builtinArrayPrototype(), a->getLength())
    3737{
    3838    // Always takes ownership of concrete array.
     
    4040}
    4141
    42 RuntimeArrayImp::~RuntimeArrayImp()
     42RuntimeArray::~RuntimeArray()
    4343{
    4444    delete _array;
    4545}
    4646
    47 ValueImp *RuntimeArrayImp::lengthGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
     47JSValue *RuntimeArray::lengthGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
    4848{
    49     RuntimeArrayImp *thisObj = static_cast<RuntimeArrayImp *>(slot.slotBase());
     49    RuntimeArray *thisObj = static_cast<RuntimeArray *>(slot.slotBase());
    5050    return jsNumber(thisObj->getLength());
    5151}
    5252
    53 ValueImp *RuntimeArrayImp::indexGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
     53JSValue *RuntimeArray::indexGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
    5454{
    55     RuntimeArrayImp *thisObj = static_cast<RuntimeArrayImp *>(slot.slotBase());
     55    RuntimeArray *thisObj = static_cast<RuntimeArray *>(slot.slotBase());
    5656    return thisObj->getConcreteArray()->valueAt(exec, slot.index());
    5757}
    5858
    59 bool RuntimeArrayImp::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
     59bool RuntimeArray::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
    6060{
    6161    if (propertyName == lengthPropertyName) {
     
    7373    }
    7474   
    75     return ArrayInstanceImp::getOwnPropertySlot(exec, propertyName, slot);
     75    return ArrayInstance::getOwnPropertySlot(exec, propertyName, slot);
    7676}
    7777
    78 bool RuntimeArrayImp::getOwnPropertySlot(ExecState *exec, unsigned index, PropertySlot& slot)
     78bool RuntimeArray::getOwnPropertySlot(ExecState *exec, unsigned index, PropertySlot& slot)
    7979{
    8080    if (index < getLength()) {
     
    8383    }
    8484   
    85     return ArrayInstanceImp::getOwnPropertySlot(exec, index, slot);
     85    return ArrayInstance::getOwnPropertySlot(exec, index, slot);
    8686}
    8787
    88 void RuntimeArrayImp::put(ExecState *exec, const Identifier &propertyName, ValueImp *value, int attr)
     88void RuntimeArray::put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr)
    8989{
    9090    if (propertyName == lengthPropertyName) {
     
    100100    }
    101101   
    102     ObjectImp::put(exec, propertyName, value, attr);
     102    JSObject::put(exec, propertyName, value, attr);
    103103}
    104104
    105 void RuntimeArrayImp::put(ExecState *exec, unsigned index, ValueImp *value, int attr)
     105void RuntimeArray::put(ExecState *exec, unsigned index, JSValue *value, int attr)
    106106{
    107107    if (index >= getLength()) {
     
    113113}
    114114
    115 bool RuntimeArrayImp::deleteProperty(ExecState *exec, const Identifier &propertyName)
     115bool RuntimeArray::deleteProperty(ExecState *exec, const Identifier &propertyName)
    116116{
    117117    return false;
    118118}
    119119
    120 bool RuntimeArrayImp::deleteProperty(ExecState *exec, unsigned index)
     120bool RuntimeArray::deleteProperty(ExecState *exec, unsigned index)
    121121{
    122122    return false;
Note: See TracChangeset for help on using the changeset viewer.