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

Issue 10254: Rudimentary analysis (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 rudimentary analysis phase. Still lots of work to do but now at least some basics are there.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -7 lines) Patch
M src/jsregexp.h View 6 chunks +16 lines, -1 line 0 comments Download
M src/jsregexp.cc View 14 chunks +146 lines, -5 lines 6 comments Download
M src/jsregexp-inl.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/string-stream.cc View 1 chunk +11 lines, -1 line 0 comments Download
M test/cctest/test-regexp.cc View 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Christian Plesner Hansen
12 years, 1 month ago (2008-11-10 15:52:29 UTC) #1
Lasse Reichstein
Looks reasonable to me. I look forward to seeing the analysis being used :) http://codereview.chromium.org/10254/diff/1/3 ...
12 years, 1 month ago (2008-11-10 16:35:45 UTC) #2
Christian Plesner Hansen
12 years, 1 month ago (2008-11-11 06:12:35 UTC) #3
http://codereview.chromium.org/10254/diff/1/3
File src/jsregexp.cc (right):

http://codereview.chromium.org/10254/diff/1/3#newcode672
Line 672: class SubAnalysisData: public AnalysisData {
The 'Sub' was meant to convey that the result is a "child" of the prev data
given to the constructor.  But builder is a much better name.

http://codereview.chromium.org/10254/diff/1/3#newcode832
Line 832: visited_(false) { }
Yes, but it does no harm if you don't catch it until you meet the next choice
node.  In any case I expect to change the structure so this is just temporary.

http://codereview.chromium.org/10254/diff/1/3#newcode986
Line 986: fprintf(stderr, "--- %p ---\n", static_cast<void*>(this));
It turns out I can use OS::PrintError.  Also, I'll guard all this with #ifdef
DEBUG.

http://codereview.chromium.org/10254/diff/1/6
File test/cctest/test-regexp.cc (right):

http://codereview.chromium.org/10254/diff/1/6#newcode610
Line 610: Execute("(a|b|c|\\w|\\s)", "", true);
True, but damn convenient.

Powered by Google App Engine
This is Rietveld 408576698