| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 CheckNotBackReference(int start_reg, Label* on_no_match) = 0; | 78 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0; |
| 79 virtual void CheckNotBackReferenceCaseIndependent(int start_reg, |
| 80 Label* on_no_match) = 0; |
| 79 // Check the current character for a match with a literal character. If we | 81 // Check the current character for a match with a literal character. If we |
| 80 // fail to match then goto the on_failure label. End of input always | 82 // fail to match then goto the on_failure label. End of input always |
| 81 // matches. If the label is NULL then we should pop a backtrack address off | 83 // matches. If the label is NULL then we should pop a backtrack address off |
| 82 // the stack and go to that. | 84 // the stack and go to that. |
| 83 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0; | 85 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0; |
| 84 // Bitwise or the current character with the given constant and then | 86 // Bitwise or the current character with the given constant and then |
| 85 // check for a match with c. | 87 // check for a match with c. |
| 86 virtual void CheckNotCharacterAfterOr(uc16 c, | 88 virtual void CheckNotCharacterAfterOr(uc16 c, |
| 87 uc16 or_with, | 89 uc16 or_with, |
| 88 Label* on_not_equal) = 0; | 90 Label* on_not_equal) = 0; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 ArraySlice GetBuffer(Vector<T> values); | 174 ArraySlice GetBuffer(Vector<T> values); |
| 173 private: | 175 private: |
| 174 size_t byte_array_size_; | 176 size_t byte_array_size_; |
| 175 Handle<ByteArray> current_byte_array_; | 177 Handle<ByteArray> current_byte_array_; |
| 176 int current_byte_array_free_offset_; | 178 int current_byte_array_free_offset_; |
| 177 }; | 179 }; |
| 178 | 180 |
| 179 } } // namespace v8::internal | 181 } } // namespace v8::internal |
| 180 | 182 |
| 181 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 183 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |