Changeset 35853 in webkit for trunk/JavaScriptCore/API/JSObjectRef.cpp
- Timestamp:
- Aug 20, 2008, 12:23:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.cpp
r35775 r35853 71 71 ExecState* exec = toJS(ctx); 72 72 exec->globalData().heap->registerThread(); 73 JSLock lock(exec); 73 74 74 75 if (!jsClass) … … 86 87 ExecState* exec = toJS(ctx); 87 88 exec->globalData().heap->registerThread(); 89 JSLock lock(exec); 88 90 89 91 Identifier nameID = name ? name->identifier(exec) : Identifier(exec, "anonymous"); … … 96 98 ExecState* exec = toJS(ctx); 97 99 exec->globalData().heap->registerThread(); 100 JSLock lock(exec); 98 101 99 102 JSValue* jsPrototype = jsClass … … 110 113 ExecState* exec = toJS(ctx); 111 114 exec->globalData().heap->registerThread(); 115 JSLock lock(exec); 112 116 113 117 Identifier nameID = name ? name->identifier(exec) : Identifier(exec, "anonymous"); … … 146 150 ExecState* exec = toJS(ctx); 147 151 exec->globalData().heap->registerThread(); 152 JSLock lock(exec); 148 153 149 154 JSObject* jsObject = toJS(object); … … 156 161 ExecState* exec = toJS(ctx); 157 162 exec->globalData().heap->registerThread(); 163 JSLock lock(exec); 158 164 159 165 JSObject* jsObject = toJS(object); … … 172 178 ExecState* exec = toJS(ctx); 173 179 exec->globalData().heap->registerThread(); 180 JSLock lock(exec); 174 181 175 182 JSObject* jsObject = toJS(object); … … 193 200 ExecState* exec = toJS(ctx); 194 201 exec->globalData().heap->registerThread(); 202 JSLock lock(exec); 195 203 196 204 JSObject* jsObject = toJS(object); … … 210 218 ExecState* exec = toJS(ctx); 211 219 exec->globalData().heap->registerThread(); 220 JSLock lock(exec); 212 221 213 222 JSObject* jsObject = toJS(object); … … 226 235 ExecState* exec = toJS(ctx); 227 236 exec->globalData().heap->registerThread(); 237 JSLock lock(exec); 228 238 229 239 JSObject* jsObject = toJS(object); … … 275 285 ExecState* exec = toJS(ctx); 276 286 exec->globalData().heap->registerThread(); 287 JSLock lock(exec); 277 288 278 289 JSObject* jsObject = toJS(object); … … 312 323 ExecState* exec = toJS(ctx); 313 324 exec->globalData().heap->registerThread(); 325 JSLock lock(exec); 314 326 315 327 JSObject* jsObject = toJS(object); … … 350 362 ExecState* exec = toJS(ctx); 351 363 exec->globalData().heap->registerThread(); 364 JSLock lock(exec); 352 365 353 366 JSGlobalData* globalData = &exec->globalData(); … … 373 386 void JSPropertyNameArrayRelease(JSPropertyNameArrayRef array) 374 387 { 375 if (--array->refCount == 0) 388 if (--array->refCount == 0) { 389 JSLock lock(array->globalData->isSharedInstance); 376 390 delete array; 391 } 377 392 } 378 393 … … 392 407 393 408 propertyNames->globalData()->heap->registerThread(); 409 JSLock lock(propertyNames->globalData()->isSharedInstance); 394 410 395 411 propertyNames->add(propertyName->identifier(propertyNames->globalData()));
Note:
See TracChangeset
for help on using the changeset viewer.