| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } data; | 431 } data; |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 | 434 |
| 435 class NodeInfo { | 435 class NodeInfo { |
| 436 public: | 436 public: |
| 437 NodeInfo() | 437 NodeInfo() |
| 438 : being_analyzed(false), | 438 : being_analyzed(false), |
| 439 been_analyzed(false), | 439 been_analyzed(false), |
| 440 propagate_word(false), | 440 propagate_word(false), |
| 441 propagate_line(false) { } | 441 propagate_newline(false), |
| 442 propagate_start(false), |
| 443 follows_word_interest(false), |
| 444 follows_newline_interest(false), |
| 445 follows_start_interest(false) { } |
| 442 bool being_analyzed: 1; | 446 bool being_analyzed: 1; |
| 443 bool been_analyzed: 1; | 447 bool been_analyzed: 1; |
| 444 bool propagate_word: 1; | 448 bool propagate_word: 1; |
| 445 bool propagate_line: 1; | 449 bool propagate_newline: 1; |
| 450 bool propagate_start: 1; |
| 451 bool follows_word_interest: 1; |
| 452 bool follows_newline_interest: 1; |
| 453 bool follows_start_interest: 1; |
| 446 }; | 454 }; |
| 447 | 455 |
| 448 | 456 |
| 449 STATIC_CHECK(sizeof(NodeInfo) <= sizeof(int)); // NOLINT | 457 STATIC_CHECK(sizeof(NodeInfo) <= sizeof(int)); // NOLINT |
| 450 | 458 |
| 451 | 459 |
| 452 class RegExpNode: public ZoneObject { | 460 class RegExpNode: public ZoneObject { |
| 453 public: | 461 public: |
| 454 virtual ~RegExpNode() { } | 462 virtual ~RegExpNode() { } |
| 455 virtual void Accept(NodeVisitor* visitor) = 0; | 463 virtual void Accept(NodeVisitor* visitor) = 0; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 static Handle<FixedArray> Compile(RegExpParseResult* input, | 704 static Handle<FixedArray> Compile(RegExpParseResult* input, |
| 697 RegExpNode** node_return, | 705 RegExpNode** node_return, |
| 698 bool ignore_case); | 706 bool ignore_case); |
| 699 static void DotPrint(const char* label, RegExpNode* node); | 707 static void DotPrint(const char* label, RegExpNode* node); |
| 700 }; | 708 }; |
| 701 | 709 |
| 702 | 710 |
| 703 } } // namespace v8::internal | 711 } } // namespace v8::internal |
| 704 | 712 |
| 705 #endif // V8_JSREGEXP_H_ | 713 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |