Left brace style.

This commit is contained in:
Brendan Eich 2008-05-31 10:17:40 -07:00
parent b3a96884a1
commit ef8a767739

View File

@ -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_FALSE;
return JS_TRUE;
bad:
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;