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

Issue 1097963002: [turbofan] Use FastCloneShallow[Array|Object]Stub if possible. (Closed)

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

Description

[turbofan] Use FastCloneShallow[Array|Object]Stub if possible. This allows the JSIntrinsicLowering to optimize the cloning of literal boilerplate objects using either the FastCloneShallowArrayStub or the FastCloneShallowObjectStub when applicable. R=mvstanton@chromium.org Committed: https://crrev.com/d1597b7d22d4bd7790715d486b4ceb404310adad Cr-Commit-Position: refs/heads/master@{#27974}

Patch Set 1 #

Patch Set 2 : Fix typo. #

Patch Set 3 : Add tests. #

Patch Set 4 : Fix may_store_doubles awesomeness. #

Patch Set 5 : Simplify. #

Total comments: 4

Patch Set 6 : Addressed comments #

Total comments: 4

Patch Set 7 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -7 lines) Patch
M src/ast.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M src/code-factory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/code-factory.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 1 2 3 4 5 6 3 chunks +62 lines, -0 lines 0 comments Download
M src/compiler/linkage.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M test/unittests/compiler/js-intrinsic-lowering-unittest.cc View 1 2 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Michael Starzinger
5 years, 8 months ago (2015-04-20 17:29:15 UTC) #2
mvstanton
Looks good! I just have a request to use kShallowProperties in one more place. https://codereview.chromium.org/1097963002/diff/80001/src/ast.h ...
5 years, 8 months ago (2015-04-21 12:59:14 UTC) #3
mvstanton
And LGTM, too. :)
5 years, 8 months ago (2015-04-21 12:59:27 UTC) #4
Michael Starzinger
https://codereview.chromium.org/1097963002/diff/80001/src/ast.h File src/ast.h (right): https://codereview.chromium.org/1097963002/diff/80001/src/ast.h#newcode1511 src/ast.h:1511: flags |= kShallowProperties; On 2015/04/21 12:59:14, mvstanton wrote: > ...
5 years, 8 months ago (2015-04-21 13:48:36 UTC) #5
titzer
lgtm https://codereview.chromium.org/1097963002/diff/100001/src/compiler/js-intrinsic-lowering.cc File src/compiler/js-intrinsic-lowering.cc (right): https://codereview.chromium.org/1097963002/diff/100001/src/compiler/js-intrinsic-lowering.cc#newcode134 src/compiler/js-intrinsic-lowering.cc:134: int length = mconst.Value().handle()->length() / 2; Can we ...
5 years, 8 months ago (2015-04-21 14:02:26 UTC) #6
Michael Starzinger
https://codereview.chromium.org/1097963002/diff/100001/src/compiler/js-intrinsic-lowering.cc File src/compiler/js-intrinsic-lowering.cc (right): https://codereview.chromium.org/1097963002/diff/100001/src/compiler/js-intrinsic-lowering.cc#newcode134 src/compiler/js-intrinsic-lowering.cc:134: int length = mconst.Value().handle()->length() / 2; On 2015/04/21 14:02:26, ...
5 years, 8 months ago (2015-04-21 14:35:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097963002/120001
5 years, 8 months ago (2015-04-21 15:22:01 UTC) #10
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-21 15:43:35 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 04:10:26 UTC) #12
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d1597b7d22d4bd7790715d486b4ceb404310adad
Cr-Commit-Position: refs/heads/master@{#27974}

Powered by Google App Engine
This is Rietveld 408576698