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

Issue 6269: KMP string search using direct memory access and templates for type specialization. (Closed)

Created:
12 years, 2 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
CC:
v8-dev
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -63 lines) Patch
M src/jsregexp.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M src/objects.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/runtime.cc View 2 chunks +180 lines, -60 lines 10 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein
A little code review. I am aware of the six formatting-errors in runtime.cc.
12 years, 2 months ago (2008-10-06 12:17:54 UTC) #1
Lasse Reichstein
A small code review. I know about the formatting-errors in runtime.cc.
12 years, 2 months ago (2008-10-06 12:18:34 UTC) #2
Lasse Reichstein
On 2008/10/06 12:17:54, lrn wrote: > A little code review. > I am aware of ...
12 years, 2 months ago (2008-10-06 12:19:08 UTC) #3
Christian Plesner Hansen
Lgtm
12 years, 2 months ago (2008-10-06 12:40:26 UTC) #4
Christian Plesner Hansen
...and here are my comments. http://codereview.chromium.org/6269/diff/1/5 File src/runtime.cc (right): http://codereview.chromium.org/6269/diff/1/5#newcode935 Line 935: for(;;) { Flat ...
12 years, 2 months ago (2008-10-06 12:47:19 UTC) #5
Lasse Reichstein
12 years, 2 months ago (2008-10-07 09:16:28 UTC) #6
http://codereview.chromium.org/6269/diff/1/5
File src/runtime.cc (right):

http://codereview.chromium.org/6269/diff/1/5#newcode935
Line 935: for(;;) {
On 2008/10/06 12:47:19, Christian Plesner Hansen wrote:
> Flat strings are relatively simple in structure so it should be possible to
get
> a hold of the string contents with straight-line code.

Done.

http://codereview.chromium.org/6269/diff/1/5#newcode1006
Line 1006: Vector<const schar> string,
On 2008/10/06 12:47:19, Christian Plesner Hansen wrote:
> This argument should be on the same line as the function header with the
> remaining arguments below it, indented to the same level.

Done.

http://codereview.chromium.org/6269/diff/1/5#newcode1009
Line 1009: for (int i = start_index, n = string.length(); i < n; i++) {
On 2008/10/06 12:47:19, Christian Plesner Hansen wrote:
> I would move the declaration of n out before the loop.

I consider
 for (int i = ..., n = ...; i<n; i++)
an idiom, and prefer to limit the scope of n to where it's needed.

http://codereview.chromium.org/6269/diff/1/5#newcode1060
Line 1060: int length = pattern.length();
On 2008/10/06 12:47:19, Christian Plesner Hansen wrote:
> Isn't this identical to pattern_length?

Indeed, it should be removed. Done.

http://codereview.chromium.org/6269/diff/1/5#newcode1122
Line 1122: sub->TryFlatten();
Doesn't handle failure to flatten.
Changed to the handle based FlattenString.

Powered by Google App Engine
This is Rietveld 408576698