Fixed another bogus assertion (bug 522569, r=brendan).

This commit is contained in:
David Anderson 2009-10-15 15:57:15 -07:00
parent 2cb9ec03b0
commit 9936709fd7

View File

@ -6374,7 +6374,12 @@ ExecuteTree(JSContext* cx, Fragment* f, uintN& inlineCallCount,
state->sp = stack_buffer + (ti->nativeStackBase/sizeof(double));
state->eos = stack_buffer + MAX_NATIVE_STACK_SLOTS;
JS_ASSERT(JS_MAX_INLINE_CALL_COUNT > inlineCallCount);
/*
* inlineCallCount has already been incremented, if being invoked from
* EnterFrame. It is okay to have a 0-frame restriction since the JIT
* might not need any frames.
*/
JS_ASSERT(inlineCallCount <= JS_MAX_INLINE_CALL_COUNT);
/* Set up the native call stack frame. */
FrameInfo* callstack_buffer[MAX_CALL_STACK_ENTRIES];