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 #include "src/zone-inl.h" | 10 #include "src/zone-inl.h" |
(...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 V8_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 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 Handle<String> sample_subject, | 1616 Handle<String> sample_subject, |
1617 bool is_ascii, Zone* zone); | 1617 bool is_ascii, Zone* zone); |
1618 | 1618 |
1619 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1619 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
1620 }; | 1620 }; |
1621 | 1621 |
1622 | 1622 |
1623 } } // namespace v8::internal | 1623 } } // namespace v8::internal |
1624 | 1624 |
1625 #endif // V8_JSREGEXP_H_ | 1625 #endif // V8_JSREGEXP_H_ |
OLD | NEW |