зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1180054 - Fix bogus assert. (r=jandem)
This commit is contained in:
Родитель
5a40263ef9
Коммит
20ec4ede3d
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче