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

Issue 1466643002: [turbofan] Initial support for Array constructor specialization. (Closed)

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

Description

[turbofan] Initial support for Array constructor specialization. Introduce a JSCreateArray operator that represents the Array constructor, and lower call and construct calls to the Array constructor to JSCreateArray. Currently we don't yet replace that with an inline allocation, but always use the specialized stubs for the Array constructor. This saves a lot of unnecessary deopts and elements transitions because now we can actually consume the allocation site feedback for the transitions. R=mstarzinger@chromium.org BUG=v8:4470 LOG=n Committed: https://crrev.com/aeb41de0e64ad055a79ebd55f5d9930345500949 Cr-Commit-Position: refs/heads/master@{#32145}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Addressed Michi's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+460 lines, -41 lines) Patch
M src/compiler/ast-graph-builder.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/compiler/js-call-reducer.h View 2 chunks +11 lines, -6 lines 0 comments Download
M src/compiler/js-call-reducer.cc View 1 10 chunks +147 lines, -13 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 3 chunks +31 lines, -1 line 0 comments Download
M src/compiler/js-operator.h View 1 5 chunks +54 lines, -1 line 0 comments Download
M src/compiler/js-operator.cc View 1 5 chunks +79 lines, -4 lines 0 comments Download
M src/compiler/js-typed-lowering.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 3 chunks +80 lines, -0 lines 0 comments Download
M src/compiler/node-properties.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/node-properties.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/compiler/opcodes.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/operator-properties.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/pipeline.cc View 3 chunks +10 lines, -9 lines 0 comments Download
M src/compiler/typer.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/types.cc View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
Benedikt Meurer
5 years, 1 month ago (2015-11-20 10:38:56 UTC) #1
Benedikt Meurer
Hey Michi, This is the initial support for JSCreateArray, no fancy optimizations yet. Please take ...
5 years, 1 month ago (2015-11-20 11:33:26 UTC) #2
Michael Starzinger
LGTM. https://codereview.chromium.org/1466643002/diff/1/src/compiler/js-operator.h File src/compiler/js-operator.h (right): https://codereview.chromium.org/1466643002/diff/1/src/compiler/js-operator.h#newcode459 src/compiler/js-operator.h:459: size_t arity, VectorSlotPair const& feedback = VectorSlotPair()); nit: ...
5 years, 1 month ago (2015-11-20 12:06:48 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1466643002/diff/1/src/compiler/js-operator.h File src/compiler/js-operator.h (right): https://codereview.chromium.org/1466643002/diff/1/src/compiler/js-operator.h#newcode459 src/compiler/js-operator.h:459: size_t arity, VectorSlotPair const& feedback = VectorSlotPair()); On 2015/11/20 ...
5 years, 1 month ago (2015-11-20 12:28:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466643002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466643002/20001
5 years, 1 month ago (2015-11-20 12:29:42 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-20 12:50:07 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-20 12:50:21 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/aeb41de0e64ad055a79ebd55f5d9930345500949
Cr-Commit-Position: refs/heads/master@{#32145}

Powered by Google App Engine
This is Rietveld 408576698