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

Issue 1114001: Refactoring of RegExp interface to better support calling several times in a row. (Closed)

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

Description

Refactoring of RegExp interface to better support calling several times in a row.

Patch Set 1 #

Patch Set 2 : Fix type that snuck into the commit. #

Total comments: 22
Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -113 lines) Patch
M src/arm/regexp-macro-assembler-arm.cc View 2 chunks +5 lines, -1 line 2 comments Download
M src/ia32/codegen-ia32.cc View 1 chunk +1 line, -7 lines 2 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 1 3 chunks +19 lines, -4 lines 0 comments Download
M src/jsregexp.h View 2 chunks +24 lines, -1 line 7 comments Download
M src/jsregexp.cc View 3 chunks +119 lines, -90 lines 9 comments Download
M src/string.js View 1 chunk +1 line, -1 line 2 comments Download
M src/x64/codegen-x64.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
Primarily a refactoring. Also made native regexp code return correct indices, instead of relative to ...
10 years, 9 months ago (2010-03-18 13:39:15 UTC) #1
Søren Thygesen Gjesse
http://codereview.chromium.org/1114001/diff/3001/4002 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/1114001/diff/3001/4002#newcode10551 src/ia32/codegen-ia32.cc:10551: __ mov(edi, Operand(ecx, edx, times_int_size, 0)); Drive by - ...
10 years, 9 months ago (2010-03-18 13:54:50 UTC) #2
Erik Corry
LGTM Perhaps a RegistersProvided abstraction could reduce the ifdef ugliness? http://codereview.chromium.org/1114001/diff/3001/4001 File src/arm/regexp-macro-assembler-arm.cc (right): http://codereview.chromium.org/1114001/diff/3001/4001#newcode651 ...
10 years, 9 months ago (2010-03-19 11:04:11 UTC) #3
Lasse Reichstein
10 years, 9 months ago (2010-03-19 11:25:42 UTC) #4
http://codereview.chromium.org/1114001/diff/3001/4001
File src/arm/regexp-macro-assembler-arm.cc (right):

http://codereview.chromium.org/1114001/diff/3001/4001#newcode651
src/arm/regexp-macro-assembler-arm.cc:651: // Set r0 to address of char before
start of input
On 2010/03/19 11:04:11, Erik Corry wrote:
> start of input -> match start position.

Actually "start of the input string". This is the thing I changed here, the "-1"
position is now relative to the entire string, not just the start of the match
test.

http://codereview.chromium.org/1114001/diff/3001/4002
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/1114001/diff/3001/4002#newcode10551
src/ia32/codegen-ia32.cc:10551: __ mov(edi, Operand(ecx, edx, times_int_size,
0));
Done.

http://codereview.chromium.org/1114001/diff/3001/4005
File src/jsregexp.cc (right):

http://codereview.chromium.org/1114001/diff/3001/4005#newcode373
src/jsregexp.cc:373: #endif  // V8_NATIVE_REGEXP
Changed to ndef.

http://codereview.chromium.org/1114001/diff/3001/4005#newcode384
src/jsregexp.cc:384: ASSERT(output.length() >=
On 2010/03/19 11:04:11, Erik Corry wrote:
> please move this assert into the ifdef below

Done.

http://codereview.chromium.org/1114001/diff/3001/4005#newcode472
src/jsregexp.cc:472: 
Ignored, per offline discussion.

http://codereview.chromium.org/1114001/diff/3001/4006
File src/jsregexp.h (right):

http://codereview.chromium.org/1114001/diff/3001/4006#newcode81
src/jsregexp.h:81: Handle<String> pattern,
On 2010/03/19 11:04:11, Erik Corry wrote:
> indent

Done.

http://codereview.chromium.org/1114001/diff/3001/4006#newcode104
src/jsregexp.h:104: // an exeception is thrown, and this function returns
negative.
Reworded.

http://codereview.chromium.org/1114001/diff/3001/4006#newcode113
src/jsregexp.h:113: // If execution fails, throws an exception and returns
RE_EXCEPTION.
Reworded.

http://codereview.chromium.org/1114001/diff/3001/4007
File src/string.js (right):

http://codereview.chromium.org/1114001/diff/3001/4007#newcode419
src/string.js:419: 
On 2010/03/19 11:04:11, Erik Corry wrote:
> Trailing spaces?

Done.

Powered by Google App Engine
This is Rietveld 408576698