Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Issue 2450233002: Check if the frame is optimized before marking a function for optimization. (Closed)

Created:
4 years, 1 month ago by mythria
Modified:
4 years, 1 month ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Check if the frame is optimized before marking a function for optimization. When checking for marking a function for optimization, we had a check if the function is already optimized to return early. This works in non-OSR cases. For Turbofan OSR even when the current execution of the function has already been optimized, the function itself will not be replaced with optimized code. Hence, we may end up checking a function that is already marked for optimization again. A check for the frame being optimized avoids these checks. BUG= Committed: https://crrev.com/8daff84d86979be2d06f9f4ba03e6009dd047212 Cr-Commit-Position: refs/heads/master@{#40760}

Patch Set 1 #

Total comments: 4

Patch Set 2 : removed check for FLAG_ignition_OSR from MaybeOSRIgnition. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M src/runtime-profiler.cc View 1 3 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
mythria
Hi Michi, this is the cl to change checks from function being optimized to frame ...
4 years, 1 month ago (2016-10-31 16:02:03 UTC) #6
Michael Starzinger
LGTM. https://codereview.chromium.org/2450233002/diff/1/src/runtime-profiler.cc File src/runtime-profiler.cc (right): https://codereview.chromium.org/2450233002/diff/1/src/runtime-profiler.cc#newcode344 src/runtime-profiler.cc:344: } else if (MaybeOSRIgnition(function, frame)) { On 2016/10/31 ...
4 years, 1 month ago (2016-11-03 11:40:27 UTC) #7
mythria
Thanks Michi. I removed the check on the flag. https://codereview.chromium.org/2450233002/diff/1/src/runtime-profiler.cc File src/runtime-profiler.cc (right): https://codereview.chromium.org/2450233002/diff/1/src/runtime-profiler.cc#newcode344 src/runtime-profiler.cc:344: ...
4 years, 1 month ago (2016-11-04 11:12:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2450233002/20001
4 years, 1 month ago (2016-11-04 11:12:41 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-04 11:14:38 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:22:32 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8daff84d86979be2d06f9f4ba03e6009dd047212
Cr-Commit-Position: refs/heads/master@{#40760}

Powered by Google App Engine
This is Rietveld 408576698