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

Issue 2681773004: [FeedbackVector] Clarify the way the feedback vector is installed. (Closed)

Created:
3 years, 10 months ago by mvstanton
Modified:
3 years, 6 months ago
Reviewers:
Igor Sheludko
CC:
v8-reviews_googlegroups.com, Michael Hablich
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[FeedbackVector] Clarify the way the feedback vector is installed. Installing a feedback vector in a closure is a multi-step process. The closure actually points to a Cell that points to a feedback vector or undefined if we haven't created one yet. This happens because we often create closures before we've compiled the code. JSFunction::EnsureLiterals is the bottleneck in our system that creates a feedback vector if necessary. The predicates it used to determine what to do were arcane. This CL allows it to think it terms of state, and clarifies the reading of that useful bottleneck. I also did a few renamings in parts of the code that referred to a "literals array," which we don't have any more. BUG= Review-Url: https://codereview.chromium.org/2681773004 Cr-Commit-Position: refs/heads/master@{#43035} Committed: https://chromium.googlesource.com/v8/v8/+/a1bba7fe3b9e52a5c5f556060b563427404231be

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code comments+REBASE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -49 lines) Patch
M src/builtins/builtins-constructor.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M src/compiler.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/objects.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/objects.cc View 1 1 chunk +18 lines, -30 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
M src/runtime/runtime-interpreter.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
mvstanton
Hi Igor, Here is some cleanup that accumulated in the last weeks. PTAL, thanks!
3 years, 10 months ago (2017-02-08 10:03:54 UTC) #2
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/2681773004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2681773004/diff/1/src/objects.cc#newcode12113 src/objects.cc:12113: FeedbackVectorState state = function->GetFeedbackVectorState(); Maybe it ...
3 years, 10 months ago (2017-02-08 10:24:11 UTC) #4
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/2681773004/20001
3 years, 10 months ago (2017-02-08 10:36:39 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 11:51:13 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/a1bba7fe3b9e52a5c5f556060b563427404...

Powered by Google App Engine
This is Rietveld 408576698