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

Unified Diff: src/jsregexp.h

Issue 12473: * Complete case independent support in Irregexp. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/jsregexp.cc » ('j') | src/jsregexp.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « src/flag-definitions.h ('k') | src/jsregexp.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698