Bug 1180054 - Fix bogus assert. (r=jandem)

This commit is contained in:
Eric Faust 2015-08-19 11:19:47 -07:00
parent 995f19e9f9
commit e6ae684afe
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,6 @@
function entryFrame_1(d) {
assertJitStackInvariants();
}
for (i = 0Xa; i < 40; i++) {
new entryFrame_1();
}

View File

@ -3292,7 +3292,9 @@ AssertJitStackInvariants(JSContext* cx)
#if defined(JS_CODEGEN_X86)
+ sizeof(void*) /* frame pointer */
#endif
+ sizeof(Value) * (frames.callee()->nargs() + 1 /* |this| argument */ )
+ sizeof(Value) * (frames.callee()->nargs() +
1 /* |this| argument */ +
frames.isConstructing() /* new.target */)
+ sizeof(JitFrameLayout);
MOZ_RELEASE_ASSERT(frameSize >= expectedFrameSize,
"The frame is large enough to hold all arguments");