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

Issue 18497: Don't insert .*? at the beginning of anchored expressions. (Closed)

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

Description

Don't insert .*? at the beginning of anchored expressions.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added regexp benchmark #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1633 lines, -2 lines) Patch
M benchmarks/base.js View 1 chunk +1 line, -1 line 0 comments Download
A benchmarks/regexp.js View 1 chunk +1614 lines, -0 lines 0 comments Download
M benchmarks/revisions.html View 1 chunk +12 lines, -0 lines 0 comments Download
M benchmarks/run.html View 3 chunks +5 lines, -1 line 0 comments Download
M benchmarks/run.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Christian Plesner Hansen
11 years, 11 months ago (2009-01-22 14:10:55 UTC) #1
Lasse Reichstein
LGTM, with nitpicks. http://codereview.chromium.org/18497/diff/1/2 File src/ast.cc (right): http://codereview.chromium.org/18497/diff/1/2#newcode264 Line 264: } It's probably useless in ...
11 years, 11 months ago (2009-01-22 15:29:52 UTC) #2
Christian Plesner Hansen
http://codereview.chromium.org/18497/diff/1/2 File src/ast.cc (right): http://codereview.chromium.org/18497/diff/1/2#newcode264 Line 264: } That's pretty obscure but I've added it ...
11 years, 11 months ago (2009-01-23 07:41:18 UTC) #3
Erik Corry
11 years, 11 months ago (2009-01-23 13:26:17 UTC) #4
LGTM

http://codereview.chromium.org/18497/diff/1/2
File src/ast.cc (right):

http://codereview.chromium.org/18497/diff/1/2#newcode248
Line 248: return type() == RegExpAssertion::START_OF_INPUT;
Hey, if you're adding obscure cases then this should return true if the
successor returns true.

http://codereview.chromium.org/18497/diff/1/5
File test/mjsunit/ascii-regexp-subject.js (right):

http://codereview.chromium.org/18497/diff/1/5#newcode31
Line 31: 
On 2009/01/22 15:29:52, Lasse Reichstein wrote:
> Is this "test" falsifiable?

Sure it's falsifiable.  That's how we found this bug :-)

Powered by Google App Engine
This is Rietveld 408576698