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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 | 646 |
647 // Returns a sibling of this node whose interests match the ones in | 647 // Returns a sibling of this node whose interests match the ones in |
648 // the given node info. The info must not contain any assertions. | 648 // the given node info. The info must not contain any assertions. |
649 // If no node exists a new one will be created by cloning the current | 649 // If no node exists a new one will be created by cloning the current |
650 // node. The result will always be an instance of the same concrete | 650 // node. The result will always be an instance of the same concrete |
651 // class as this node. | 651 // class as this node. |
652 RegExpNode* EnsureSibling(NodeInfo* info, bool* cloned); | 652 RegExpNode* EnsureSibling(NodeInfo* info, bool* cloned); |
653 | 653 |
654 // Returns a clone of this node initialized using the copy constructor | 654 // Returns a clone of this node initialized using the copy constructor |
655 // of its concrete class. Note that the node may have to be pre- | 655 // of its concrete class. Note that the node may have to be pre- |
656 // processed before it is on a useable state. | 656 // processed before it is on a usable state. |
657 virtual RegExpNode* Clone() = 0; | 657 virtual RegExpNode* Clone() = 0; |
658 | 658 |
659 private: | 659 private: |
660 Label label_; | 660 Label label_; |
661 NodeInfo info_; | 661 NodeInfo info_; |
662 SiblingList siblings_; | 662 SiblingList siblings_; |
663 int variants_generated_; | 663 int variants_generated_; |
664 }; | 664 }; |
665 | 665 |
666 | 666 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 Handle<String> pattern, | 1224 Handle<String> pattern, |
1225 bool is_ascii); | 1225 bool is_ascii); |
1226 | 1226 |
1227 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1227 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
1228 }; | 1228 }; |
1229 | 1229 |
1230 | 1230 |
1231 } } // namespace v8::internal | 1231 } } // namespace v8::internal |
1232 | 1232 |
1233 #endif // V8_JSREGEXP_H_ | 1233 #endif // V8_JSREGEXP_H_ |
OLD | NEW |