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

Side by Side Diff: src/jsregexp.h

Issue 11397: Fixed bug 129 (Closed)
Patch Set: Created 12 years, 1 month 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/unicode.h » ('j') | test/cctest/test-regexp.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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 200 }
201 bool Contains(uc16 i) { return from_ <= i && i <= to_; } 201 bool Contains(uc16 i) { return from_ <= i && i <= to_; }
202 uc16 from() const { return from_; } 202 uc16 from() const { return from_; }
203 void set_from(uc16 value) { from_ = value; } 203 void set_from(uc16 value) { from_ = value; }
204 uc16 to() const { return to_; } 204 uc16 to() const { return to_; }
205 void set_to(uc16 value) { to_ = value; } 205 void set_to(uc16 value) { to_ = value; }
206 bool is_valid() { return from_ <= to_; } 206 bool is_valid() { return from_ <= to_; }
207 bool IsSingleton() { return (from_ == to_); } 207 bool IsSingleton() { return (from_ == to_); }
208 void AddCaseEquivalents(ZoneList<CharacterRange>* ranges); 208 void AddCaseEquivalents(ZoneList<CharacterRange>* ranges);
209 static const int kRangeCanonicalizeMax = 0x200; 209 static const int kRangeCanonicalizeMax = 0x200;
210 static const int kStartMarker = (1 << 10); 210 static const int kStartMarker = (1 << 24);
211 static const int kPayloadMask = (1 << 10) - 1; 211 static const int kPayloadMask = (1 << 24) - 1;
212 private: 212 private:
213 uc16 from_; 213 uc16 from_;
214 uc16 to_; 214 uc16 to_;
215 }; 215 };
216 216
217 217
218 template <typename Node, class Callback> 218 template <typename Node, class Callback>
219 static void DoForEach(Node* node, Callback* callback); 219 static void DoForEach(Node* node, Callback* callback);
220 220
221 221
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 static Handle<FixedArray> Compile(RegExpParseResult* input, 767 static Handle<FixedArray> Compile(RegExpParseResult* input,
768 RegExpNode** node_return, 768 RegExpNode** node_return,
769 bool ignore_case); 769 bool ignore_case);
770 static void DotPrint(const char* label, RegExpNode* node); 770 static void DotPrint(const char* label, RegExpNode* node);
771 }; 771 };
772 772
773 773
774 } } // namespace v8::internal 774 } } // namespace v8::internal
775 775
776 #endif // V8_JSREGEXP_H_ 776 #endif // V8_JSREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/unicode.h » ('j') | test/cctest/test-regexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698