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/API/JSObjectRef.cpp

    r34587 r34607  
    8888    JSLock lock;
    8989    ExecState* exec = toJS(ctx);
    90     Identifier nameID = name ? Identifier(toJS(name)) : Identifier("anonymous");
     90    Identifier nameID = name ? Identifier(exec, toJS(name)) : Identifier(exec, "anonymous");
    9191   
    9292    return toRef(new JSCallbackFunction(exec, callAsFunction, nameID));
     
    115115    UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null;
    116116   
    117     Identifier nameID = name ? Identifier(toJS(name)) : Identifier("anonymous");
     117    Identifier nameID = name ? Identifier(exec, toJS(name)) : Identifier(exec, "anonymous");
    118118   
    119119    ArgList args;
     
    153153    UString::Rep* nameRep = toJS(propertyName);
    154154   
    155     return jsObject->hasProperty(exec, Identifier(nameRep));
     155    return jsObject->hasProperty(exec, Identifier(exec, nameRep));
    156156}
    157157
     
    163163    UString::Rep* nameRep = toJS(propertyName);
    164164
    165     JSValue* jsValue = jsObject->get(exec, Identifier(nameRep));
     165    JSValue* jsValue = jsObject->get(exec, Identifier(exec, nameRep));
    166166    if (exec->hadException()) {
    167167        if (exception)
     
    177177    ExecState* exec = toJS(ctx);
    178178    JSObject* jsObject = toJS(object);
    179     Identifier name(toJS(propertyName));
     179    Identifier name(exec, toJS(propertyName));
    180180    JSValue* jsValue = toJS(value);
    181181
     
    230230    UString::Rep* nameRep = toJS(propertyName);
    231231
    232     bool result = jsObject->deleteProperty(exec, Identifier(nameRep));
     232    bool result = jsObject->deleteProperty(exec, Identifier(exec, nameRep));
    233233    if (exec->hadException()) {
    234234        if (exception)
     
    325325struct OpaqueJSPropertyNameArray
    326326{
    327     OpaqueJSPropertyNameArray() : refCount(0)
     327    OpaqueJSPropertyNameArray(JSGlobalData* globalData) : refCount(0), array(globalData)
    328328    {
    329329    }
     
    339339    ExecState* exec = toJS(ctx);
    340340   
    341     JSPropertyNameArrayRef propertyNames = new OpaqueJSPropertyNameArray();
     341    JSPropertyNameArrayRef propertyNames = new OpaqueJSPropertyNameArray(&exec->globalData());
    342342    jsObject->getPropertyNames(exec, propertyNames->array);
    343343   
Note: See TracChangeset for help on using the changeset viewer.