| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1454 } | 1454 } |
| 1455 } | 1455 } |
| 1456 virtual void* Accept(RegExpVisitor* visitor, void* data); | 1456 virtual void* Accept(RegExpVisitor* visitor, void* data); |
| 1457 virtual RegExpNode* ToNode(RegExpCompiler* compiler, | 1457 virtual RegExpNode* ToNode(RegExpCompiler* compiler, |
| 1458 RegExpNode* on_success); | 1458 RegExpNode* on_success); |
| 1459 static RegExpNode* ToNode(int min, | 1459 static RegExpNode* ToNode(int min, |
| 1460 int max, | 1460 int max, |
| 1461 bool is_greedy, | 1461 bool is_greedy, |
| 1462 RegExpTree* body, | 1462 RegExpTree* body, |
| 1463 RegExpCompiler* compiler, | 1463 RegExpCompiler* compiler, |
| 1464 RegExpNode* on_success); | 1464 RegExpNode* on_success, |
| 1465 bool not_at_start = false); |
| 1465 virtual RegExpQuantifier* AsQuantifier(); | 1466 virtual RegExpQuantifier* AsQuantifier(); |
| 1466 virtual Interval CaptureRegisters(); | 1467 virtual Interval CaptureRegisters(); |
| 1467 virtual bool IsQuantifier(); | 1468 virtual bool IsQuantifier(); |
| 1468 virtual int min_match() { return min_match_; } | 1469 virtual int min_match() { return min_match_; } |
| 1469 virtual int max_match() { return max_match_; } | 1470 virtual int max_match() { return max_match_; } |
| 1470 int min() { return min_; } | 1471 int min() { return min_; } |
| 1471 int max() { return max_; } | 1472 int max() { return max_; } |
| 1472 bool is_greedy() { return is_greedy_; } | 1473 bool is_greedy() { return is_greedy_; } |
| 1473 RegExpTree* body() { return body_; } | 1474 RegExpTree* body() { return body_; } |
| 1474 private: | 1475 private: |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 #undef DEF_VISIT | 1624 #undef DEF_VISIT |
| 1624 | 1625 |
| 1625 private: | 1626 private: |
| 1626 bool stack_overflow_; | 1627 bool stack_overflow_; |
| 1627 }; | 1628 }; |
| 1628 | 1629 |
| 1629 | 1630 |
| 1630 } } // namespace v8::internal | 1631 } } // namespace v8::internal |
| 1631 | 1632 |
| 1632 #endif // V8_AST_H_ | 1633 #endif // V8_AST_H_ |
| OLD | NEW |