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_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 5 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
6 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 6 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
7 | 7 |
8 #include "src/regexp-macro-assembler.h" | 8 #include "src/regexp-macro-assembler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 13 matching lines...) Expand all Loading... |
24 // owned by the assembler and deallocated upon destruction of the assembler. | 24 // owned by the assembler and deallocated upon destruction of the assembler. |
25 // | 25 // |
26 // If the provided buffer is not NULL, the assembler uses the provided buffer | 26 // If the provided buffer is not NULL, the assembler uses the provided buffer |
27 // for code generation and assumes its size to be buffer_size. If the buffer | 27 // for code generation and assumes its size to be buffer_size. If the buffer |
28 // is too small, a fatal error occurs. No deallocation of the buffer is done | 28 // is too small, a fatal error occurs. No deallocation of the buffer is done |
29 // upon destruction of the assembler. | 29 // upon destruction of the assembler. |
30 RegExpMacroAssemblerIrregexp(Vector<byte>, Zone* zone); | 30 RegExpMacroAssemblerIrregexp(Vector<byte>, Zone* zone); |
31 virtual ~RegExpMacroAssemblerIrregexp(); | 31 virtual ~RegExpMacroAssemblerIrregexp(); |
32 // The byte-code interpreter checks on each push anyway. | 32 // The byte-code interpreter checks on each push anyway. |
33 virtual int stack_limit_slack() { return 1; } | 33 virtual int stack_limit_slack() { return 1; } |
| 34 virtual bool CanReadUnaligned() { return false; } |
34 virtual void Bind(Label* label); | 35 virtual void Bind(Label* label); |
35 virtual void AdvanceCurrentPosition(int by); // Signed cp change. | 36 virtual void AdvanceCurrentPosition(int by); // Signed cp change. |
36 virtual void PopCurrentPosition(); | 37 virtual void PopCurrentPosition(); |
37 virtual void PushCurrentPosition(); | 38 virtual void PushCurrentPosition(); |
38 virtual void Backtrack(); | 39 virtual void Backtrack(); |
39 virtual void GoTo(Label* label); | 40 virtual void GoTo(Label* label); |
40 virtual void PushBacktrack(Label* label); | 41 virtual void PushBacktrack(Label* label); |
41 virtual bool Succeed(); | 42 virtual bool Succeed(); |
42 virtual void Fail(); | 43 virtual void Fail(); |
43 virtual void PopRegister(int register_index); | 44 virtual void PopRegister(int register_index); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 static const int kInvalidPC = -1; | 119 static const int kInvalidPC = -1; |
119 | 120 |
120 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 121 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
121 }; | 122 }; |
122 | 123 |
123 #endif // V8_INTERPRETED_REGEXP | 124 #endif // V8_INTERPRETED_REGEXP |
124 | 125 |
125 } } // namespace v8::internal | 126 } } // namespace v8::internal |
126 | 127 |
127 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 128 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
OLD | NEW |