OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Bitwise or the current character with the given constant and then | 86 // Bitwise or the current character with the given constant and then |
87 // check for a match with c. | 87 // check for a match with c. |
88 virtual void CheckNotCharacterAfterOr(uc16 c, | 88 virtual void CheckNotCharacterAfterOr(uc16 c, |
89 uc16 or_with, | 89 uc16 or_with, |
90 Label* on_not_equal) = 0; | 90 Label* on_not_equal) = 0; |
91 // Subtract a constant from the current character, then or with the given | 91 // Subtract a constant from the current character, then or with the given |
92 // constant and then check for a match with c. | 92 // constant and then check for a match with c. |
93 virtual void CheckNotCharacterAfterMinusOr(uc16 c, | 93 virtual void CheckNotCharacterAfterMinusOr(uc16 c, |
94 uc16 minus_then_or_with, | 94 uc16 minus_then_or_with, |
95 Label* on_not_equal) = 0; | 95 Label* on_not_equal) = 0; |
| 96 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal) =
0; |
96 // Dispatch after looking the current character up in a byte map. The | 97 // Dispatch after looking the current character up in a byte map. The |
97 // destinations vector has up to 256 labels. | 98 // destinations vector has up to 256 labels. |
98 virtual void DispatchByteMap( | 99 virtual void DispatchByteMap( |
99 uc16 start, | 100 uc16 start, |
100 Label* byte_map, | 101 Label* byte_map, |
101 const Vector<Label*>& destinations) = 0; | 102 const Vector<Label*>& destinations) = 0; |
102 virtual void DispatchHalfNibbleMap( | 103 virtual void DispatchHalfNibbleMap( |
103 uc16 start, | 104 uc16 start, |
104 Label* half_nibble_map, | 105 Label* half_nibble_map, |
105 const Vector<Label*>& destinations) = 0; | 106 const Vector<Label*>& destinations) = 0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 ArraySlice GetBuffer(Vector<T> values); | 174 ArraySlice GetBuffer(Vector<T> values); |
174 private: | 175 private: |
175 size_t byte_array_size_; | 176 size_t byte_array_size_; |
176 Handle<ByteArray> current_byte_array_; | 177 Handle<ByteArray> current_byte_array_; |
177 int current_byte_array_free_offset_; | 178 int current_byte_array_free_offset_; |
178 }; | 179 }; |
179 | 180 |
180 } } // namespace v8::internal | 181 } } // namespace v8::internal |
181 | 182 |
182 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 183 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
OLD | NEW |