Revert "Bug 797496 - Ignore hidden PC even with try notes. r=luke"

This reverts changeset 3b7a134bc3aa.
This commit is contained in:
Nicolas B. Pierron 2012-10-04 12:35:03 -07:00
parent 795fee3471
commit 1b58fc7bc1
2 changed files with 20 additions and 28 deletions

View File

@ -1,8 +0,0 @@
// |jit-test| error: TypeError
var set = Set(['a']);
var n = 5;
for (let v of set) {
if (n === 0)
break;
let g = set(Set(0xffffffff, n), 1);
}

View File

@ -6436,11 +6436,16 @@ ReconstructPCStack(JSContext *cx, JSScript *script, jsbytecode *target, jsbyteco
continue;
}
if (!script->hasTrynotes()) {
/* Use the normal pc count if continue after the goto */
hpcdepth = unsigned(-1);
continue;
}
/*
* If we do not follow a goto we look for another mean to continue
* at the next PC.
*/
if (script->hasTrynotes()) {
JSTryNote *tn = script->trynotes()->vector;
JSTryNote *tnEnd = tn + script->trynotes()->length;
for (; tn != tnEnd; tn++) {
@ -6457,7 +6462,6 @@ ReconstructPCStack(JSContext *cx, JSScript *script, jsbytecode *target, jsbyteco
pc = script->main() + tn->start + tn->length;
continue;
}
}
/*
* JSOP_THROWING compensates for hidden JSOP_DUP at the start of the
@ -6465,10 +6469,6 @@ ReconstructPCStack(JSContext *cx, JSScript *script, jsbytecode *target, jsbyteco
*/
if (JSOp(*(pc + oplen)) == JSOP_THROWING)
hpcdepth = pcdepth + 2;
else
/* Use the normal pc count if continue after the goto */
hpcdepth = unsigned(-1);
continue;
}