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

This commit is contained in:
Eric Faust 2015-08-19 11:19:47 -07:00
Родитель 5a40263ef9
Коммит 20ec4ede3d
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

@ -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");