mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Potential bustage fix for weird Windows compilers. r=red
This commit is contained in:
parent
255671b586
commit
61100d8fcf
@ -134,11 +134,7 @@ struct JSStackFrame {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus /* Aargh, LiveConnect, bug 442399. */
|
#ifdef __cplusplus /* Aargh, LiveConnect, bug 442399. */
|
||||||
void assertValidStackDepth(uintN depth) {
|
inline void assertValidStackDepth(uintN depth);
|
||||||
extern jsval *StackBase(JSStackFrame *fp);
|
|
||||||
JS_ASSERT(0 <= regs->sp - StackBase(this));
|
|
||||||
JS_ASSERT(depth <= uintptr_t(regs->sp - StackBase(this)));
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -156,6 +152,15 @@ StackBase(JSStackFrame *fp)
|
|||||||
return fp->slots + fp->script->nfixed;
|
return fp->slots + fp->script->nfixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus /* Aargh, LiveConnect, bug 442399. */
|
||||||
|
void
|
||||||
|
JSStackFrame::assertValidStackDepth(uintN depth)
|
||||||
|
{
|
||||||
|
JS_ASSERT(0 <= regs->sp - StackBase(this));
|
||||||
|
JS_ASSERT(depth <= uintptr_t(regs->sp - StackBase(this)));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static JS_INLINE uintN
|
static JS_INLINE uintN
|
||||||
GlobalVarCount(JSStackFrame *fp)
|
GlobalVarCount(JSStackFrame *fp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user