Bug 1242798 - Don't OSR into Ion on debuggee frames. (r=jandem)

This commit is contained in:
Shu-yu Guo 2016-02-02 17:56:23 -08:00
parent f3c0ff979d
commit e81d99ae7a
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
var g = newGlobal();
var dbg = new Debugger(g);
g.eval("" + function f(c) {
if (c == 0)
return;
if (c == 2)
debugger;
f(c-1);
for (var i = 0; i < 100; i++)
Debugger += newGlobal('#15: myObj.parseFloat !== parseFloat');
});
dbg.onDebuggerStatement = function (frame) {};
g.eval("f(2)");

View File

@ -142,7 +142,8 @@ DoWarmUpCounterFallbackOSR(JSContext* cx, BaselineFrame* frame, ICWarmUpCounter_
return false;
if (!script->hasIonScript() || script->ionScript()->osrPc() != pc ||
script->ionScript()->bailoutExpected())
script->ionScript()->bailoutExpected() ||
frame->isDebuggee())
{
return true;
}