| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 #undef FORWARD_DECLARE | 432 #undef FORWARD_DECLARE |
| 433 | 433 |
| 434 | 434 |
| 435 class TextElement { | 435 class TextElement { |
| 436 public: | 436 public: |
| 437 enum Type {UNINITIALIZED, ATOM, CHAR_CLASS}; | 437 enum Type {UNINITIALIZED, ATOM, CHAR_CLASS}; |
| 438 TextElement() : type(UNINITIALIZED) { } | 438 TextElement() : type(UNINITIALIZED) { } |
| 439 explicit TextElement(Type t) : type(t), cp_offset(-1) { } | 439 explicit TextElement(Type t) : type(t), cp_offset(-1) { } |
| 440 static TextElement Atom(RegExpAtom* atom); | 440 static TextElement Atom(RegExpAtom* atom); |
| 441 static TextElement CharClass(RegExpCharacterClass* char_class); | 441 static TextElement CharClass(RegExpCharacterClass* char_class); |
| 442 int length(); |
| 442 Type type; | 443 Type type; |
| 443 union { | 444 union { |
| 444 RegExpAtom* u_atom; | 445 RegExpAtom* u_atom; |
| 445 RegExpCharacterClass* u_char_class; | 446 RegExpCharacterClass* u_char_class; |
| 446 } data; | 447 } data; |
| 447 int cp_offset; | 448 int cp_offset; |
| 448 }; | 449 }; |
| 449 | 450 |
| 450 | 451 |
| 451 class GenerationVariant; | 452 class GenerationVariant; |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 Handle<String> pattern, | 1137 Handle<String> pattern, |
| 1137 bool is_ascii); | 1138 bool is_ascii); |
| 1138 | 1139 |
| 1139 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1140 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
| 1140 }; | 1141 }; |
| 1141 | 1142 |
| 1142 | 1143 |
| 1143 } } // namespace v8::internal | 1144 } } // namespace v8::internal |
| 1144 | 1145 |
| 1145 #endif // V8_JSREGEXP_H_ | 1146 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |