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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 bool check_bounds = true, | 59 bool check_bounds = true, |
60 int characters = 1); | 60 int characters = 1); |
61 virtual void CheckCharacter(unsigned c, Label* on_equal); | 61 virtual void CheckCharacter(unsigned c, Label* on_equal); |
62 virtual void CheckCharacterAfterAnd(unsigned c, | 62 virtual void CheckCharacterAfterAnd(unsigned c, |
63 unsigned mask, | 63 unsigned mask, |
64 Label* on_equal); | 64 Label* on_equal); |
65 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); | 65 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); |
66 virtual void CheckCharacterLT(uc16 limit, Label* on_less); | 66 virtual void CheckCharacterLT(uc16 limit, Label* on_less); |
67 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); | 67 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); |
68 virtual void CheckAtStart(Label* on_at_start); | 68 virtual void CheckAtStart(Label* on_at_start); |
69 virtual void CheckNotAtStart(Label* on_not_at_start); | 69 virtual void CheckNotAtStart(int cp_offset, Label* on_not_at_start); |
70 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal); | 70 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal); |
71 virtual void CheckNotCharacterAfterAnd(unsigned c, | 71 virtual void CheckNotCharacterAfterAnd(unsigned c, |
72 unsigned mask, | 72 unsigned mask, |
73 Label* on_not_equal); | 73 Label* on_not_equal); |
74 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, | 74 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, |
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 CheckNotBackReference(int start_reg, Label* on_no_match); | 85 virtual void CheckNotBackReference(int start_reg, bool read_backward, |
| 86 Label* on_no_match); |
86 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, | 87 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, |
| 88 bool read_backward, |
87 Label* on_no_match); | 89 Label* on_no_match); |
88 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); | 90 virtual void IfRegisterLT(int register_index, int comparand, Label* if_lt); |
89 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); | 91 virtual void IfRegisterGE(int register_index, int comparand, Label* if_ge); |
90 virtual void IfRegisterEqPos(int register_index, Label* if_eq); | 92 virtual void IfRegisterEqPos(int register_index, Label* if_eq); |
91 | 93 |
92 virtual IrregexpImplementation Implementation(); | 94 virtual IrregexpImplementation Implementation(); |
93 virtual Handle<HeapObject> GetCode(Handle<String> source); | 95 virtual Handle<HeapObject> GetCode(Handle<String> source); |
94 | 96 |
95 private: | 97 private: |
96 void Expand(); | 98 void Expand(); |
(...skipping 25 matching lines...) Expand all Loading... |
122 | 124 |
123 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 125 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
124 }; | 126 }; |
125 | 127 |
126 #endif // V8_INTERPRETED_REGEXP | 128 #endif // V8_INTERPRETED_REGEXP |
127 | 129 |
128 } // namespace internal | 130 } // namespace internal |
129 } // namespace v8 | 131 } // namespace v8 |
130 | 132 |
131 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 133 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
OLD | NEW |