Bug 1813624 - Remove old IonBuilder warmup heuristic r=jandem

This was added in this [1] commit, but the actual purpose and intent have been
lost, though the comment has nevertheless survived.

[1]: https://hg.mozilla.org/mozilla-central/rev/251540232d8f8890458446fcb2e89f8a87b02cd7

Differential Revision: https://phabricator.services.mozilla.com/D168288
This commit is contained in:
Matthew Gaudet 2023-01-31 15:59:07 +00:00
Родитель 8a803fd80c
Коммит 16640a592e
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -13304,10 +13304,6 @@ bool CodeGenerator::link(JSContext* cx, const WarpSnapshot* snapshot) {
return false;
}
// Check to make sure we didn't have a mid-build invalidation. If so, we
// will trickle to jit::Compile() and return Method_Skipped.
uint32_t warmUpCount = script->getWarmUpCount();
IonCompilationId compilationId =
cx->runtime()->jitRuntime()->nextCompilationId();
JitZone* jitZone = cx->zone()->jitZone();
@ -13329,14 +13325,6 @@ bool CodeGenerator::link(JSContext* cx, const WarpSnapshot* snapshot) {
return true;
}
// IonMonkey could have inferred better type information during
// compilation. Since adding the new information to the actual type
// information can reset the usecount, increase it back to what it was
// before.
if (warmUpCount > script->getWarmUpCount()) {
script->incWarmUpCounter(warmUpCount - script->getWarmUpCount());
}
uint32_t argumentSlots = (gen->outerInfo().nargs() + 1) * sizeof(Value);
// We encode safepoints after the OSI-point offsets have been determined.