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/interpreter.h

    r11525 r11527  
    3232  class ContextImp;
    3333  class InterpreterImp;
    34   class RuntimeMethodImp;
     34  class RuntimeMethod;
    3535  class ScopeChain;
    3636
     
    7878     * @return The execution context's variable object
    7979     */
    80     ObjectImp *variableObject() const;
     80    JSObject *variableObject() const;
    8181
    8282    /**
     
    9595     * @return The execution context's "this" value
    9696     */
    97     ObjectImp *thisValue() const;
     97    JSObject *thisValue() const;
    9898
    9999    /**
     
    152152     * @param global The object to use as the global object for this interpreter
    153153     */
    154     Interpreter(ObjectImp *global);
     154    Interpreter(JSObject *global);
    155155    /**
    156156     * Creates a new interpreter. A global object will be created and
     
    164164     * execution performed by this interpreter
    165165     */
    166     ObjectImp *globalObject() const;
     166    JSObject *globalObject() const;
    167167
    168168    void initGlobalObject();
     
    204204     * @return A completion object representing the result of the execution.
    205205     */
    206     Completion evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, ValueImp *thisV = NULL);
     206    Completion evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, JSValue *thisV = NULL);
    207207
    208208        // Overload of evaluate to keep JavaScriptGlue both source and binary compatible.
    209         Completion evaluate(const UString &code, ValueImp *thisV = NULL, const UString &sourceFilename = UString());
     209        Completion evaluate(const UString &code, JSValue *thisV = NULL, const UString &sourceFilename = UString());
    210210
    211211    /**
     
    225225     * @return The builtin "Object" object
    226226     */
    227     ObjectImp *builtinObject() const;
     227    JSObject *builtinObject() const;
    228228
    229229    /**
    230230     * Returns the builtin "Function" object.
    231231     */
    232     ObjectImp *builtinFunction() const;
     232    JSObject *builtinFunction() const;
    233233
    234234    /**
    235235     * Returns the builtin "Array" object.
    236236     */
    237     ObjectImp *builtinArray() const;
     237    JSObject *builtinArray() const;
    238238
    239239    /**
    240240     * Returns the builtin "Boolean" object.
    241241     */
    242     ObjectImp *builtinBoolean() const;
     242    JSObject *builtinBoolean() const;
    243243
    244244    /**
    245245     * Returns the builtin "String" object.
    246246     */
    247     ObjectImp *builtinString() const;
     247    JSObject *builtinString() const;
    248248
    249249    /**
    250250     * Returns the builtin "Number" object.
    251251     */
    252     ObjectImp *builtinNumber() const;
     252    JSObject *builtinNumber() const;
    253253
    254254    /**
    255255     * Returns the builtin "Date" object.
    256256     */
    257     ObjectImp *builtinDate() const;
     257    JSObject *builtinDate() const;
    258258
    259259    /**
    260260     * Returns the builtin "RegExp" object.
    261261     */
    262     ObjectImp *builtinRegExp() const;
     262    JSObject *builtinRegExp() const;
    263263
    264264    /**
    265265     * Returns the builtin "Error" object.
    266266     */
    267     ObjectImp *builtinError() const;
     267    JSObject *builtinError() const;
    268268
    269269    /**
    270270     * Returns the builtin "Object.prototype" object.
    271271     */
    272     ObjectImp *builtinObjectPrototype() const;
     272    JSObject *builtinObjectPrototype() const;
    273273
    274274    /**
    275275     * Returns the builtin "Function.prototype" object.
    276276     */
    277     ObjectImp *builtinFunctionPrototype() const;
     277    JSObject *builtinFunctionPrototype() const;
    278278
    279279    /**
    280280     * Returns the builtin "Array.prototype" object.
    281281     */
    282     ObjectImp *builtinArrayPrototype() const;
     282    JSObject *builtinArrayPrototype() const;
    283283
    284284    /**
    285285     * Returns the builtin "Boolean.prototype" object.
    286286     */
    287     ObjectImp *builtinBooleanPrototype() const;
     287    JSObject *builtinBooleanPrototype() const;
    288288
    289289    /**
    290290     * Returns the builtin "String.prototype" object.
    291291     */
    292     ObjectImp *builtinStringPrototype() const;
     292    JSObject *builtinStringPrototype() const;
    293293
    294294    /**
    295295     * Returns the builtin "Number.prototype" object.
    296296     */
    297     ObjectImp *builtinNumberPrototype() const;
     297    JSObject *builtinNumberPrototype() const;
    298298
    299299    /**
    300300     * Returns the builtin "Date.prototype" object.
    301301     */
    302     ObjectImp *builtinDatePrototype() const;
     302    JSObject *builtinDatePrototype() const;
    303303
    304304    /**
    305305     * Returns the builtin "RegExp.prototype" object.
    306306     */
    307     ObjectImp *builtinRegExpPrototype() const;
     307    JSObject *builtinRegExpPrototype() const;
    308308
    309309    /**
    310310     * Returns the builtin "Error.prototype" object.
    311311     */
    312     ObjectImp *builtinErrorPrototype() const;
     312    JSObject *builtinErrorPrototype() const;
    313313
    314314    /**
    315315     * The initial value of "Error" global property
    316316     */
    317     ObjectImp *builtinEvalError() const;
    318     ObjectImp *builtinRangeError() const;
    319     ObjectImp *builtinReferenceError() const;
    320     ObjectImp *builtinSyntaxError() const;
    321     ObjectImp *builtinTypeError() const;
    322     ObjectImp *builtinURIError() const;
    323 
    324     ObjectImp *builtinEvalErrorPrototype() const;
    325     ObjectImp *builtinRangeErrorPrototype() const;
    326     ObjectImp *builtinReferenceErrorPrototype() const;
    327     ObjectImp *builtinSyntaxErrorPrototype() const;
    328     ObjectImp *builtinTypeErrorPrototype() const;
    329     ObjectImp *builtinURIErrorPrototype() const;
     317    JSObject *builtinEvalError() const;
     318    JSObject *builtinRangeError() const;
     319    JSObject *builtinReferenceError() const;
     320    JSObject *builtinSyntaxError() const;
     321    JSObject *builtinTypeError() const;
     322    JSObject *builtinURIError() const;
     323
     324    JSObject *builtinEvalErrorPrototype() const;
     325    JSObject *builtinRangeErrorPrototype() const;
     326    JSObject *builtinReferenceErrorPrototype() const;
     327    JSObject *builtinSyntaxErrorPrototype() const;
     328    JSObject *builtinTypeErrorPrototype() const;
     329    JSObject *builtinURIErrorPrototype() const;
    330330
    331331    enum CompatMode { NativeMode, IECompat, NetscapeCompat };
     
    376376     * security checks.
    377377     */
    378     virtual bool isGlobalObject(ValueImp *v) { return false; }
     378    virtual bool isGlobalObject(JSValue *v) { return false; }
    379379   
    380380    /**
     
    385385     * override of this method is currently in WebCore.
    386386     */
    387     virtual Interpreter *interpreterForGlobalObject (const ValueImp *imp) { return 0; }
     387    virtual Interpreter *interpreterForGlobalObject (const JSValue *imp) { return 0; }
    388388   
    389389    /**
     
    395395    virtual bool isSafeScript (const Interpreter *target) { return true; }
    396396   
    397     virtual void *createLanguageInstanceForValue (ExecState *exec, int language, ObjectImp *value, const Bindings::RootObject *origin, const Bindings::RootObject *current);
     397    virtual void *createLanguageInstanceForValue (ExecState *exec, int language, JSObject *value, const Bindings::RootObject *origin, const Bindings::RootObject *current);
    398398#endif
    399399
     
    436436    friend class FunctionImp;
    437437#if APPLE_CHANGES
    438     friend class RuntimeMethodImp;
     438    friend class RuntimeMethod;
    439439#endif
    440440
     
    466466    Context context() const { return _context; }
    467467
    468     void setException(ValueImp *e) { _exception = e; }
     468    void setException(JSValue *e) { _exception = e; }
    469469    void clearException() { _exception = NULL; }
    470     ValueImp *exception() const { return _exception; }
     470    JSValue *exception() const { return _exception; }
    471471    bool hadException() const { return _exception; }
    472472
     
    476476    Interpreter *_interpreter;
    477477    ContextImp *_context;
    478     ValueImp *_exception;
     478    JSValue *_exception;
    479479  };
    480480
Note: See TracChangeset for help on using the changeset viewer.