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

Issue 17409: Check for empty repetitions. (Closed)

Created:
11 years, 11 months ago by Christian Plesner Hansen
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Added check that bails out of a repetition when the body is empty.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -7 lines) Patch
M src/bytecodes-irregexp.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter-irregexp.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/jsregexp.h View 4 chunks +16 lines, -1 line 0 comments Download
M src/jsregexp.cc View 7 chunks +91 lines, -3 lines 4 comments Download
M src/regexp-macro-assembler.h View 1 chunk +3 lines, -0 lines 2 comments Download
M src/regexp-macro-assembler-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/regexp-macro-assembler-ia32.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-tracer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/regexp-macro-assembler-tracer.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M test/cctest/test-regexp.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Christian Plesner Hansen
11 years, 11 months ago (2009-01-08 10:27:43 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/17409/diff/1/4 File src/jsregexp.cc (right): http://codereview.chromium.org/17409/diff/1/4#newcode3006 Line 3006: if (!has_minimum && If we have a ...
11 years, 11 months ago (2009-01-08 11:10:16 UTC) #2
Christian Plesner Hansen
11 years, 11 months ago (2009-01-08 12:40:49 UTC) #3
http://codereview.chromium.org/17409/diff/1/4
File src/jsregexp.cc (right):

http://codereview.chromium.org/17409/diff/1/4#newcode3006
Line 3006: if (!has_minimum &&
Good point, fixed.

http://codereview.chromium.org/17409/diff/1/4#newcode3021
Line 3021: // number first and skip the empty check if it's not enough.
We should but I'm not quite sure how to do that.  We may have to push a
backtrack for each of the remaining repetition, if not in practice then at least
in effect.

http://codereview.chromium.org/17409/diff/1/12
File src/regexp-macro-assembler.h (right):

http://codereview.chromium.org/17409/diff/1/12#newcode139
Line 139: // label if it is.
Whoops, forgot to update the comment when changing the method.  Fixed.

Powered by Google App Engine
This is Rietveld 408576698