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

    r11525 r11527  
    3636using namespace KJS;
    3737
    38 class TestFunctionImp : public ObjectImp {
     38class TestFunctionImp : public JSObject {
    3939public:
    4040  TestFunctionImp(int i, int length);
    4141  virtual bool implementsCall() const { return true; }
    42   virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args);
     42  virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4343
    4444  enum { Print, Debug, Quit, GC };
     
    4848};
    4949
    50 TestFunctionImp::TestFunctionImp(int i, int length) : ObjectImp(), id(i)
     50TestFunctionImp::TestFunctionImp(int i, int length) : JSObject(), id(i)
    5151{
    5252  putDirect(lengthPropertyName,length,DontDelete|ReadOnly|DontEnum);
    5353}
    5454
    55 ValueImp *TestFunctionImp::callAsFunction(ExecState *exec, ObjectImp */*thisObj*/, const List &args)
     55JSValue *TestFunctionImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
    5656{
    5757  switch (id) {
     
    7676}
    7777
    78 class VersionFunctionImp : public ObjectImp {
     78class VersionFunctionImp : public JSObject {
    7979public:
    80   VersionFunctionImp() : ObjectImp() {}
     80  VersionFunctionImp() : JSObject() {}
    8181  virtual bool implementsCall() const { return true; }
    82   virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args);
     82  virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    8383};
    8484
    85 ValueImp *VersionFunctionImp::callAsFunction(ExecState */*exec*/, ObjectImp */*thisObj*/, const List &/*args*/)
     85JSValue *VersionFunctionImp::callAsFunction(ExecState */*exec*/, JSObject */*thisObj*/, const List &/*args*/)
    8686{
    8787  // We need this function for compatibility with the Mozilla JS tests but for now
     
    9090}
    9191
    92 class GlobalImp : public ObjectImp {
     92class GlobalImp : public JSObject {
    9393public:
    9494  virtual UString className() const { return "global"; }
     
    107107    JSLock lock;
    108108
    109     ObjectImp *global(new GlobalImp());
     109    JSObject *global(new GlobalImp());
    110110
    111111    // create interpreter
     
    154154      if (comp.complType() == Throw) {
    155155        ExecState *exec = interp.globalExec();
    156         ValueImp *exVal = comp.value();
     156        JSValue *exVal = comp.value();
    157157        char *msg = exVal->toString(exec).ascii();
    158158        int lineno = -1;
    159159        if (exVal->isObject()) {
    160           ValueImp *lineVal = static_cast<ObjectImp *>(exVal)->get(exec,"line");
     160          JSValue *lineVal = static_cast<JSObject *>(exVal)->get(exec,"line");
    161161          if (lineVal->isNumber())
    162162            lineno = int(lineVal->toNumber(exec));
Note: See TracChangeset for help on using the changeset viewer.