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_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 5 #ifndef V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
7 | 7 |
| 8 #ifdef V8_INTERPRETED_REGEXP |
| 9 |
8 #include "src/regexp/regexp-macro-assembler.h" | 10 #include "src/regexp/regexp-macro-assembler.h" |
9 | 11 |
10 namespace v8 { | 12 namespace v8 { |
11 namespace internal { | 13 namespace internal { |
12 | 14 |
13 #ifdef V8_INTERPRETED_REGEXP | |
14 | |
15 // A light-weight assembler for the Irregexp byte code. | 15 // A light-weight assembler for the Irregexp byte code. |
16 class RegExpMacroAssemblerIrregexp: public RegExpMacroAssembler { | 16 class RegExpMacroAssemblerIrregexp: public RegExpMacroAssembler { |
17 public: | 17 public: |
18 // Create an assembler. Instructions and relocation information are emitted | 18 // Create an assembler. Instructions and relocation information are emitted |
19 // into a buffer, with the instructions starting from the beginning and the | 19 // into a buffer, with the instructions starting from the beginning and the |
20 // relocation information starting from the end of the buffer. See CodeDesc | 20 // relocation information starting from the end of the buffer. See CodeDesc |
21 // for a detailed comment on the layout (globals.h). | 21 // for a detailed comment on the layout (globals.h). |
22 // | 22 // |
23 // If the provided buffer is NULL, the assembler allocates and grows its own | 23 // If the provided buffer is NULL, the assembler allocates and grows its own |
24 // buffer, and buffer_size determines the initial buffer size. The buffer is | 24 // buffer, and buffer_size determines the initial buffer size. The buffer is |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 int advance_current_offset_; | 124 int advance_current_offset_; |
125 int advance_current_end_; | 125 int advance_current_end_; |
126 | 126 |
127 Isolate* isolate_; | 127 Isolate* isolate_; |
128 | 128 |
129 static const int kInvalidPC = -1; | 129 static const int kInvalidPC = -1; |
130 | 130 |
131 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); | 131 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); |
132 }; | 132 }; |
133 | 133 |
134 #endif // V8_INTERPRETED_REGEXP | |
135 | |
136 } // namespace internal | 134 } // namespace internal |
137 } // namespace v8 | 135 } // namespace v8 |
138 | 136 |
| 137 #endif // V8_INTERPRETED_REGEXP |
| 138 |
139 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ | 139 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ |
OLD | NEW |