зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1353358 - Support JSOP_OPTIMIZE_SPREADCALL in Ion r=jandem
MozReview-Commit-ID: H3iyhI0Ca2u --HG-- extra : rebase_source : 9227e64957a1ef1d0cfc259c4f2023bb9464c7ba
This commit is contained in:
Родитель
4ea9a1c40a
Коммит
9c223bd7d3
|
@ -2322,6 +2322,16 @@ IonBuilder::inspectOpcode(JSOp op)
|
||||||
pushConstant(MagicValue(JS_IS_CONSTRUCTING));
|
pushConstant(MagicValue(JS_IS_CONSTRUCTING));
|
||||||
return Ok();
|
return Ok();
|
||||||
|
|
||||||
|
case JSOP_OPTIMIZE_SPREADCALL:
|
||||||
|
{
|
||||||
|
// Assuming optimization isn't available doesn't affect correctness.
|
||||||
|
// TODO: Investigate dynamic checks.
|
||||||
|
MDefinition* arr = current->peek(-1);
|
||||||
|
arr->setImplicitlyUsedUnchecked();
|
||||||
|
pushConstant(BooleanValue(false));
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -336,7 +336,6 @@ ControlFlowGenerator::snoopControlFlow(JSOp op)
|
||||||
case JSOP_TRY:
|
case JSOP_TRY:
|
||||||
return processTry();
|
return processTry();
|
||||||
|
|
||||||
case JSOP_OPTIMIZE_SPREADCALL:
|
|
||||||
case JSOP_THROWMSG:
|
case JSOP_THROWMSG:
|
||||||
// Not implemented yet.
|
// Not implemented yet.
|
||||||
return ControlStatus::Abort;
|
return ControlStatus::Abort;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче