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

Issue 875001: Converted String.prototype.split with string to C++. (Closed)

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

Description

Converted String.prototype.split with string to C++.

Patch Set 1 #

Total comments: 34

Patch Set 2 : Removed threaded badness. Restructured code. #

Patch Set 3 : Addressed comments from E.Corry. #

Patch Set 4 : Rewrote conditions to switch with fallthrough. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -49 lines) Patch
M src/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 13 chunks +255 lines, -36 lines 2 comments Download
M src/string.js View 1 2 chunks +2 lines, -13 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
Fairly simple review.
10 years, 9 months ago (2010-03-11 11:41:31 UTC) #1
Vitaly Repeshko
LGTM. http://codereview.chromium.org/875001/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/875001/diff/1/2#newcode2087 src/runtime.cc:2087: struct StringMatchState { Consider making this a class ...
10 years, 9 months ago (2010-03-11 14:02:36 UTC) #2
Erik Corry
LGTM http://codereview.chromium.org/875001/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/875001/diff/1/2#newcode2088 src/runtime.cc:2088: enum State { SIMPLE, BOYER_MOORE_HORSEPOOL, BOYER_MOORE }; Poor ...
10 years, 9 months ago (2010-03-12 10:08:03 UTC) #3
Lasse Reichstein
Addressed comments. I couldn't find an easy way to restore performance of the critical inner ...
10 years, 9 months ago (2010-03-12 11:08:27 UTC) #4
Erik Corry
10 years, 9 months ago (2010-03-15 12:57:48 UTC) #5
LGTM

Presumably we have a test for the case where the pattern is "".

http://codereview.chromium.org/875001/diff/9001/10001
File src/runtime.cc (right):

http://codereview.chromium.org/875001/diff/9001/10001#newcode2270
src/runtime.cc:2270: // If we could just break out of the for loop here.
What would then happen?

http://codereview.chromium.org/875001/diff/9001/10001#newcode2476
src/runtime.cc:2476: // FALLTHROUGH.
Does the linter insist on this annoying capitalization?

http://codereview.chromium.org/875001/diff/9001/10003
File src/string.js (right):

http://codereview.chromium.org/875001/diff/9001/10003#newcode560
src/string.js:560: // and KJS have this behavior only when no separator is
given.  If
!@*%$

Powered by Google App Engine
This is Rietveld 408576698