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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void CheckCharacters( | 68 virtual void CheckCharacters( |
69 Vector<const uc16> str, | 69 Vector<const uc16> str, |
70 int cp_offset, | 70 int cp_offset, |
71 Label* on_failure) = 0; | 71 Label* on_failure) = 0; |
72 // Check the current input position against a register. If the register is | 72 // Check the current input position against a register. If the register is |
73 // equal to the current position then go to the label. If the label is NULL | 73 // equal to the current position then go to the label. If the label is NULL |
74 // then backtrack instead. | 74 // then backtrack instead. |
75 virtual void CheckCurrentPosition( | 75 virtual void CheckCurrentPosition( |
76 int register_index, | 76 int register_index, |
77 Label* on_equal) = 0; | 77 Label* on_equal) = 0; |
| 78 virtual void CheckNotAtStart(Label* on_not_at_start) = 0; |
78 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; | 79 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; |
79 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, | 80 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, |
80 Label* on_no_match) = 0; | 81 Label* on_no_match) = 0; |
81 // Check the current character for a match with a literal character. If we | 82 // Check the current character for a match with a literal character. If we |
82 // fail to match then goto the on_failure label. End of input always | 83 // fail to match then goto the on_failure label. End of input always |
83 // matches. If the label is NULL then we should pop a backtrack address off | 84 // matches. If the label is NULL then we should pop a backtrack address off |
84 // the stack and go to that. | 85 // the stack and go to that. |
85 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0; | 86 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0; |
86 // Bitwise or the current character with the given constant and then | 87 // Bitwise or the current character with the given constant and then |
87 // check for a match with c. | 88 // check for a match with c. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 ArraySlice GetBuffer(Vector<T> values); | 177 ArraySlice GetBuffer(Vector<T> values); |
177 private: | 178 private: |
178 size_t byte_array_size_; | 179 size_t byte_array_size_; |
179 Handle<ByteArray> current_byte_array_; | 180 Handle<ByteArray> current_byte_array_; |
180 int current_byte_array_free_offset_; | 181 int current_byte_array_free_offset_; |
181 }; | 182 }; |
182 | 183 |
183 } } // namespace v8::internal | 184 } } // namespace v8::internal |
184 | 185 |
185 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 186 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
OLD | NEW |