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

Issue 1868963002: [builtins] Migrate String.prototype.charCodeAt and String.prototype.charAt to TurboFan. (Closed)

Created:
4 years, 8 months ago by Benedikt Meurer
Modified:
4 years, 2 months ago
Reviewers:
epertoso, Igor Sheludko
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

[builtins] Migrate String.prototype.charCodeAt and String.prototype.charAt to TurboFan. Make these builtins fast by default w/o relying on the %_StringCharCodeAt and %_StringCharAt intrinsics, which we cannot deal with well in TurboFan (and ignition). CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_nosnap_dbg,v8_linux_blink_rel R=epertoso@chromium.org Committed: https://crrev.com/43d3331d87f68ea7efa1b58f559f33f60e5dacfb Cr-Commit-Position: refs/heads/master@{#35350} Committed: https://crrev.com/253a16f690ab593a95249c34ded9df477ad9a54c Cr-Commit-Position: refs/heads/master@{#35402} Committed: https://crrev.com/02ccb0417b5c109e1883f12f81798b1a0f4d9c6e Cr-Commit-Position: refs/heads/master@{#35411}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix #

Patch Set 3 : REBASE #

Patch Set 4 : Fix typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -40 lines) Patch
M src/bootstrapper.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M src/builtins.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M src/builtins.cc View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
M src/compiler/code-stub-assembler.h View 1 2 6 chunks +28 lines, -0 lines 0 comments Download
M src/compiler/code-stub-assembler.cc View 1 2 3 8 chunks +357 lines, -2 lines 1 comment Download
M src/js/messages.js View 4 chunks +2 lines, -3 lines 0 comments Download
M src/js/string.js View 4 chunks +0 lines, -34 lines 0 comments Download
M src/runtime/runtime.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/runtime/runtime-strings.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
Benedikt Meurer
4 years, 8 months ago (2016-04-07 11:17:53 UTC) #1
Benedikt Meurer
Hey Enrico, This migrates two problematic users of %_String intrinsics, which yields a nice improvement ...
4 years, 8 months ago (2016-04-07 11:19:17 UTC) #2
epertoso
https://codereview.chromium.org/1868963002/diff/1/src/compiler/code-stub-assembler.cc File src/compiler/code-stub-assembler.cc (right): https://codereview.chromium.org/1868963002/diff/1/src/compiler/code-stub-assembler.cc#newcode1267 src/compiler/code-stub-assembler.cc:1267: // Allocate a new SeqTwoByteString for {code}. Is this ...
4 years, 8 months ago (2016-04-07 14:31:10 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1868963002/diff/1/src/compiler/code-stub-assembler.cc File src/compiler/code-stub-assembler.cc (right): https://codereview.chromium.org/1868963002/diff/1/src/compiler/code-stub-assembler.cc#newcode1267 src/compiler/code-stub-assembler.cc:1267: // Allocate a new SeqTwoByteString for {code}. Ah, damn ...
4 years, 8 months ago (2016-04-08 04:18:42 UTC) #4
epertoso
lgtm
4 years, 8 months ago (2016-04-08 08:27:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868963002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868963002/20001
4 years, 8 months ago (2016-04-08 10:18:44 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-08 10:20:55 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/43d3331d87f68ea7efa1b58f559f33f60e5dacfb Cr-Commit-Position: refs/heads/master@{#35350}
4 years, 8 months ago (2016-04-08 10:21:45 UTC) #10
Michael Hablich
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1870993002/ by hablich@chromium.org. ...
4 years, 8 months ago (2016-04-08 11:24:05 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868963002/40001
4 years, 8 months ago (2016-04-12 06:59:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868963002/40001
4 years, 8 months ago (2016-04-12 07:02:00 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-12 07:50:39 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/253a16f690ab593a95249c34ded9df477ad9a54c Cr-Commit-Position: refs/heads/master@{#35402}
4 years, 8 months ago (2016-04-12 07:51:29 UTC) #23
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1877263002/ by machenbach@chromium.org. ...
4 years, 8 months ago (2016-04-12 09:43:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868963002/60001
4 years, 8 months ago (2016-04-12 09:51:48 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-12 10:29:58 UTC) #31
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/02ccb0417b5c109e1883f12f81798b1a0f4d9c6e Cr-Commit-Position: refs/heads/master@{#35411}
4 years, 8 months ago (2016-04-12 10:31:36 UTC) #33
Igor Sheludko
4 years, 2 months ago (2016-09-28 16:00:23 UTC) #35
Message was sent while issue was closed.
https://codereview.chromium.org/1868963002/diff/60001/src/compiler/code-stub-...
File src/compiler/code-stub-assembler.cc (right):

https://codereview.chromium.org/1868963002/diff/60001/src/compiler/code-stub-...
src/compiler/code-stub-assembler.cc:1162: &if_stringisshort,
&if_stringisnotshort);
DBC: These label names are not in sync with the shortness definition (see
ExternalString::is_short()).

Powered by Google App Engine
This is Rietveld 408576698