mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180054 - Fix bogus assert. (r=jandem)
This commit is contained in:
parent
995f19e9f9
commit
e6ae684afe
6
js/src/jit-test/tests/basic/bug1180054.js
Normal file
6
js/src/jit-test/tests/basic/bug1180054.js
Normal file
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user