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

Issue 3291021: Move string-search functions to separate file. (Closed)

Created:
10 years, 3 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Move string-search functions to separate file. Committed: http://code.google.com/p/v8/source/detail?r=5440

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address (some)co #

Unified diffs Side-by-side diffs Delta from patch set Stats (+470 lines, -414 lines) Patch
M src/runtime.cc View 1 3 chunks +7 lines, -414 lines 0 comments Download
A src/string-search.h View 1 1 chunk +463 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
10 years, 3 months ago (2010-09-09 08:34:04 UTC) #1
sandholm
LGTM Did you consider moving (the Vector variant of) SearchStringMultiple as well? On 2010/09/09 08:34:04, ...
10 years, 3 months ago (2010-09-09 08:55:39 UTC) #2
Kevin Millikin (Chromium)
Drive by. http://codereview.chromium.org/3291021/diff/1/3 File src/string-search.h (right): http://codereview.chromium.org/3291021/diff/1/3#newcode85 src/string-search.h:85: static int bad_char_occurrence[kBMAlphabetSize]; This does not belong ...
10 years, 3 months ago (2010-09-09 09:10:50 UTC) #3
Kevin Millikin (Chromium)
I have a few more comments, which are basically that you should (briefly) "modernize" this ...
10 years, 3 months ago (2010-09-09 09:31:31 UTC) #4
Lasse Reichstein
10 years, 3 months ago (2010-09-09 09:51:00 UTC) #5
http://codereview.chromium.org/3291021/diff/1/3
File src/string-search.h (right):

http://codereview.chromium.org/3291021/diff/1/3#newcode85
src/string-search.h:85: static int bad_char_occurrence[kBMAlphabetSize];
True. I was moving this code to a separate file in anticipation of further
cleanup, but I'll move these two arrays immediately (and the start working on
naming etc, suggestions are welcome).

http://codereview.chromium.org/3291021/diff/1/3#newcode101
src/string-search.h:101: static void BoyerMoorePopulateBadCharTable(Vector<const
pchar> pattern) {
It has to be an a header file because it's a template function.

Powered by Google App Engine
This is Rietveld 408576698