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/bool_object.cpp

    r11525 r11527  
    3434using namespace KJS;
    3535
    36 // ------------------------------ BooleanInstanceImp ---------------------------
     36// ------------------------------ BooleanInstance ---------------------------
    3737
    38 const ClassInfo BooleanInstanceImp::info = {"Boolean", 0, 0, 0};
     38const ClassInfo BooleanInstance::info = {"Boolean", 0, 0, 0};
    3939
    40 BooleanInstanceImp::BooleanInstanceImp(ObjectImp *proto)
    41   : ObjectImp(proto)
     40BooleanInstance::BooleanInstance(JSObject *proto)
     41  : JSObject(proto)
    4242{
    4343}
    4444
    45 // ------------------------------ BooleanPrototypeImp --------------------------
     45// ------------------------------ BooleanPrototype --------------------------
    4646
    4747// ECMA 15.6.4
    4848
    49 BooleanPrototypeImp::BooleanPrototypeImp(ExecState *exec,
    50                                          ObjectPrototypeImp *objectProto,
    51                                          FunctionPrototypeImp *funcProto)
    52   : BooleanInstanceImp(objectProto)
     49BooleanPrototype::BooleanPrototype(ExecState *exec,
     50                                         ObjectPrototype *objectProto,
     51                                         FunctionPrototype *funcProto)
     52  : BooleanInstance(objectProto)
    5353{
    5454  // The constructor will be added later by InterpreterImp::InterpreterImp()
    5555
    56   putDirect(toStringPropertyName, new BooleanProtoFuncImp(exec,funcProto,BooleanProtoFuncImp::ToString,0), DontEnum);
    57   putDirect(valueOfPropertyName,  new BooleanProtoFuncImp(exec,funcProto,BooleanProtoFuncImp::ValueOf,0),  DontEnum);
     56  putDirect(toStringPropertyName, new BooleanProtoFunc(exec,funcProto,BooleanProtoFunc::ToString,0), DontEnum);
     57  putDirect(valueOfPropertyName,  new BooleanProtoFunc(exec,funcProto,BooleanProtoFunc::ValueOf,0),  DontEnum);
    5858  setInternalValue(jsBoolean(false));
    5959}
    6060
    6161
    62 // ------------------------------ BooleanProtoFuncImp --------------------------
     62// ------------------------------ BooleanProtoFunc --------------------------
    6363
    64 BooleanProtoFuncImp::BooleanProtoFuncImp(ExecState *exec,
    65                                          FunctionPrototypeImp *funcProto, int i, int len)
     64BooleanProtoFunc::BooleanProtoFunc(ExecState *exec,
     65                                         FunctionPrototype *funcProto, int i, int len)
    6666  : InternalFunctionImp(funcProto), id(i)
    6767{
     
    7070
    7171
    72 bool BooleanProtoFuncImp::implementsCall() const
     72bool BooleanProtoFunc::implementsCall() const
    7373{
    7474  return true;
     
    7777
    7878// ECMA 15.6.4.2 + 15.6.4.3
    79 ValueImp *BooleanProtoFuncImp::callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &/*args*/)
     79JSValue *BooleanProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &/*args*/)
    8080{
    8181  // no generic function. "this" has to be a Boolean object
    82   if (!thisObj->inherits(&BooleanInstanceImp::info))
     82  if (!thisObj->inherits(&BooleanInstance::info))
    8383    return throwError(exec, TypeError);
    8484
    8585  // execute "toString()" or "valueOf()", respectively
    8686
    87   ValueImp *v = thisObj->internalValue();
     87  JSValue *v = thisObj->internalValue();
    8888  assert(v);
    8989
     
    9696
    9797
    98 BooleanObjectImp::BooleanObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
    99                                    BooleanPrototypeImp *booleanProto)
     98BooleanObjectImp::BooleanObjectImp(ExecState *exec, FunctionPrototype *funcProto,
     99                                   BooleanPrototype *booleanProto)
    100100  : InternalFunctionImp(funcProto)
    101101{
     
    113113
    114114// ECMA 15.6.2
    115 ObjectImp *BooleanObjectImp::construct(ExecState *exec, const List &args)
     115JSObject *BooleanObjectImp::construct(ExecState *exec, const List &args)
    116116{
    117   ObjectImp *obj(new BooleanInstanceImp(exec->lexicalInterpreter()->builtinBooleanPrototype()));
     117  JSObject *obj(new BooleanInstance(exec->lexicalInterpreter()->builtinBooleanPrototype()));
    118118
    119119  bool b;
     
    134134
    135135// ECMA 15.6.1
    136 ValueImp *BooleanObjectImp::callAsFunction(ExecState *exec, ObjectImp */*thisObj*/, const List &args)
     136JSValue *BooleanObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
    137137{
    138138  if (args.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.