mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Potential bustage fix for weird Windows compilers. r=red
This commit is contained in:
parent
d0c7618343
commit
78c5a74e9b
@ -134,11 +134,7 @@ struct JSStackFrame {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus /* Aargh, LiveConnect, bug 442399. */
|
||||
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)));
|
||||
}
|
||||
inline void assertValidStackDepth(uintN depth);
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -156,6 +152,15 @@ StackBase(JSStackFrame *fp)
|
||||
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
|
||||
GlobalVarCount(JSStackFrame *fp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user