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

Issue 8635: Backreferences (Closed)

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

Description

Added parsing of integer escapes as backreferences.

Patch Set 1 #

Patch Set 2 : Fixed problem with repetitions of backreferences. #

Patch Set 3 : Added test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -5 lines) Patch
M src/ast.h View 2 chunks +11 lines, -0 lines 1 comment Download
M src/ast.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/jsregexp.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/parser.cc View 1 8 chunks +85 lines, -5 lines 6 comments Download
M test/cctest/test-regexp.cc View 1 2 1 chunk +20 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Christian Plesner Hansen
12 years, 1 month ago (2008-10-27 21:20:39 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/8635/diff/208/210 File src/ast.h (right): http://codereview.chromium.org/8635/diff/208/210#newcode1344 Line 1344: }; Now we have back-references with an ...
12 years, 1 month ago (2008-10-28 10:09:52 UTC) #2
Christian Plesner Hansen
12 years, 1 month ago (2008-10-28 11:17:45 UTC) #3
http://codereview.chromium.org/8635/diff/208/212
File src/parser.cc (right):

http://codereview.chromium.org/8635/diff/208/212#newcode3244
Line 3244: next_ = in()->GetNext();
We know it will work because we advance twice after setting up the pushback
buffer.

http://codereview.chromium.org/8635/diff/208/212#newcode3367
Line 3367: EmbeddedVector<uc32, kMaxChars> chars_seen;
Bingo

http://codereview.chromium.org/8635/diff/208/213
File test/cctest/test-regexp.cc (right):

http://codereview.chromium.org/8635/diff/208/213#newcode169
Line 169: ExpectParse("[\\00011]", "[\t]");
I don't really have an opinion.  We could also follow the spec.

Powered by Google App Engine
This is Rietveld 408576698