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

Side by Side Diff: src/regexp/regexp-ast.h

Issue 1608693003: [regexp] step back if starting unicode regexp within surrogate pair. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@unicodeclass
Patch Set: fix Created 4 years, 10 months 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/regexp/jsregexp.cc ('k') | test/mjsunit/harmony/unicode-regexp-last-index.js » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_REGEXP_REGEXP_AST_H_ 5 #ifndef V8_REGEXP_REGEXP_AST_H_
6 #define V8_REGEXP_REGEXP_AST_H_ 6 #define V8_REGEXP_REGEXP_AST_H_
7 7
8 #include "src/objects.h" 8 #include "src/objects.h"
9 #include "src/utils.h" 9 #include "src/utils.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Returns a value representing the standard character set if is_standard() 304 // Returns a value representing the standard character set if is_standard()
305 // returns true. 305 // returns true.
306 // Currently used values are: 306 // Currently used values are:
307 // s : unicode whitespace 307 // s : unicode whitespace
308 // S : unicode non-whitespace 308 // S : unicode non-whitespace
309 // w : ASCII word character (digit, letter, underscore) 309 // w : ASCII word character (digit, letter, underscore)
310 // W : non-ASCII word character 310 // W : non-ASCII word character
311 // d : ASCII digit 311 // d : ASCII digit
312 // D : non-ASCII digit 312 // D : non-ASCII digit
313 // . : non-unicode non-newline 313 // . : non-unicode non-newline
314 // * : All characters 314 // * : All characters, for advancing unanchored regexp
315 uc16 standard_type() { return set_.standard_set_type(); } 315 uc16 standard_type() { return set_.standard_set_type(); }
316 ZoneList<CharacterRange>* ranges(Zone* zone) { return set_.ranges(zone); } 316 ZoneList<CharacterRange>* ranges(Zone* zone) { return set_.ranges(zone); }
317 bool is_negated() { return is_negated_; } 317 bool is_negated() { return is_negated_; }
318 318
319 private: 319 private:
320 CharacterSet set_; 320 CharacterSet set_;
321 bool is_negated_; 321 bool is_negated_;
322 }; 322 };
323 323
324 324
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 RegExpEmpty* AsEmpty() override; 510 RegExpEmpty* AsEmpty() override;
511 bool IsEmpty() override; 511 bool IsEmpty() override;
512 int min_match() override { return 0; } 512 int min_match() override { return 0; }
513 int max_match() override { return 0; } 513 int max_match() override { return 0; }
514 }; 514 };
515 515
516 } // namespace internal 516 } // namespace internal
517 } // namespace v8 517 } // namespace v8
518 518
519 #endif // V8_REGEXP_REGEXP_AST_H_ 519 #endif // V8_REGEXP_REGEXP_AST_H_
OLDNEW
« no previous file with comments | « src/regexp/jsregexp.cc ('k') | test/mjsunit/harmony/unicode-regexp-last-index.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698