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

    r11304 r11527  
    5252}
    5353
    54 ObjectImp *Context::variableObject() const
     54JSObject *Context::variableObject() const
    5555{
    5656  return rep->variableObject();
    5757}
    5858
    59 ObjectImp *Context::thisValue() const
     59JSObject *Context::thisValue() const
    6060{
    6161  return rep->thisValue();
     
    6969// ------------------------------ Interpreter ----------------------------------
    7070
    71 Interpreter::Interpreter(ObjectImp *global)
     71Interpreter::Interpreter(JSObject *global)
    7272  : rep(0)
    7373  , m_argumentsPropertyName(&argumentsPropertyName)
     
    8282  , m_specialPrototypePropertyName(&specialPrototypePropertyName)
    8383{
    84   rep = new InterpreterImp(this, new ObjectImp);
     84  rep = new InterpreterImp(this, new JSObject);
    8585}
    8686
     
    9090}
    9191
    92 ObjectImp *Interpreter::globalObject() const
     92JSObject *Interpreter::globalObject() const
    9393{
    9494  return rep->globalObject();
     
    110110}
    111111
    112 Completion Interpreter::evaluate(const UString &code, ValueImp *thisV, const UString &)
     112Completion Interpreter::evaluate(const UString &code, JSValue *thisV, const UString &)
    113113{
    114114  return evaluate(UString(), 0, code, thisV);
    115115}
    116116
    117 Completion Interpreter::evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, ValueImp *thisV)
     117Completion Interpreter::evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, JSValue *thisV)
    118118{
    119119  Completion comp = rep->evaluate(code,thisV, sourceURL, startingLineNumber);
     
    134134}
    135135
    136 ObjectImp *Interpreter::builtinObject() const
     136JSObject *Interpreter::builtinObject() const
    137137{
    138138  return rep->builtinObject();
    139139}
    140140
    141 ObjectImp *Interpreter::builtinFunction() const
     141JSObject *Interpreter::builtinFunction() const
    142142{
    143143  return rep->builtinFunction();
    144144}
    145145
    146 ObjectImp *Interpreter::builtinArray() const
     146JSObject *Interpreter::builtinArray() const
    147147{
    148148  return rep->builtinArray();
    149149}
    150150
    151 ObjectImp *Interpreter::builtinBoolean() const
     151JSObject *Interpreter::builtinBoolean() const
    152152{
    153153  return rep->builtinBoolean();
    154154}
    155155
    156 ObjectImp *Interpreter::builtinString() const
     156JSObject *Interpreter::builtinString() const
    157157{
    158158  return rep->builtinString();
    159159}
    160160
    161 ObjectImp *Interpreter::builtinNumber() const
     161JSObject *Interpreter::builtinNumber() const
    162162{
    163163  return rep->builtinNumber();
    164164}
    165165
    166 ObjectImp *Interpreter::builtinDate() const
     166JSObject *Interpreter::builtinDate() const
    167167{
    168168  return rep->builtinDate();
    169169}
    170170
    171 ObjectImp *Interpreter::builtinRegExp() const
     171JSObject *Interpreter::builtinRegExp() const
    172172{
    173173  return rep->builtinRegExp();
    174174}
    175175
    176 ObjectImp *Interpreter::builtinError() const
     176JSObject *Interpreter::builtinError() const
    177177{
    178178  return rep->builtinError();
    179179}
    180180
    181 ObjectImp *Interpreter::builtinObjectPrototype() const
     181JSObject *Interpreter::builtinObjectPrototype() const
    182182{
    183183  return rep->builtinObjectPrototype();
    184184}
    185185
    186 ObjectImp *Interpreter::builtinFunctionPrototype() const
     186JSObject *Interpreter::builtinFunctionPrototype() const
    187187{
    188188  return rep->builtinFunctionPrototype();
    189189}
    190190
    191 ObjectImp *Interpreter::builtinArrayPrototype() const
     191JSObject *Interpreter::builtinArrayPrototype() const
    192192{
    193193  return rep->builtinArrayPrototype();
    194194}
    195195
    196 ObjectImp *Interpreter::builtinBooleanPrototype() const
     196JSObject *Interpreter::builtinBooleanPrototype() const
    197197{
    198198  return rep->builtinBooleanPrototype();
    199199}
    200200
    201 ObjectImp *Interpreter::builtinStringPrototype() const
     201JSObject *Interpreter::builtinStringPrototype() const
    202202{
    203203  return rep->builtinStringPrototype();
    204204}
    205205
    206 ObjectImp *Interpreter::builtinNumberPrototype() const
     206JSObject *Interpreter::builtinNumberPrototype() const
    207207{
    208208  return rep->builtinNumberPrototype();
    209209}
    210210
    211 ObjectImp *Interpreter::builtinDatePrototype() const
     211JSObject *Interpreter::builtinDatePrototype() const
    212212{
    213213  return rep->builtinDatePrototype();
    214214}
    215215
    216 ObjectImp *Interpreter::builtinRegExpPrototype() const
     216JSObject *Interpreter::builtinRegExpPrototype() const
    217217{
    218218  return rep->builtinRegExpPrototype();
    219219}
    220220
    221 ObjectImp *Interpreter::builtinErrorPrototype() const
     221JSObject *Interpreter::builtinErrorPrototype() const
    222222{
    223223  return rep->builtinErrorPrototype();
    224224}
    225225
    226 ObjectImp *Interpreter::builtinEvalError() const
     226JSObject *Interpreter::builtinEvalError() const
    227227{
    228228  return rep->builtinEvalError();
    229229}
    230230
    231 ObjectImp *Interpreter::builtinRangeError() const
     231JSObject *Interpreter::builtinRangeError() const
    232232{
    233233  return rep->builtinRangeError();
    234234}
    235235
    236 ObjectImp *Interpreter::builtinReferenceError() const
     236JSObject *Interpreter::builtinReferenceError() const
    237237{
    238238  return rep->builtinReferenceError();
    239239}
    240240
    241 ObjectImp *Interpreter::builtinSyntaxError() const
     241JSObject *Interpreter::builtinSyntaxError() const
    242242{
    243243  return rep->builtinSyntaxError();
    244244}
    245245
    246 ObjectImp *Interpreter::builtinTypeError() const
     246JSObject *Interpreter::builtinTypeError() const
    247247{
    248248  return rep->builtinTypeError();
    249249}
    250250
    251 ObjectImp *Interpreter::builtinURIError() const
     251JSObject *Interpreter::builtinURIError() const
    252252{
    253253  return rep->builtinURIError();
    254254}
    255255
    256 ObjectImp *Interpreter::builtinEvalErrorPrototype() const
     256JSObject *Interpreter::builtinEvalErrorPrototype() const
    257257{
    258258  return rep->builtinEvalErrorPrototype();
    259259}
    260260
    261 ObjectImp *Interpreter::builtinRangeErrorPrototype() const
     261JSObject *Interpreter::builtinRangeErrorPrototype() const
    262262{
    263263  return rep->builtinRangeErrorPrototype();
    264264}
    265265
    266 ObjectImp *Interpreter::builtinReferenceErrorPrototype() const
     266JSObject *Interpreter::builtinReferenceErrorPrototype() const
    267267{
    268268  return rep->builtinReferenceErrorPrototype();
    269269}
    270270
    271 ObjectImp *Interpreter::builtinSyntaxErrorPrototype() const
     271JSObject *Interpreter::builtinSyntaxErrorPrototype() const
    272272{
    273273  return rep->builtinSyntaxErrorPrototype();
    274274}
    275275
    276 ObjectImp *Interpreter::builtinTypeErrorPrototype() const
     276JSObject *Interpreter::builtinTypeErrorPrototype() const
    277277{
    278278  return rep->builtinTypeErrorPrototype();
    279279}
    280280
    281 ObjectImp *Interpreter::builtinURIErrorPrototype() const
     281JSObject *Interpreter::builtinURIErrorPrototype() const
    282282{
    283283  return rep->builtinURIErrorPrototype();
     
    322322
    323323
    324 void *Interpreter::createLanguageInstanceForValue(ExecState *exec, int language, ObjectImp *value, const Bindings::RootObject *origin, const Bindings::RootObject *current)
     324void *Interpreter::createLanguageInstanceForValue(ExecState *exec, int language, JSObject *value, const Bindings::RootObject *origin, const Bindings::RootObject *current)
    325325{
    326326    return Bindings::Instance::createLanguageInstanceForValue (exec, (Bindings::Instance::BindingLanguage)language, value, origin, current);
Note: See TracChangeset for help on using the changeset viewer.