| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 virtual void PopCurrentPosition() = 0; | 148 virtual void PopCurrentPosition() = 0; |
| 149 virtual void PopRegister(int register_index) = 0; | 149 virtual void PopRegister(int register_index) = 0; |
| 150 // Pushes the label on the backtrack stack, so that a following Backtrack | 150 // Pushes the label on the backtrack stack, so that a following Backtrack |
| 151 // will go to this label. Always checks the backtrack stack limit. | 151 // will go to this label. Always checks the backtrack stack limit. |
| 152 virtual void PushBacktrack(Label* label) = 0; | 152 virtual void PushBacktrack(Label* label) = 0; |
| 153 virtual void PushCurrentPosition() = 0; | 153 virtual void PushCurrentPosition() = 0; |
| 154 virtual void PushRegister(int register_index, | 154 virtual void PushRegister(int register_index, |
| 155 StackCheckFlag check_stack_limit) = 0; | 155 StackCheckFlag check_stack_limit) = 0; |
| 156 virtual void ReadCurrentPositionFromRegister(int reg) = 0; | 156 virtual void ReadCurrentPositionFromRegister(int reg) = 0; |
| 157 virtual void ReadStackPointerFromRegister(int reg) = 0; | 157 virtual void ReadStackPointerFromRegister(int reg) = 0; |
| 158 virtual void SetCurrentPositionFromEnd(int by) = 0; |
| 158 virtual void SetRegister(int register_index, int to) = 0; | 159 virtual void SetRegister(int register_index, int to) = 0; |
| 159 virtual void Succeed() = 0; | 160 virtual void Succeed() = 0; |
| 160 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset) = 0; | 161 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset) = 0; |
| 161 virtual void ClearRegisters(int reg_from, int reg_to) = 0; | 162 virtual void ClearRegisters(int reg_from, int reg_to) = 0; |
| 162 virtual void WriteStackPointerToRegister(int reg) = 0; | 163 virtual void WriteStackPointerToRegister(int reg) = 0; |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 | 166 |
| 166 #ifndef V8_INTERPRETED_REGEXP // Avoid compiling unused code. | 167 #ifndef V8_INTERPRETED_REGEXP // Avoid compiling unused code. |
| 167 | 168 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 const byte* input_start, | 222 const byte* input_start, |
| 222 const byte* input_end, | 223 const byte* input_end, |
| 223 int* output); | 224 int* output); |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 #endif // V8_INTERPRETED_REGEXP | 227 #endif // V8_INTERPRETED_REGEXP |
| 227 | 228 |
| 228 } } // namespace v8::internal | 229 } } // namespace v8::internal |
| 229 | 230 |
| 230 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 231 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |