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

Issue 13343: More assertion propagation. (Closed)

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

Description

- Added lookbehind propagation for the initial node; now, if the initial node is interested in what precedes it the automaton is given an initial all-consuming character class that determines it. - Added verification of some node information invariants. We now check that if a node expresses interest in what precedes it that information is available to it after assertion expansion.

Patch Set 1 #

Patch Set 2 : "Does it lint?" #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -51 lines) Patch
M src/globals.h View 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.h View 5 chunks +56 lines, -7 lines 0 comments Download
M src/jsregexp.cc View 1 13 chunks +141 lines, -24 lines 4 comments Download
M src/parser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-regexp.cc View 6 chunks +8 lines, -17 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Christian Plesner Hansen
12 years ago (2008-12-10 15:28:51 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/13343/diff/201/15 File src/jsregexp.cc (right): http://codereview.chromium.org/13343/diff/201/15#newcode3677 Line 3677: bool has_been_expanded_; Isn't this really two different ...
12 years ago (2008-12-11 08:34:23 UTC) #2
Christian Plesner Hansen
12 years ago (2008-12-11 09:14:11 UTC) #3
http://codereview.chromium.org/13343/diff/201/15
File src/jsregexp.cc (right):

http://codereview.chromium.org/13343/diff/201/15#newcode3677
Line 3677: bool has_been_expanded_;
Good point.

http://codereview.chromium.org/13343/diff/201/15#newcode3778
Line 3778: node = new TextNode(new RegExpCharacterClass('*'), node);
Yes, it can use has_lookbehind to determine that.

http://codereview.chromium.org/13343/diff/201/19
File test/cctest/test-regexp.cc (right):

http://codereview.chromium.org/13343/diff/201/19#newcode1295
Line 1295: Execute("\\bboy\\b", false, true, true);
It's really convenient to be able to build this along with the rest of the code
through the build system and run it through the eclipse debugger.  If it's a
problem I can make sure to revert any changes I've made before committing.

Incidentally, meaningful has only one L.

Powered by Google App Engine
This is Rietveld 408576698