| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_JSREGEXP_H_ | 5 #ifndef V8_JSREGEXP_H_ |
| 6 #define V8_JSREGEXP_H_ | 6 #define V8_JSREGEXP_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 | 10 |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 VISIT(BackReference) \ | 399 VISIT(BackReference) \ |
| 400 VISIT(Empty) \ | 400 VISIT(Empty) \ |
| 401 VISIT(Text) | 401 VISIT(Text) |
| 402 | 402 |
| 403 | 403 |
| 404 #define FORWARD_DECLARE(Name) class RegExp##Name; | 404 #define FORWARD_DECLARE(Name) class RegExp##Name; |
| 405 FOR_EACH_REG_EXP_TREE_TYPE(FORWARD_DECLARE) | 405 FOR_EACH_REG_EXP_TREE_TYPE(FORWARD_DECLARE) |
| 406 #undef FORWARD_DECLARE | 406 #undef FORWARD_DECLARE |
| 407 | 407 |
| 408 | 408 |
| 409 class TextElement FINAL BASE_EMBEDDED { | 409 class TextElement final BASE_EMBEDDED { |
| 410 public: | 410 public: |
| 411 enum TextType { | 411 enum TextType { |
| 412 ATOM, | 412 ATOM, |
| 413 CHAR_CLASS | 413 CHAR_CLASS |
| 414 }; | 414 }; |
| 415 | 415 |
| 416 static TextElement Atom(RegExpAtom* atom); | 416 static TextElement Atom(RegExpAtom* atom); |
| 417 static TextElement CharClass(RegExpCharacterClass* char_class); | 417 static TextElement CharClass(RegExpCharacterClass* char_class); |
| 418 | 418 |
| 419 int cp_offset() const { return cp_offset_; } | 419 int cp_offset() const { return cp_offset_; } |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1675 | 1675 |
| 1676 static bool TooMuchRegExpCode(Handle<String> pattern); | 1676 static bool TooMuchRegExpCode(Handle<String> pattern); |
| 1677 | 1677 |
| 1678 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1678 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
| 1679 }; | 1679 }; |
| 1680 | 1680 |
| 1681 | 1681 |
| 1682 } } // namespace v8::internal | 1682 } } // namespace v8::internal |
| 1683 | 1683 |
| 1684 #endif // V8_JSREGEXP_H_ | 1684 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |