OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // Dispatch after looking the current character up in a 2-bits-per-entry | 80 // Dispatch after looking the current character up in a 2-bits-per-entry |
81 // map. The destinations vector has up to 4 labels. | 81 // map. The destinations vector has up to 4 labels. |
82 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0; | 82 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0; |
83 // Bitwise and the current character with the given constant and then | 83 // Bitwise and the current character with the given constant and then |
84 // check for a match with c. | 84 // check for a match with c. |
85 virtual void CheckCharacterAfterAnd(unsigned c, | 85 virtual void CheckCharacterAfterAnd(unsigned c, |
86 unsigned and_with, | 86 unsigned and_with, |
87 Label* on_equal) = 0; | 87 Label* on_equal) = 0; |
88 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; | 88 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; |
89 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; | 89 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; |
90 // Check the current character for a match with a literal string. If we | |
91 // fail to match then goto the on_failure label. If check_eos is set then | |
92 // the end of input always fails. If check_eos is clear then it is the | |
93 // caller's responsibility to ensure that the end of string is not hit. | |
94 // If the label is NULL then we should pop a backtrack address off | |
95 // the stack and go to that. | |
96 virtual void CheckCharacters( | |
97 Vector<const uc16> str, | |
98 int cp_offset, | |
99 Label* on_failure, | |
100 bool check_eos) = 0; | |
101 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0; | 90 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0; |
102 virtual void CheckNotAtStart(Label* on_not_at_start) = 0; | 91 virtual void CheckNotAtStart(Label* on_not_at_start) = 0; |
103 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; | 92 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; |
104 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, | 93 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, |
105 Label* on_no_match) = 0; | 94 Label* on_no_match) = 0; |
106 // Check the current character for a match with a literal character. If we | 95 // Check the current character for a match with a literal character. If we |
107 // fail to match then goto the on_failure label. End of input always | 96 // fail to match then goto the on_failure label. End of input always |
108 // matches. If the label is NULL then we should pop a backtrack address off | 97 // matches. If the label is NULL then we should pop a backtrack address off |
109 // the stack and go to that. | 98 // the stack and go to that. |
110 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0; | 99 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 int* output, | 250 int* output, |
262 int output_size, | 251 int output_size, |
263 Isolate* isolate); | 252 Isolate* isolate); |
264 }; | 253 }; |
265 | 254 |
266 #endif // V8_INTERPRETED_REGEXP | 255 #endif // V8_INTERPRETED_REGEXP |
267 | 256 |
268 } } // namespace v8::internal | 257 } } // namespace v8::internal |
269 | 258 |
270 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 259 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
OLD | NEW |