mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Left brace style.
This commit is contained in:
parent
b3a96884a1
commit
ef8a767739
@ -41,19 +41,16 @@
|
|||||||
#include "jsinterp.cpp"
|
#include "jsinterp.cpp"
|
||||||
|
|
||||||
JSBool
|
JSBool
|
||||||
js_InitTracer(JSRuntime *rt) {
|
js_InitTracer(JSRuntime *rt)
|
||||||
|
{
|
||||||
#ifdef JS_THREADSAFE
|
#ifdef JS_THREADSAFE
|
||||||
JSTraceMonitor *tm = &rt->traceMonitor;
|
JSTraceMonitor *tm = &rt->traceMonitor;
|
||||||
JS_ASSERT(!tm->lock);
|
JS_ASSERT(!tm->lock);
|
||||||
tm->lock = JS_NEW_LOCK();
|
tm->lock = JS_NEW_LOCK();
|
||||||
if (!tm->lock)
|
if (!tm->lock)
|
||||||
goto bad;
|
|
||||||
return JS_TRUE;
|
|
||||||
bad:
|
|
||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
#else
|
|
||||||
return JS_TRUE;
|
|
||||||
#endif
|
#endif
|
||||||
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -67,7 +64,8 @@ bad:
|
|||||||
* with JS_ZERO.
|
* with JS_ZERO.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
js_GrowLoopTableIfNeeded(JSRuntime* rt, uint32 index) {
|
js_GrowLoopTableIfNeeded(JSRuntime* rt, uint32 index)
|
||||||
|
{
|
||||||
JSTraceMonitor *tm = &rt->traceMonitor;
|
JSTraceMonitor *tm = &rt->traceMonitor;
|
||||||
JS_ACQUIRE_LOCK(&tm->lock);
|
JS_ACQUIRE_LOCK(&tm->lock);
|
||||||
uint32 oldSize;
|
uint32 oldSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user