OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 17 matching lines...) Expand all Loading... |
28 #ifndef V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 28 #ifndef V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
29 #define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 29 #define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
30 | 30 |
31 #include "arm/assembler-arm.h" | 31 #include "arm/assembler-arm.h" |
32 #include "arm/assembler-arm-inl.h" | 32 #include "arm/assembler-arm-inl.h" |
33 | 33 |
34 namespace v8 { | 34 namespace v8 { |
35 namespace internal { | 35 namespace internal { |
36 | 36 |
37 | 37 |
38 #ifdef V8_INTERPRETED_REGEXP | 38 #ifndef V8_INTERPRETED_REGEXP |
39 class RegExpMacroAssemblerARM: public RegExpMacroAssembler { | |
40 public: | |
41 RegExpMacroAssemblerARM(); | |
42 virtual ~RegExpMacroAssemblerARM(); | |
43 }; | |
44 | |
45 #else // V8_INTERPRETED_REGEXP | |
46 class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { | 39 class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { |
47 public: | 40 public: |
48 RegExpMacroAssemblerARM(Mode mode, int registers_to_save, Zone* zone); | 41 RegExpMacroAssemblerARM(Mode mode, int registers_to_save, Zone* zone); |
49 virtual ~RegExpMacroAssemblerARM(); | 42 virtual ~RegExpMacroAssemblerARM(); |
50 virtual int stack_limit_slack(); | 43 virtual int stack_limit_slack(); |
51 virtual void AdvanceCurrentPosition(int by); | 44 virtual void AdvanceCurrentPosition(int by); |
52 virtual void AdvanceRegister(int reg, int by); | 45 virtual void AdvanceRegister(int reg, int by); |
53 virtual void Backtrack(); | 46 virtual void Backtrack(); |
54 virtual void Bind(Label* label); | 47 virtual void Bind(Label* label); |
55 virtual void CheckAtStart(Label* on_at_start); | 48 virtual void CheckAtStart(Label* on_at_start); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 Label check_preempt_label_; | 249 Label check_preempt_label_; |
257 Label stack_overflow_label_; | 250 Label stack_overflow_label_; |
258 }; | 251 }; |
259 | 252 |
260 #endif // V8_INTERPRETED_REGEXP | 253 #endif // V8_INTERPRETED_REGEXP |
261 | 254 |
262 | 255 |
263 }} // namespace v8::internal | 256 }} // namespace v8::internal |
264 | 257 |
265 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 258 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |