bug 464334 - removal of no longer applicable asserts that sp <= static spdepth. r=brendan a1.9.1b2=beltzner

This commit is contained in:
Igor Bukanov
2008-11-17 13:48:57 +01:00
parent 9a348fe458
commit 7a2ae1a358
3 changed files with 4 additions and 8 deletions

View File

@@ -4987,7 +4987,6 @@ js_DecompileValueGenerator(JSContext *cx, intN spindex, jsval v,
* it that caused exception, see bug 328664.
*/
stackBase = StackBase(fp);
JS_ASSERT((size_t) (regs->sp - stackBase) <= StackDepth(script));
sp = regs->sp;
do {
if (sp == stackBase) {
@@ -4998,9 +4997,10 @@ js_DecompileValueGenerator(JSContext *cx, intN spindex, jsval v,
if (sp >= stackBase + pcdepth) {
/*
* This happens when the value comes from a temporary slot
* that the interpreter uses for GC roots. Assume that it is
* fp->pc that caused the exception.
* The value comes from a temporary slot that the interpreter
* uses for GC roots or when JSOP_APPLY extended the stack to
* fit the argument array elements. Assume that it is the
* current PC that caused the exception.
*/
pc = regs->pc;
} else {