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

Issue 1008213002: [turbofan] Cache for reusing value vector nodes in frame states. (Closed)

Created:
5 years, 9 months ago by Jarin
Modified:
5 years, 9 months ago
Reviewers:
Benedikt Meurer
CC:
v8-dev, Michael Starzinger
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Cache for reusing parts of value vector nodes in frame states. Instead of the current approach of storing flat vectors in frame states (and possibly reusing the last vector in AST graph builder), this change list builds a tree for the values and tries to reuse the nodes for different frame states. At the moment, we only use this for the local variable part of frame state, but nothing prevents us from using this for all parts. This change provides two new classes: one for creating the tree (StateValuesCache) and one for iterating the trees (StateValuesAccess). BUG= Committed: https://crrev.com/cd67e97a7e002811c098b22bfffee44d5db73444 Cr-Commit-Position: refs/heads/master@{#27222}

Patch Set 1 #

Patch Set 2 : Attempt to make Win64 happy #

Patch Set 3 : Another attempt #

Total comments: 5

Patch Set 4 : Remove unused forward decl #

Patch Set 5 : Embed StateValueCache in AstGraphBuilder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+590 lines, -29 lines) Patch
M BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 4 chunks +13 lines, -3 lines 0 comments Download
M src/compiler/instruction-selector.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/compiler/instruction-selector.cc View 5 chunks +12 lines, -24 lines 0 comments Download
A src/compiler/state-values-utils.h View 1 2 3 1 chunk +113 lines, -0 lines 0 comments Download
A src/compiler/state-values-utils.cc View 1 2 1 chunk +293 lines, -0 lines 0 comments Download
A test/unittests/compiler/state-values-utils-unittest.cc View 1 1 chunk +149 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Jarin
Could you take a look, please?
5 years, 9 months ago (2015-03-15 10:08:00 UTC) #2
Jarin
On 2015/03/15 10:08:00, jarin wrote: > Could you take a look, please? (Adding Michi to ...
5 years, 9 months ago (2015-03-15 10:09:34 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1008213002/diff/40001/src/compiler/ast-graph-builder.h File src/compiler/ast-graph-builder.h (right): https://codereview.chromium.org/1008213002/diff/40001/src/compiler/ast-graph-builder.h#newcode102 src/compiler/ast-graph-builder.h:102: StateValuesCache* state_values_cache_; Just embed the object at this pointer. ...
5 years, 9 months ago (2015-03-16 10:18:33 UTC) #4
Benedikt Meurer
I think this looks good to me. But I need to take another look to ...
5 years, 9 months ago (2015-03-16 10:18:56 UTC) #5
Jarin
https://codereview.chromium.org/1008213002/diff/40001/src/compiler/ast-graph-builder.h File src/compiler/ast-graph-builder.h (right): https://codereview.chromium.org/1008213002/diff/40001/src/compiler/ast-graph-builder.h#newcode102 src/compiler/ast-graph-builder.h:102: StateValuesCache* state_values_cache_; On 2015/03/16 10:18:33, Benedikt Meurer wrote: > ...
5 years, 9 months ago (2015-03-16 10:26:33 UTC) #6
Benedikt Meurer
https://codereview.chromium.org/1008213002/diff/40001/src/compiler/ast-graph-builder.h File src/compiler/ast-graph-builder.h (right): https://codereview.chromium.org/1008213002/diff/40001/src/compiler/ast-graph-builder.h#newcode102 src/compiler/ast-graph-builder.h:102: StateValuesCache* state_values_cache_; "If it would otherwise make sense to ...
5 years, 9 months ago (2015-03-16 10:33:35 UTC) #7
Benedikt Meurer
LGTM once comment is addressed.
5 years, 9 months ago (2015-03-16 10:48:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1008213002/80001
5 years, 9 months ago (2015-03-16 13:37:56 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-16 13:43:07 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 13:43:24 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cd67e97a7e002811c098b22bfffee44d5db73444
Cr-Commit-Position: refs/heads/master@{#27222}

Powered by Google App Engine
This is Rietveld 408576698