Chromium Code Reviews| Index: src/jsregexp.h |
| =================================================================== |
| --- src/jsregexp.h (revision 847) |
| +++ src/jsregexp.h (working copy) |
| @@ -596,6 +596,7 @@ |
| RegExpNode* on_failure() { return on_failure_; } |
| virtual bool Emit(RegExpCompiler* compiler); |
| ZoneList<TextElement>* elements() { return elms_; } |
| + void MakeCaseIndependent(); |
| private: |
| RegExpNode* on_failure_; |
| ZoneList<TextElement>* elms_; |
| @@ -741,12 +742,19 @@ |
| class Analysis: public NodeVisitor { |
| public: |
| + explicit Analysis(bool case_independent) |
|
Christian Plesner Hansen
2008/11/27 06:49:39
We're somewhat inconsistent in what we call this:
|
| + : case_independent_(case_independent) { } |
| void EnsureAnalyzed(RegExpNode* node); |
| #define DECLARE_VISIT(Type) \ |
| virtual void Visit##Type(Type##Node* that); |
| FOR_EACH_NODE_TYPE(DECLARE_VISIT) |
| #undef DECLARE_VISIT |
| + |
| + private: |
| + bool case_independent_; |
| + |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(Analysis); |
| }; |