31 lines
869 B
Diff
31 lines
869 B
Diff
|
# HG changeset patch
|
||
|
# User Ian Stakenvicius <axs@gentoo.org>
|
||
|
# Parent 2ee9895e032c492705adaf213706d4260ca172c8
|
||
|
Fix JS_CHECK_STACK_SIZE define for stack-growing-up case (hppa)
|
||
|
|
||
|
Upstream bug 1189011
|
||
|
Gentoo bug 556196
|
||
|
|
||
|
diff --git a/js/src/jsfriendapi.h b/js/src/jsfriendapi.h
|
||
|
--- a/js/src/jsfriendapi.h
|
||
|
+++ b/js/src/jsfriendapi.h
|
||
|
@@ -15,17 +15,17 @@
|
||
|
#include "jsbytecode.h"
|
||
|
#include "jspubtd.h"
|
||
|
|
||
|
#include "js/CallArgs.h"
|
||
|
#include "js/CallNonGenericMethod.h"
|
||
|
#include "js/Class.h"
|
||
|
|
||
|
#if JS_STACK_GROWTH_DIRECTION > 0
|
||
|
-# define JS_CHECK_STACK_SIZE(limit, sp) (MOZ_LIKELY(((uintptr_t)(sp) < (limit)))
|
||
|
+# define JS_CHECK_STACK_SIZE(limit, sp) (MOZ_LIKELY((uintptr_t)(sp) < (limit)))
|
||
|
#else
|
||
|
# define JS_CHECK_STACK_SIZE(limit, sp) (MOZ_LIKELY((uintptr_t)(sp) > (limit)))
|
||
|
#endif
|
||
|
|
||
|
class JSAtom;
|
||
|
struct JSErrorFormatString;
|
||
|
class JSLinearString;
|
||
|
struct JSJitInfo;
|