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

Issue 1324803003: Fix two byte string-search on big endian platforms (Closed)

Created:
5 years, 3 months ago by skomski
Modified:
5 years, 3 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@speedup-stringsearch
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix two byte string-search on big endian platforms Use AlignDown instead of IsAligned to avoid false negatives on big endian platforms Use byte with highest value to speedup search BUG= Committed: https://crrev.com/0e0c802858a432fa15afbdd8fcc17bac318791d9 Cr-Commit-Position: refs/heads/master@{#30615}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix windows warning and simplify code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -34 lines) Patch
M src/string-search.h View 1 2 chunks +35 lines, -34 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
skomski
Sorry for all the trouble. This should get the mips build bots green again.
5 years, 3 months ago (2015-09-05 09:45:58 UTC) #3
Jakob Kummerow
https://codereview.chromium.org/1324803003/diff/1/src/string-search.h File src/string-search.h (right): https://codereview.chromium.org/1324803003/diff/1/src/string-search.h#newcode214 src/string-search.h:214: Max(static_cast<uint8_t>(pattern_first_char & 0xFF), Why this change? "... & 0xFF" ...
5 years, 3 months ago (2015-09-05 10:26:58 UTC) #5
skomski
https://codereview.chromium.org/1324803003/diff/1/src/string-search.h File src/string-search.h (right): https://codereview.chromium.org/1324803003/diff/1/src/string-search.h#newcode214 src/string-search.h:214: Max(static_cast<uint8_t>(pattern_first_char & 0xFF), On 2015/09/05 10:26:58, Jakob wrote: > ...
5 years, 3 months ago (2015-09-05 10:42:27 UTC) #6
Jakob Kummerow
> A lot faster since the low byte can be 0 and faster to search ...
5 years, 3 months ago (2015-09-05 11:06:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324803003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324803003/1
5 years, 3 months ago (2015-09-05 14:08:22 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_compile_dbg on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_compile_dbg/builds/7416) v8_win_nosnap_shared_compile_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 3 months ago (2015-09-05 14:10:44 UTC) #11
skomski
Fixed the windows warning and simplified the code a bit in the process because from ...
5 years, 3 months ago (2015-09-05 18:14:09 UTC) #12
Jakob Kummerow
lgtm
5 years, 3 months ago (2015-09-07 08:42:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324803003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324803003/20001
5 years, 3 months ago (2015-09-07 08:43:03 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-07 09:07:51 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0e0c802858a432fa15afbdd8fcc17bac318791d9 Cr-Commit-Position: refs/heads/master@{#30615}
5 years, 3 months ago (2015-09-07 09:08:13 UTC) #17
paul.l...
5 years, 3 months ago (2015-09-07 16:56:42 UTC) #18
Message was sent while issue was closed.
Thanks a lot for the big-endian fix, Karl, we really appreciate it!

Powered by Google App Engine
This is Rietveld 408576698