| Index: src/ast.h
|
| ===================================================================
|
| --- src/ast.h (revision 8302)
|
| +++ src/ast.h (working copy)
|
| @@ -1749,7 +1749,6 @@
|
| class RegExpTree: public ZoneObject {
|
| public:
|
| static const int kInfinity = kMaxInt;
|
| - RegExpTree() : contains_expanded_quantifier_(false) { }
|
| virtual ~RegExpTree() { }
|
| virtual void* Accept(RegExpVisitor* visitor, void* data) = 0;
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| @@ -1759,12 +1758,6 @@
|
| virtual bool IsAnchoredAtEnd() { return false; }
|
| virtual int min_match() = 0;
|
| virtual int max_match() = 0;
|
| - virtual bool ContainsExpandedQuantifier() {
|
| - return contains_expanded_quantifier_;
|
| - }
|
| - void set_contains_expanded_quantifier(bool value) {
|
| - contains_expanded_quantifier_ = value;
|
| - }
|
| // Returns the interval of registers used for captures within this
|
| // expression.
|
| virtual Interval CaptureRegisters() { return Interval::Empty(); }
|
| @@ -1775,9 +1768,6 @@
|
| virtual bool Is##Name();
|
| FOR_EACH_REG_EXP_TREE_TYPE(MAKE_ASTYPE)
|
| #undef MAKE_ASTYPE
|
| -
|
| - protected:
|
| - bool contains_expanded_quantifier_;
|
| };
|
|
|
|
|
| @@ -1794,7 +1784,6 @@
|
| virtual bool IsAnchoredAtEnd();
|
| virtual int min_match() { return min_match_; }
|
| virtual int max_match() { return max_match_; }
|
| - virtual bool ContainsExpandedQuantifier();
|
| ZoneList<RegExpTree*>* alternatives() { return alternatives_; }
|
| private:
|
| ZoneList<RegExpTree*>* alternatives_;
|
| @@ -1816,7 +1805,6 @@
|
| virtual bool IsAnchoredAtEnd();
|
| virtual int min_match() { return min_match_; }
|
| virtual int max_match() { return max_match_; }
|
| - virtual bool ContainsExpandedQuantifier();
|
| ZoneList<RegExpTree*>* nodes() { return nodes_; }
|
| private:
|
| ZoneList<RegExpTree*>* nodes_;
|
| @@ -1966,8 +1954,7 @@
|
| min_(min),
|
| max_(max),
|
| min_match_(min * body->min_match()),
|
| - type_(type),
|
| - contains_expanded_quantifier_(false) {
|
| + type_(type) {
|
| if (max > 0 && body->max_match() > kInfinity / max) {
|
| max_match_ = kInfinity;
|
| } else {
|
| @@ -1989,9 +1976,6 @@
|
| virtual bool IsQuantifier();
|
| virtual int min_match() { return min_match_; }
|
| virtual int max_match() { return max_match_; }
|
| - virtual bool ContainsExpandedQuantifier() {
|
| - return contains_expanded_quantifier_ || body_->ContainsExpandedQuantifier();
|
| - }
|
| int min() { return min_; }
|
| int max() { return max_; }
|
| bool is_possessive() { return type_ == POSSESSIVE; }
|
| @@ -2006,7 +1990,6 @@
|
| int min_match_;
|
| int max_match_;
|
| Type type_;
|
| - bool contains_expanded_quantifier_;
|
| };
|
|
|
|
|
| @@ -2028,9 +2011,6 @@
|
| virtual bool IsCapture();
|
| virtual int min_match() { return body_->min_match(); }
|
| virtual int max_match() { return body_->max_match(); }
|
| - virtual bool ContainsExpandedQuantifier() {
|
| - return contains_expanded_quantifier_ || body_->ContainsExpandedQuantifier();
|
| - }
|
| RegExpTree* body() { return body_; }
|
| int index() { return index_; }
|
| static int StartRegister(int index) { return index * 2; }
|
| @@ -2062,9 +2042,6 @@
|
| virtual bool IsAnchoredAtStart();
|
| virtual int min_match() { return 0; }
|
| virtual int max_match() { return 0; }
|
| - virtual bool ContainsExpandedQuantifier() {
|
| - return contains_expanded_quantifier_ || body_->ContainsExpandedQuantifier();
|
| - }
|
| RegExpTree* body() { return body_; }
|
| bool is_positive() { return is_positive_; }
|
| int capture_count() { return capture_count_; }
|
|
|