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

Issue 2502323002: [builtins] Improve StringPrototypeEndsWith performance by adding a fastpath. (Closed)

Created:
4 years, 1 month ago by petermarshall
Modified:
4 years, 1 month ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] Improve StringPrototypeEndsWith performance by adding a fastpath. If the strings are both onebyte strings, then use memcmp on the underlying data stores. BUG=chromium:657747 Committed: https://crrev.com/ee50747e1398657103b64d2394df3414502a8081 Cr-Commit-Position: refs/heads/master@{#41033}

Patch Set 1 #

Patch Set 2 : Disallow heap alloc before flatcontent #

Total comments: 2

Patch Set 3 : Return false when strncmp fails #

Patch Set 4 : Use memcmp instead to avoid casting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M src/builtins/builtins-string.cc View 1 2 3 1 chunk +18 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
petermarshall
PTAL :)
4 years, 1 month ago (2016-11-16 11:35:06 UTC) #2
Yang
https://codereview.chromium.org/2502323002/diff/20001/src/builtins/builtins-string.cc File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2502323002/diff/20001/src/builtins/builtins-string.cc#newcode777 src/builtins/builtins-string.cc:777: return *isolate->factory()->true_value(); isolate->heap()->true_value() also, why don't we return false_value ...
4 years, 1 month ago (2016-11-16 12:13:24 UTC) #10
petermarshall
Do you think the pointer casting is too nasty... Not sure of another way to ...
4 years, 1 month ago (2016-11-16 12:19:15 UTC) #11
Yang
On 2016/11/16 12:19:15, petermarshall wrote: > Do you think the pointer casting is too nasty... ...
4 years, 1 month ago (2016-11-16 13:17:52 UTC) #19
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/2502323002/60001
4 years, 1 month ago (2016-11-16 13:32:53 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-16 13:35:14 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:36:11 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ee50747e1398657103b64d2394df3414502a8081
Cr-Commit-Position: refs/heads/master@{#41033}

Powered by Google App Engine
This is Rietveld 408576698