| 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_H_ | 5 #ifndef V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ |
| 6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ | 6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/ast.h" | 8 #include "src/ast.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // map. The destinations vector has up to 4 labels. | 64 // map. The destinations vector has up to 4 labels. |
| 65 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0; | 65 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0; |
| 66 // Bitwise and the current character with the given constant and then | 66 // Bitwise and the current character with the given constant and then |
| 67 // check for a match with c. | 67 // check for a match with c. |
| 68 virtual void CheckCharacterAfterAnd(unsigned c, | 68 virtual void CheckCharacterAfterAnd(unsigned c, |
| 69 unsigned and_with, | 69 unsigned and_with, |
| 70 Label* on_equal) = 0; | 70 Label* on_equal) = 0; |
| 71 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; | 71 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; |
| 72 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; | 72 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; |
| 73 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0; | 73 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0; |
| 74 virtual void CheckNotAtStart(Label* on_not_at_start) = 0; | 74 virtual void CheckNotAtStart(int cp_offset, Label* on_not_at_start) = 0; |
| 75 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; | 75 virtual void CheckNotBackReference(int start_reg, bool read_backward, |
| 76 Label* on_no_match) = 0; |
| 76 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, | 77 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, |
| 78 bool read_backward, |
| 77 Label* on_no_match) = 0; | 79 Label* on_no_match) = 0; |
| 78 // Check the current character for a match with a literal character. If we | 80 // Check the current character for a match with a literal character. If we |
| 79 // fail to match then goto the on_failure label. End of input always | 81 // fail to match then goto the on_failure label. End of input always |
| 80 // matches. If the label is NULL then we should pop a backtrack address off | 82 // matches. If the label is NULL then we should pop a backtrack address off |
| 81 // the stack and go to that. | 83 // the stack and go to that. |
| 82 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0; | 84 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0; |
| 83 virtual void CheckNotCharacterAfterAnd(unsigned c, | 85 virtual void CheckNotCharacterAfterAnd(unsigned c, |
| 84 unsigned and_with, | 86 unsigned and_with, |
| 85 Label* on_not_equal) = 0; | 87 Label* on_not_equal) = 0; |
| 86 // Subtract a constant from the current character, then and with the given | 88 // Subtract a constant from the current character, then and with the given |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 int output_size, | 244 int output_size, |
| 243 Isolate* isolate); | 245 Isolate* isolate); |
| 244 }; | 246 }; |
| 245 | 247 |
| 246 #endif // V8_INTERPRETED_REGEXP | 248 #endif // V8_INTERPRETED_REGEXP |
| 247 | 249 |
| 248 } // namespace internal | 250 } // namespace internal |
| 249 } // namespace v8 | 251 } // namespace v8 |
| 250 | 252 |
| 251 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ | 253 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |