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_object.cpp

    r10701 r11527  
    4343const ClassInfo RuntimeObjectImp::info = {"RuntimeObject", 0, 0, 0};
    4444
    45 RuntimeObjectImp::RuntimeObjectImp(ObjectImp *proto)
    46   : ObjectImp(proto)
     45RuntimeObjectImp::RuntimeObjectImp(JSObject *proto)
     46  : JSObject(proto)
    4747{
    4848    instance = 0;
     
    6262}
    6363
    64 ValueImp *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
     64JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
    6565{
    6666    RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
     
    7070
    7171    Class *aClass = instance->getClass();
    72     ValueImp *result = aClass->fallbackObject(exec, instance, propertyName);
     72    JSValue *result = aClass->fallbackObject(exec, instance, propertyName);
    7373
    7474    instance->end();
     
    7777}
    7878
    79 ValueImp *RuntimeObjectImp::fieldGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
     79JSValue *RuntimeObjectImp::fieldGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
    8080{
    8181    RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
     
    8686    Class *aClass = instance->getClass();
    8787    Field *aField = aClass->fieldNamed(propertyName.ascii(), instance);
    88     ValueImp *result = instance->getValueOfField(exec, aField);
     88    JSValue *result = instance->getValueOfField(exec, aField);
    8989   
    9090    instance->end();
     
    9393}
    9494
    95 ValueImp *RuntimeObjectImp::methodGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
     95JSValue *RuntimeObjectImp::methodGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
    9696{
    9797    RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
     
    102102    Class *aClass = instance->getClass();
    103103    MethodList methodList = aClass->methodsNamed(propertyName.ascii(), instance);
    104     ValueImp *result = new RuntimeMethodImp(exec, propertyName, methodList);
     104    JSValue *result = new RuntimeMethod(exec, propertyName, methodList);
    105105
    106106    instance->end();
     
    148148
    149149void RuntimeObjectImp::put(ExecState *exec, const Identifier &propertyName,
    150                     ValueImp *value, int attr)
     150                    JSValue *value, int attr)
    151151{
    152152    instance->begin();
     
    189189}
    190190
    191 ValueImp *RuntimeObjectImp::defaultValue(ExecState *exec, Type hint) const
    192 {
    193     ValueImp *result;
     191JSValue *RuntimeObjectImp::defaultValue(ExecState *exec, Type hint) const
     192{
     193    JSValue *result;
    194194   
    195195    instance->begin();
     
    208208}
    209209
    210 ValueImp *RuntimeObjectImp::callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args)
    211 {
    212     instance->begin();
    213 
    214     ValueImp *aValue = getInternalInstance()->invokeDefaultMethod(exec, args);
     210JSValue *RuntimeObjectImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
     211{
     212    instance->begin();
     213
     214    JSValue *aValue = getInternalInstance()->invokeDefaultMethod(exec, args);
    215215   
    216216    instance->end();
Note: See TracChangeset for help on using the changeset viewer.