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

Issue 11231: Flat string reader (Closed)

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

Description

Introduced flat string reader abstraction which reads directly from a flat string independent of the character width. Replaced the stream-based input to the regexp parser with a flat string reader and dropped the 'next' field; now Next() reads directly from the string.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -100 lines) Patch
M src/heap.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/heap.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M src/jsregexp.cc View 1 chunk +3 lines, -2 lines 1 comment Download
M src/objects.h View 1 chunk +19 lines, -0 lines 1 comment Download
M src/objects.cc View 1 chunk +51 lines, -0 lines 2 comments Download
M src/objects-inl.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/parser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 14 chunks +49 lines, -88 lines 0 comments Download
M test/cctest/test-regexp.cc View 4 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Christian Plesner Hansen
12 years, 1 month ago (2008-11-18 15:09:42 UTC) #1
Erik Corry
Does it lint. LGTM. http://codereview.chromium.org/11231/diff/1/4 File src/jsregexp.cc (right): http://codereview.chromium.org/11231/diff/1/4#newcode211 Line 211: pattern->Flatten(shape); Since this shape ...
12 years, 1 month ago (2008-11-19 09:45:38 UTC) #2
Christian Plesner Hansen
12 years, 1 month ago (2008-11-19 10:15:26 UTC) #3
Nope, it didn't lint.  Note however that interpreter-re2k.cc doesn't lint
either.

http://codereview.chromium.org/11231/diff/1/6
File src/objects.cc (right):

http://codereview.chromium.org/11231/diff/1/6#newcode3504
Line 3504: FlatStringReader* FlatStringReader::top_ = NULL;
I don't think initialization of pointers to NULL are an issue.

Powered by Google App Engine
This is Rietveld 408576698