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_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_X87_REGEXP_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_X87_REGEXP_MACRO_ASSEMBLER_X87_H_ |
7 | 7 |
8 #include "ia32/assembler-ia32.h" | 8 #include "x87/assembler-x87.h" |
9 #include "ia32/assembler-ia32-inl.h" | 9 #include "x87/assembler-x87-inl.h" |
10 #include "macro-assembler.h" | 10 #include "macro-assembler.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 #ifndef V8_INTERPRETED_REGEXP | 15 #ifndef V8_INTERPRETED_REGEXP |
16 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { | 16 class RegExpMacroAssemblerX87: public NativeRegExpMacroAssembler { |
17 public: | 17 public: |
18 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save, Zone* zone); | 18 RegExpMacroAssemblerX87(Mode mode, int registers_to_save, Zone* zone); |
19 virtual ~RegExpMacroAssemblerIA32(); | 19 virtual ~RegExpMacroAssemblerX87(); |
20 virtual int stack_limit_slack(); | 20 virtual int stack_limit_slack(); |
21 virtual void AdvanceCurrentPosition(int by); | 21 virtual void AdvanceCurrentPosition(int by); |
22 virtual void AdvanceRegister(int reg, int by); | 22 virtual void AdvanceRegister(int reg, int by); |
23 virtual void Backtrack(); | 23 virtual void Backtrack(); |
24 virtual void Bind(Label* label); | 24 virtual void Bind(Label* label); |
25 virtual void CheckAtStart(Label* on_at_start); | 25 virtual void CheckAtStart(Label* on_at_start); |
26 virtual void CheckCharacter(uint32_t c, Label* on_equal); | 26 virtual void CheckCharacter(uint32_t c, Label* on_equal); |
27 virtual void CheckCharacterAfterAnd(uint32_t c, | 27 virtual void CheckCharacterAfterAnd(uint32_t c, |
28 uint32_t mask, | 28 uint32_t mask, |
29 Label* on_equal); | 29 Label* on_equal); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 Label success_label_; | 190 Label success_label_; |
191 Label backtrack_label_; | 191 Label backtrack_label_; |
192 Label exit_label_; | 192 Label exit_label_; |
193 Label check_preempt_label_; | 193 Label check_preempt_label_; |
194 Label stack_overflow_label_; | 194 Label stack_overflow_label_; |
195 }; | 195 }; |
196 #endif // V8_INTERPRETED_REGEXP | 196 #endif // V8_INTERPRETED_REGEXP |
197 | 197 |
198 }} // namespace v8::internal | 198 }} // namespace v8::internal |
199 | 199 |
200 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ | 200 #endif // V8_X87_REGEXP_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |