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

Side by Side Diff: src/regexp/regexp-macro-assembler-irregexp.h

Issue 1599303002: [regexp] implement case-insensitive unicode regexps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@unicodeclass
Patch Set: fixes 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MACRO_ASSEMBLER_IRREGEXP_H_ 5 #ifndef V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ 6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
7 7
8 #ifdef V8_INTERPRETED_REGEXP 8 #ifdef V8_INTERPRETED_REGEXP
9 9
10 #include "src/regexp/regexp-macro-assembler.h" 10 #include "src/regexp/regexp-macro-assembler.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 uc16 minus, 75 uc16 minus,
76 uc16 mask, 76 uc16 mask,
77 Label* on_not_equal); 77 Label* on_not_equal);
78 virtual void CheckCharacterInRange(uc16 from, 78 virtual void CheckCharacterInRange(uc16 from,
79 uc16 to, 79 uc16 to,
80 Label* on_in_range); 80 Label* on_in_range);
81 virtual void CheckCharacterNotInRange(uc16 from, 81 virtual void CheckCharacterNotInRange(uc16 from,
82 uc16 to, 82 uc16 to,
83 Label* on_not_in_range); 83 Label* on_not_in_range);
84 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set); 84 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set);
85 virtual void CheckPosition(int cp_offset, Label* on_outside_input) {
86 LoadCurrentCharacter(cp_offset, on_outside_input, true);
87 }
88 virtual bool CheckSpecialCharacterClass(uc16 type, Label* on_no_match) {
89 return false; // No custom support for character classes.
90 }
91 virtual void CheckNotBackReference(int start_reg, bool read_backward, 85 virtual void CheckNotBackReference(int start_reg, bool read_backward,
92 Label* on_no_match); 86 Label* on_no_match);
93 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 87 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
94 bool read_backward, 88 bool read_backward, bool unicode,
95 Label* on_no_match); 89 Label* on_no_match);
96 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); 90 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt);
97 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); 91 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge);
98 virtual void IfRegisterEqPos(int register_index, Label* if_eq); 92 virtual void IfRegisterEqPos(int register_index, Label* if_eq);
99 93
100 virtual IrregexpImplementation Implementation(); 94 virtual IrregexpImplementation Implementation();
101 virtual Handle<HeapObject> GetCode(Handle<String> source); 95 virtual Handle<HeapObject> GetCode(Handle<String> source);
102 96
103 private: 97 private:
104 void Expand(); 98 void Expand();
(...skipping 25 matching lines...) Expand all
130 124
131 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); 125 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp);
132 }; 126 };
133 127
134 } // namespace internal 128 } // namespace internal
135 } // namespace v8 129 } // namespace v8
136 130
137 #endif // V8_INTERPRETED_REGEXP 131 #endif // V8_INTERPRETED_REGEXP
138 132
139 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ 133 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698