| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // next n characters are anded with the mask and compared with the value. | 627 // next n characters are anded with the mask and compared with the value. |
| 628 // A comparison failure indicates the node cannot match the next n characters. | 628 // A comparison failure indicates the node cannot match the next n characters. |
| 629 // A comparison success indicates the node may match. | 629 // A comparison success indicates the node may match. |
| 630 virtual void GetQuickCheckDetails(QuickCheckDetails* details, | 630 virtual void GetQuickCheckDetails(QuickCheckDetails* details, |
| 631 RegExpCompiler* compiler, | 631 RegExpCompiler* compiler, |
| 632 int characters_filled_in, | 632 int characters_filled_in, |
| 633 bool not_at_start) = 0; | 633 bool not_at_start) = 0; |
| 634 static const int kNodeIsTooComplexForGreedyLoops = -1; | 634 static const int kNodeIsTooComplexForGreedyLoops = -1; |
| 635 virtual int GreedyLoopTextLength() { return kNodeIsTooComplexForGreedyLoops; } | 635 virtual int GreedyLoopTextLength() { return kNodeIsTooComplexForGreedyLoops; } |
| 636 Label* label() { return &label_; } | 636 Label* label() { return &label_; } |
| 637 // If non-generic code is generated for a node (ie the node is not at the | 637 // If non-generic code is generated for a node (i.e. the node is not at the |
| 638 // start of the trace) then it cannot be reused. This variable sets a limit | 638 // start of the trace) then it cannot be reused. This variable sets a limit |
| 639 // on how often we allow that to happen before we insist on starting a new | 639 // on how often we allow that to happen before we insist on starting a new |
| 640 // trace and generating generic code for a node that can be reused by flushing | 640 // trace and generating generic code for a node that can be reused by flushing |
| 641 // the deferred actions in the current trace and generating a goto. | 641 // the deferred actions in the current trace and generating a goto. |
| 642 static const int kMaxCopiesCodeGenerated = 10; | 642 static const int kMaxCopiesCodeGenerated = 10; |
| 643 | 643 |
| 644 NodeInfo* info() { return &info_; } | 644 NodeInfo* info() { return &info_; } |
| 645 | 645 |
| 646 void AddSibling(RegExpNode* node) { siblings_.Add(node); } | 646 void AddSibling(RegExpNode* node) { siblings_.Add(node); } |
| 647 | 647 |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 int* vector_; | 1491 int* vector_; |
| 1492 int offsets_vector_length_; | 1492 int offsets_vector_length_; |
| 1493 | 1493 |
| 1494 friend class ExternalReference; | 1494 friend class ExternalReference; |
| 1495 }; | 1495 }; |
| 1496 | 1496 |
| 1497 | 1497 |
| 1498 } } // namespace v8::internal | 1498 } } // namespace v8::internal |
| 1499 | 1499 |
| 1500 #endif // V8_JSREGEXP_H_ | 1500 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |