OLD | NEW |
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 #include "src/regexp/regexp-macro-assembler.h" | 8 #include "src/regexp/regexp-macro-assembler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
85 virtual void CheckNotBackReference(int start_reg, bool read_backward, | 91 virtual void CheckNotBackReference(int start_reg, bool read_backward, |
86 Label* on_no_match); | 92 Label* on_no_match); |
87 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, | 93 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, |
88 bool read_backward, | 94 bool read_backward, |
89 Label* on_no_match); | 95 Label* on_no_match); |
90 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); | 96 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); |
91 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); | 97 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); |
92 virtual void IfRegisterEqPos(int register_index, Label* if_eq); | 98 virtual void IfRegisterEqPos(int register_index, Label* if_eq); |
93 | 99 |
94 virtual IrregexpImplementation Implementation(); | 100 virtual IrregexpImplementation Implementation(); |
(...skipping 29 matching lines...) Expand all Loading... |
124 | 130 |
125 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 131 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
126 }; | 132 }; |
127 | 133 |
128 #endif // V8_INTERPRETED_REGEXP | 134 #endif // V8_INTERPRETED_REGEXP |
129 | 135 |
130 } // namespace internal | 136 } // namespace internal |
131 } // namespace v8 | 137 } // namespace v8 |
132 | 138 |
133 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 139 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
OLD | NEW |