| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 14 matching lines...) Expand all Loading... |
| 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_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 namespace v8 { | 31 namespace v8 { |
| 32 namespace internal { | 32 namespace internal { |
| 33 | 33 |
| 34 | 34 |
| 35 #ifndef V8_NATIVE_REGEXP | 35 #ifdef V8_INTERPRETED_REGEXP |
| 36 class RegExpMacroAssemblerARM: public RegExpMacroAssembler { | 36 class RegExpMacroAssemblerARM: public RegExpMacroAssembler { |
| 37 public: | 37 public: |
| 38 RegExpMacroAssemblerARM(); | 38 RegExpMacroAssemblerARM(); |
| 39 virtual ~RegExpMacroAssemblerARM(); | 39 virtual ~RegExpMacroAssemblerARM(); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #else | 42 #else // V8_INTERPRETED_REGEXP |
| 43 class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { | 43 class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { |
| 44 public: | 44 public: |
| 45 RegExpMacroAssemblerARM(Mode mode, int registers_to_save); | 45 RegExpMacroAssemblerARM(Mode mode, int registers_to_save); |
| 46 virtual ~RegExpMacroAssemblerARM(); | 46 virtual ~RegExpMacroAssemblerARM(); |
| 47 virtual int stack_limit_slack(); | 47 virtual int stack_limit_slack(); |
| 48 virtual void AdvanceCurrentPosition(int by); | 48 virtual void AdvanceCurrentPosition(int by); |
| 49 virtual void AdvanceRegister(int reg, int by); | 49 virtual void AdvanceRegister(int reg, int by); |
| 50 virtual void Backtrack(); | 50 virtual void Backtrack(); |
| 51 virtual void Bind(Label* label); | 51 virtual void Bind(Label* label); |
| 52 virtual void CheckAtStart(Label* on_at_start); | 52 virtual void CheckAtStart(Label* on_at_start); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 RegExpCEntryStub() {} | 267 RegExpCEntryStub() {} |
| 268 virtual ~RegExpCEntryStub() {} | 268 virtual ~RegExpCEntryStub() {} |
| 269 void Generate(MacroAssembler* masm); | 269 void Generate(MacroAssembler* masm); |
| 270 | 270 |
| 271 private: | 271 private: |
| 272 Major MajorKey() { return RegExpCEntry; } | 272 Major MajorKey() { return RegExpCEntry; } |
| 273 int MinorKey() { return 0; } | 273 int MinorKey() { return 0; } |
| 274 const char* GetName() { return "RegExpCEntryStub"; } | 274 const char* GetName() { return "RegExpCEntryStub"; } |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 #endif // V8_NATIVE_REGEXP | 277 #endif // V8_INTERPRETED_REGEXP |
| 278 | 278 |
| 279 | 279 |
| 280 }} // namespace v8::internal | 280 }} // namespace v8::internal |
| 281 | 281 |
| 282 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 282 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |