Ignore:
Timestamp:
Dec 10, 2005, 6:06:17 PM (19 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/kjs/string_object.h

    r10084 r11527  
    2828namespace KJS {
    2929
    30   class StringInstanceImp : public ObjectImp {
     30  class StringInstance : public JSObject {
    3131  public:
    32     StringInstanceImp(ObjectImp *proto);
    33     StringInstanceImp(ObjectImp *proto, const UString &string);
     32    StringInstance(JSObject *proto);
     33    StringInstance(JSObject *proto, const UString &string);
    3434
    3535    virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
    36     virtual void put(ExecState *exec, const Identifier &propertyName, ValueImp *value, int attr = None);
     36    virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None);
    3737    virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName);
    3838
     
    4040    static const ClassInfo info;
    4141  private:
    42     static ValueImp *lengthGetter(ExecState *exec, const Identifier&, const PropertySlot &slot);
    43     static ValueImp *indexGetter(ExecState *exec, const Identifier&, const PropertySlot &slot);
     42    static JSValue *lengthGetter(ExecState *exec, const Identifier&, const PropertySlot &slot);
     43    static JSValue *indexGetter(ExecState *exec, const Identifier&, const PropertySlot &slot);
    4444  };
    4545
     
    5050   * with the String constructor
    5151   */
    52   class StringPrototypeImp : public StringInstanceImp {
     52  class StringPrototype : public StringInstance {
    5353  public:
    54     StringPrototypeImp(ExecState *exec,
    55                        ObjectPrototypeImp *objProto);
     54    StringPrototype(ExecState *exec,
     55                       ObjectPrototype *objProto);
    5656    virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
    5757    virtual const ClassInfo *classInfo() const { return &info; }
     
    6565   * String.prototype object
    6666   */
    67   class StringProtoFuncImp : public InternalFunctionImp {
     67  class StringProtoFunc : public InternalFunctionImp {
    6868  public:
    69     StringProtoFuncImp(ExecState *exec, int i, int len);
     69    StringProtoFunc(ExecState *exec, int i, int len);
    7070
    7171    virtual bool implementsCall() const;
    72     virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args);
     72    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    7373
    7474    enum { ToString, ValueOf, CharAt, CharCodeAt, Concat, IndexOf, LastIndexOf,
     
    9393  public:
    9494    StringObjectImp(ExecState *exec,
    95                     FunctionPrototypeImp *funcProto,
    96                     StringPrototypeImp *stringProto);
     95                    FunctionPrototype *funcProto,
     96                    StringPrototype *stringProto);
    9797
    9898    virtual bool implementsConstruct() const;
    99     virtual ObjectImp *construct(ExecState *exec, const List &args);
     99    virtual JSObject *construct(ExecState *exec, const List &args);
    100100    virtual bool implementsCall() const;
    101     virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args);
     101    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    102102  };
    103103
     
    110110  class StringObjectFuncImp : public InternalFunctionImp {
    111111  public:
    112     StringObjectFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto);
     112    StringObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto);
    113113    virtual bool implementsCall() const;
    114     virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args);
     114    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    115115  };
    116116
Note: See TracChangeset for help on using the changeset viewer.