[runtime-profiler] Use the OSR cache earlier if enter loop range of OSR cache
If function's SFI has OSR cache, once enter loop range of OSR cache, set OSR loop nesting level for matching condition of OSR (loop_depth < osr_level), soon later OSR will be triggered when executing bytecode JumpLoop which is entry of the OSR cache, then hit the OSR cache. This CL can improve JetStream2 case gaussian-blur by ~3%, it's introduced by 18 profiler ticks earlier use OSR code cache. Change-Id: Ibf404d74a4a32bc34974f129828c594c9d551355 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3379240Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Tao Pan <tao.pan@intel.com> Cr-Commit-Position: refs/heads/main@{#79064}
Showing
Please
register
or
sign in
to comment