зеркало из https://github.com/mozilla/gecko-dev.git
Removing CheckStackGrowthDirection. bug 242518. r=brendan, a=brendan
This commit is contained in:
Родитель
ef510ab28d
Коммит
bb996c225a
|
@ -1924,30 +1924,9 @@ JS_GetExternalStringGCType(JSRuntime *rt, JSString *str)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
/* FIXME: 242518 static */ void
|
|
||||||
CheckStackGrowthDirection(int *dummy1addr, jsuword limitAddr)
|
|
||||||
{
|
|
||||||
int dummy2;
|
|
||||||
|
|
||||||
#if JS_STACK_GROWTH_DIRECTION > 0
|
|
||||||
JS_ASSERT(dummy1addr < &dummy2);
|
|
||||||
#else
|
|
||||||
/* Stack grows downward, the common case on modern architectures. */
|
|
||||||
JS_ASSERT(&dummy2 < dummy1addr);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
JS_PUBLIC_API(void)
|
JS_PUBLIC_API(void)
|
||||||
JS_SetThreadStackLimit(JSContext *cx, jsuword limitAddr)
|
JS_SetThreadStackLimit(JSContext *cx, jsuword limitAddr)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
|
||||||
int dummy1;
|
|
||||||
|
|
||||||
CheckStackGrowthDirection(&dummy1, limitAddr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if JS_STACK_GROWTH_DIRECTION > 0
|
#if JS_STACK_GROWTH_DIRECTION > 0
|
||||||
if (limitAddr == 0)
|
if (limitAddr == 0)
|
||||||
limitAddr = (jsuword)-1;
|
limitAddr = (jsuword)-1;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче