Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: src/jsregexp.h

Issue 14190: * Added min/max match length to irregexp ast (Closed)
Patch Set: Addressed review comments Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698