| OLD | NEW |
| 1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-2009 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 13 matching lines...) Expand all Loading... |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 28 #ifndef V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
| 29 #define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 29 #define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
| 30 | 30 |
| 31 namespace v8 { | 31 namespace v8 { |
| 32 namespace internal { | 32 namespace internal { |
| 33 | 33 |
| 34 #ifndef V8_NATIVE_REGEXP | 34 #ifdef V8_INTERPRETED_REGEXP |
| 35 class RegExpMacroAssemblerIA32: public RegExpMacroAssembler { | 35 class RegExpMacroAssemblerIA32: public RegExpMacroAssembler { |
| 36 public: | 36 public: |
| 37 RegExpMacroAssemblerIA32() { } | 37 RegExpMacroAssemblerIA32() { } |
| 38 virtual ~RegExpMacroAssemblerIA32() { } | 38 virtual ~RegExpMacroAssemblerIA32() { } |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 #else | 41 #else // V8_INTERPRETED_REGEXP |
| 42 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { | 42 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { |
| 43 public: | 43 public: |
| 44 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save); | 44 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save); |
| 45 virtual ~RegExpMacroAssemblerIA32(); | 45 virtual ~RegExpMacroAssemblerIA32(); |
| 46 virtual int stack_limit_slack(); | 46 virtual int stack_limit_slack(); |
| 47 virtual void AdvanceCurrentPosition(int by); | 47 virtual void AdvanceCurrentPosition(int by); |
| 48 virtual void AdvanceRegister(int reg, int by); | 48 virtual void AdvanceRegister(int reg, int by); |
| 49 virtual void Backtrack(); | 49 virtual void Backtrack(); |
| 50 virtual void Bind(Label* label); | 50 virtual void Bind(Label* label); |
| 51 virtual void CheckAtStart(Label* on_at_start); | 51 virtual void CheckAtStart(Label* on_at_start); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 // Labels used internally. | 202 // Labels used internally. |
| 203 Label entry_label_; | 203 Label entry_label_; |
| 204 Label start_label_; | 204 Label start_label_; |
| 205 Label success_label_; | 205 Label success_label_; |
| 206 Label backtrack_label_; | 206 Label backtrack_label_; |
| 207 Label exit_label_; | 207 Label exit_label_; |
| 208 Label check_preempt_label_; | 208 Label check_preempt_label_; |
| 209 Label stack_overflow_label_; | 209 Label stack_overflow_label_; |
| 210 }; | 210 }; |
| 211 #endif // V8_NATIVE_REGEXP | 211 #endif // V8_INTERPRETED_REGEXP |
| 212 | 212 |
| 213 }} // namespace v8::internal | 213 }} // namespace v8::internal |
| 214 | 214 |
| 215 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 215 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |