Ignore:
Timestamp:
Jun 16, 2008, 4:28:38 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoff Garen.

Make Identifier construction use an explicitly passed IdentifierTable.

No change on SunSpider total.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object_object.cpp

    r34587 r34607  
    7070JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const ArgList& args)
    7171{
    72     return jsBoolean(thisObj->hasOwnProperty(exec, Identifier(args[0]->toString(exec))));
     72    return jsBoolean(thisObj->hasOwnProperty(exec, Identifier(exec, args[0]->toString(exec))));
    7373}
    7474
     
    9595        return throwError(exec, SyntaxError, "invalid getter usage");
    9696
    97     thisObj->defineGetter(exec, Identifier(args[0]->toString(exec)), static_cast<JSObject *>(args[1]));
     97    thisObj->defineGetter(exec, Identifier(exec, args[0]->toString(exec)), static_cast<JSObject *>(args[1]));
    9898    return jsUndefined();
    9999}
     
    104104        return throwError(exec, SyntaxError, "invalid setter usage");
    105105
    106     thisObj->defineSetter(exec, Identifier(args[0]->toString(exec)), static_cast<JSObject *>(args[1]));
     106    thisObj->defineSetter(exec, Identifier(exec, args[0]->toString(exec)), static_cast<JSObject *>(args[1]));
    107107    return jsUndefined();
    108108}
     
    110110JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const ArgList& args)
    111111{
    112     return thisObj->lookupGetter(exec, Identifier(args[0]->toString(exec)));
     112    return thisObj->lookupGetter(exec, Identifier(exec, args[0]->toString(exec)));
    113113}
    114114
    115115JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const ArgList& args)
    116116{
    117     return thisObj->lookupSetter(exec, Identifier(args[0]->toString(exec)));
     117    return thisObj->lookupSetter(exec, Identifier(exec, args[0]->toString(exec)));
    118118}
    119119
    120120JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const ArgList& args)
    121121{
    122     return jsBoolean(thisObj->propertyIsEnumerable(exec, Identifier(args[0]->toString(exec))));
     122    return jsBoolean(thisObj->propertyIsEnumerable(exec, Identifier(exec, args[0]->toString(exec))));
    123123}
    124124
     
    136136
    137137ObjectConstructor::ObjectConstructor(ExecState* exec, ObjectPrototype* objProto, FunctionPrototype* funcProto)
    138   : InternalFunction(funcProto, "Object")
     138  : InternalFunction(funcProto, Identifier(exec, "Object"))
    139139{
    140140  // ECMA 15.2.3.1
Note: See TracChangeset for help on using the changeset viewer.