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

Issue 2592703002: abstract_code: return compiled code for compiled shared funcs (Closed)

Created:
4 years ago by Leszek Swirski
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

abstract_code: return compiled code for compiled shared funcs SharedFunctionInfo's abstract_code was returning the bytecode array whenever SharedFunctionInfo had a bytecode array, even if the function was compiled (e.g. tiered up to FCG). This meant that abstract_code could return code that is not actually the code that will run, which was causing problems in profiling as the sampled PC did not match the known code offset. This patch changes both SharedFunctionInfo and JSFunction to return the bytecode if-and-only-if they are not compiled and have a bytecode array to return, or they already point to the interpreter trampoline. BUG=v8:5758 Review-Url: https://codereview.chromium.org/2592703002 Cr-Commit-Position: refs/heads/master@{#41894} Committed: https://chromium.googlesource.com/v8/v8/+/679b31c21425ecdd86c40a8a02ac131b72f7bc6b

Patch Set 1 #

Patch Set 2 : Add missing negation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/objects-inl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
Leszek Swirski
Hi all, I've added a bunch of reviewers for this because it's a behavioral change ...
4 years ago (2016-12-20 15:18:16 UTC) #4
Benedikt Meurer
Sounds reasonable to me. LGTM from my side.
4 years ago (2016-12-21 05:44:34 UTC) #11
mvstanton
LGTM.
4 years ago (2016-12-21 12:05:39 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/2592703002/20001
4 years ago (2016-12-21 15:12:40 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/679b31c21425ecdd86c40a8a02ac131b72f7bc6b
4 years ago (2016-12-21 15:14:23 UTC) #17
Leszek Swirski
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2591223002/ by leszeks@chromium.org. ...
4 years ago (2016-12-21 15:41:44 UTC) #18
rmcilroy
I'm not sure about this change. I think it will impact the debugger, which previously ...
4 years ago (2016-12-21 15:49:57 UTC) #20
Leszek Swirski
On 2016/12/21 15:49:57, rmcilroy (OOO) wrote: > I'm not sure about this change. I think ...
4 years ago (2016-12-21 15:54:51 UTC) #21
Yang
On 2016/12/21 15:54:51, Leszek Swirski wrote: > On 2016/12/21 15:49:57, rmcilroy (OOO) wrote: > > ...
4 years ago (2016-12-21 16:30:31 UTC) #22
Leszek Swirski
3 years, 11 months ago (2017-01-03 11:10:29 UTC) #23
Message was sent while issue was closed.
Looking at an alternative fix in https://codereview.chromium.org/2603333002
after f2f with Ross.

Powered by Google App Engine
This is Rietveld 408576698