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

Side by Side Diff: src/jsregexp.h

Issue 13784: * Fixed bug in handling of quantified look-aheads. (Closed)
Patch Set: 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 | « no previous file | src/jsregexp.cc » ('j') | src/parser.cc » ('J')
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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 1110
1111 DISALLOW_IMPLICIT_CONSTRUCTORS(AssertionPropagation); 1111 DISALLOW_IMPLICIT_CONSTRUCTORS(AssertionPropagation);
1112 }; 1112 };
1113 1113
1114 1114
1115 struct RegExpCompileData { 1115 struct RegExpCompileData {
1116 RegExpCompileData() 1116 RegExpCompileData()
1117 : tree(NULL), 1117 : tree(NULL),
1118 node(NULL), 1118 node(NULL),
1119 has_lookbehind(false), 1119 has_lookbehind(false),
1120 has_character_escapes(false), 1120 non_simple(false),
1121 capture_count(0) { } 1121 capture_count(0) { }
1122 RegExpTree* tree; 1122 RegExpTree* tree;
1123 RegExpNode* node; 1123 RegExpNode* node;
1124 bool has_lookbehind; 1124 bool has_lookbehind;
1125 bool has_character_escapes; 1125 bool non_simple;
1126 Handle<String> error; 1126 Handle<String> error;
1127 int capture_count; 1127 int capture_count;
1128 }; 1128 };
1129 1129
1130 1130
1131 class RegExpEngine: public AllStatic { 1131 class RegExpEngine: public AllStatic {
1132 public: 1132 public:
1133 static Handle<FixedArray> Compile(RegExpCompileData* input, 1133 static Handle<FixedArray> Compile(RegExpCompileData* input,
1134 bool ignore_case, 1134 bool ignore_case,
1135 bool multiline, 1135 bool multiline,
1136 Handle<String> pattern, 1136 Handle<String> pattern,
1137 bool is_ascii); 1137 bool is_ascii);
1138 1138
1139 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); 1139 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case);
1140 }; 1140 };
1141 1141
1142 1142
1143 } } // namespace v8::internal 1143 } } // namespace v8::internal
1144 1144
1145 #endif // V8_JSREGEXP_H_ 1145 #endif // V8_JSREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/jsregexp.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698