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

Issue 2705193002: [string] Unpack external strings in String.prototype.indexOf (Closed)

Created:
3 years, 10 months ago by jgruber
Modified:
3 years, 10 months ago
Reviewers:
Camillo Bruni
CC:
Igor Sheludko, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[string] Unpack external strings in String.prototype.indexOf This CL allows the String.p.indexOf fast path to handle one-byte external strings (in addition to one-byte sequential strings). BUG= Review-Url: https://codereview.chromium.org/2705193002 Cr-Commit-Position: refs/heads/master@{#43369} Committed: https://chromium.googlesource.com/v8/v8/+/acd859895b23171b05626f911a1bfba89da68f24

Patch Set 1 #

Patch Set 2 : Restructure TryDerefExternalString #

Patch Set 3 : Switch-based handling for external strings #

Patch Set 4 : Unused variable #

Patch Set 5 : Fix assert #

Total comments: 8

Patch Set 6 : Fix wrong variable #

Patch Set 7 : Add private helpers for string instance types #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -42 lines) Patch
M src/builtins/builtins-string.cc View 1 2 3 4 5 4 chunks +91 lines, -25 lines 0 comments Download
M src/code-stub-assembler.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 4 5 6 2 chunks +44 lines, -17 lines 2 comments Download

Messages

Total messages: 39 (32 generated)
jgruber
3 years, 10 months ago (2017-02-21 15:13:30 UTC) #22
Camillo Bruni
https://codereview.chromium.org/2705193002/diff/80001/src/builtins/builtins-string.cc File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2705193002/diff/80001/src/builtins/builtins-string.cc#newcode918 src/builtins/builtins-string.cc:918: var_string_addr.Bind(OneByteCharAddress(unpacked, start_position)); OneByteCharAddress https://codereview.chromium.org/2705193002/diff/80001/src/builtins/builtins-string.cc#newcode945 src/builtins/builtins-string.cc:945: ChangeInt32ToIntPtr(LoadOneByteChar(unpacked, int_zero))); OneByteCharAddress https://codereview.chromium.org/2705193002/diff/80001/src/code-stub-assembler.cc ...
3 years, 10 months ago (2017-02-22 10:16:20 UTC) #25
jgruber
Addressed comments, ptal. https://codereview.chromium.org/2705193002/diff/80001/src/builtins/builtins-string.cc File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2705193002/diff/80001/src/builtins/builtins-string.cc#newcode918 src/builtins/builtins-string.cc:918: var_string_addr.Bind(OneByteCharAddress(unpacked, start_position)); On 2017/02/22 10:16:20, Camillo ...
3 years, 10 months ago (2017-02-22 10:45:10 UTC) #30
Camillo Bruni
lgtm https://codereview.chromium.org/2705193002/diff/120001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2705193002/diff/120001/src/code-stub-assembler.cc#newcode3518 src/code-stub-assembler.cc:3518: } we can probably push those even on ...
3 years, 10 months ago (2017-02-22 12:02:05 UTC) #33
jgruber
https://codereview.chromium.org/2705193002/diff/120001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2705193002/diff/120001/src/code-stub-assembler.cc#newcode3518 src/code-stub-assembler.cc:3518: } On 2017/02/22 12:02:05, Camillo Bruni wrote: > we ...
3 years, 10 months ago (2017-02-22 12:06:08 UTC) #34
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/2705193002/120001
3 years, 10 months ago (2017-02-22 12:06:25 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 12:08:06 UTC) #39
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/v8/v8/+/acd859895b23171b05626f911a1bfba89da...

Powered by Google App Engine
This is Rietveld 408576698