0beaa66339
When deciding whether to inline a function that has already been optimized once, take a look at how many levels of inlining took place when it was optimized stand-alone. If we don't have that much depth budget left, don't inline. This is an attempt to avoid the situation where we inline a function that was already optimized, and then fail to inline important things that are in the inner loop. The benchmarking server shows about a 3% improvement on average when running the DartJS compiler. This is a reland of https://codereview.chromium.org/2994283002/ Bug R=vegorov@google.com Change-Id: Ib2d1f0daad5d68d140bf0266c362dded7a4ea36b Reviewed-on: https://dart-review.googlesource.com/7706 Commit-Queue: Erik Corry <erikcorry@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>