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 | |
Lasse Reichstein
2009/08/19 05:19:57
If we don't use native regexps then we shouldn't i
| |
35 class RegExpMacroAssemblerIA32: public RegExpMacroAssembler { | |
36 public: | |
37 RegExpMacroAssemblerIA32() { } | |
38 virtual ~RegExpMacroAssemblerIA32() { } | |
39 }; | |
40 | |
41 #else | |
34 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { | 42 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { |
35 public: | 43 public: |
36 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save); | 44 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save); |
37 virtual ~RegExpMacroAssemblerIA32(); | 45 virtual ~RegExpMacroAssemblerIA32(); |
38 virtual int stack_limit_slack(); | 46 virtual int stack_limit_slack(); |
39 virtual void AdvanceCurrentPosition(int by); | 47 virtual void AdvanceCurrentPosition(int by); |
40 virtual void AdvanceRegister(int reg, int by); | 48 virtual void AdvanceRegister(int reg, int by); |
41 virtual void Backtrack(); | 49 virtual void Backtrack(); |
42 virtual void Bind(Label* label); | 50 virtual void Bind(Label* label); |
43 virtual void CheckAtStart(Label* on_at_start); | 51 virtual void CheckAtStart(Label* on_at_start); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 | 225 |
218 // Labels used internally. | 226 // Labels used internally. |
219 Label entry_label_; | 227 Label entry_label_; |
220 Label start_label_; | 228 Label start_label_; |
221 Label success_label_; | 229 Label success_label_; |
222 Label backtrack_label_; | 230 Label backtrack_label_; |
223 Label exit_label_; | 231 Label exit_label_; |
224 Label check_preempt_label_; | 232 Label check_preempt_label_; |
225 Label stack_overflow_label_; | 233 Label stack_overflow_label_; |
226 }; | 234 }; |
235 #endif // V8_NATIVE_REGEXP | |
227 | 236 |
228 }} // namespace v8::internal | 237 }} // namespace v8::internal |
229 | 238 |
230 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 239 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |