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

Issue 2354853002: [turbofan] Lower ConsString creation in JSTypedLowering. (Closed)

Created:
4 years, 3 months ago by Benedikt Meurer
Modified:
4 years, 3 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Lower ConsString creation in JSTypedLowering. Extract String feedback on Add operation and utilize to lower ConsString creation in JSTypedLowering when we know that a String addition will definitely result in the creation of a ConsString. Note that Crankshaft has to guard the potential length overflow of the resulting string with an eager deoptimization exit, while we can safely throw an exception in that case. Also note that the bytecode pipeline does not currently provide the String feedback for the addition, which has to be added. BUG=v8:5267 R=jarin@chromium.org Committed: https://crrev.com/29dd7fc5ed2490947bd951efa7d49e54c41dfbdc Cr-Commit-Position: refs/heads/master@{#39540}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -0 lines) Patch
M src/compiler/js-operator.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 4 chunks +145 lines, -0 lines 0 comments Download
M src/compiler/type-hint-analyzer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/type-hints.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/type-hints.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A test/mjsunit/compiler/string-add-try-catch.js View 1 chunk +39 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (7 generated)
Benedikt Meurer
4 years, 3 months ago (2016-09-20 09:37:58 UTC) #1
Jarin
lgtm (once the redundant store is removed) https://codereview.chromium.org/2354853002/diff/1/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (right): https://codereview.chromium.org/2354853002/diff/1/src/compiler/js-typed-lowering.cc#newcode80 src/compiler/js-typed-lowering.cc:80: bool ShouldCreateConsString() ...
4 years, 3 months ago (2016-09-20 10:27:05 UTC) #6
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/2354853002/20001
4 years, 3 months ago (2016-09-20 10:28:38 UTC) #9
Benedikt Meurer
https://codereview.chromium.org/2354853002/diff/1/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (right): https://codereview.chromium.org/2354853002/diff/1/src/compiler/js-typed-lowering.cc#newcode678 src/compiler/js-typed-lowering.cc:678: effect, control); On 2016/09/20 10:27:04, Jarin wrote: > Redundant ...
4 years, 3 months ago (2016-09-20 10:40:02 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-20 11:00:23 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 11:06:33 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/29dd7fc5ed2490947bd951efa7d49e54c41dfbdc
Cr-Commit-Position: refs/heads/master@{#39540}

Powered by Google App Engine
This is Rietveld 408576698