mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1118911 - GetPcScript should care about bailout frames. r=jandem
This commit is contained in:
parent
a6068b03ba
commit
6c4bcd4d3a
9
js/src/jit-test/tests/ion/recover-lambdas-bug1118911.js
Normal file
9
js/src/jit-test/tests/ion/recover-lambdas-bug1118911.js
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
function test() {
|
||||
function f()
|
||||
k.apply(this, arguments);
|
||||
if (undefined >> undefined !== 0) {}
|
||||
for (var [ v , c ] = 0 in this.tracemonkey) { }
|
||||
}
|
||||
try { test(); } catch(exc1) {}
|
||||
try { test(); } catch(exc1) {}
|
@ -1495,10 +1495,11 @@ GetPcScript(JSContext *cx, JSScript **scriptRes, jsbytecode **pcRes)
|
||||
return;
|
||||
|
||||
// Lookup failed: undertake expensive process to recover the innermost inlined frame.
|
||||
++it; // Skip exit frame.
|
||||
if (!it.isBailoutJS())
|
||||
++it; // Skip exit frame.
|
||||
jsbytecode *pc = nullptr;
|
||||
|
||||
if (it.isIonJS()) {
|
||||
if (it.isIonJS() || it.isBailoutJS()) {
|
||||
InlineFrameIterator ifi(cx, &it);
|
||||
*scriptRes = ifi.script();
|
||||
pc = ifi.pc();
|
||||
|
Loading…
x
Reference in New Issue
Block a user