Ignore:
Timestamp:
Aug 20, 2008, 12:23:06 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoff Garen.

Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSValueRef.cpp

    r35830 r35853  
    115115    ExecState* exec = toJS(ctx);
    116116    exec->globalData().heap->registerThread();
     117    JSLock lock(exec);
    117118
    118119    JSValue* jsA = toJS(a);
     
    141142    ExecState* exec = toJS(ctx);
    142143    exec->globalData().heap->registerThread();
     144    JSLock lock(exec);
    143145
    144146    JSValue* jsValue = toJS(value);
     
    174176    ExecState* exec = toJS(ctx);
    175177    exec->globalData().heap->registerThread();
     178    JSLock lock(exec);
    176179
    177180    return toRef(jsNumber(exec, value));
     
    182185    ExecState* exec = toJS(ctx);
    183186    exec->globalData().heap->registerThread();
     187    JSLock lock(exec);
    184188
    185189    return toRef(jsString(exec, string->ustring()));
     
    197201    ExecState* exec = toJS(ctx);
    198202    exec->globalData().heap->registerThread();
     203    JSLock lock(exec);
    199204
    200205    JSValue* jsValue = toJS(value);
     
    214219    ExecState* exec = toJS(ctx);
    215220    exec->globalData().heap->registerThread();
     221    JSLock lock(exec);
    216222
    217223    JSValue* jsValue = toJS(value);
     
    231237    ExecState* exec = toJS(ctx);
    232238    exec->globalData().heap->registerThread();
     239    JSLock lock(exec);
    233240
    234241    JSValue* jsValue = toJS(value);
     
    248255    ExecState* exec = toJS(ctx);
    249256    exec->globalData().heap->registerThread();
     257    JSLock lock(exec);
    250258
    251259    JSValue* jsValue = toJS(value);
     
    257265    ExecState* exec = toJS(ctx);
    258266    exec->globalData().heap->registerThread();
     267    JSLock lock(exec);
    259268
    260269    JSValue* jsValue = toJS(value);
Note: See TracChangeset for help on using the changeset viewer.