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_H_ | 5 #ifndef V8_REGEXP_MACRO_ASSEMBLER_H_ |
6 #define V8_REGEXP_MACRO_ASSEMBLER_H_ | 6 #define V8_REGEXP_MACRO_ASSEMBLER_H_ |
7 | 7 |
8 #include "src/ast.h" | 8 #include "src/ast.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 bool global_mode_; | 164 bool global_mode_; |
165 Zone* zone_; | 165 Zone* zone_; |
166 }; | 166 }; |
167 | 167 |
168 | 168 |
169 #ifndef V8_INTERPRETED_REGEXP // Avoid compiling unused code. | 169 #ifndef V8_INTERPRETED_REGEXP // Avoid compiling unused code. |
170 | 170 |
171 class NativeRegExpMacroAssembler: public RegExpMacroAssembler { | 171 class NativeRegExpMacroAssembler: public RegExpMacroAssembler { |
172 public: | 172 public: |
173 // Type of input string to generate code for. | 173 // Type of input string to generate code for. |
174 enum Mode { ASCII = 1, UC16 = 2 }; | 174 enum Mode { LATIN1 = 1, UC16 = 2 }; |
175 | 175 |
176 // Result of calling generated native RegExp code. | 176 // Result of calling generated native RegExp code. |
177 // RETRY: Something significant changed during execution, and the matching | 177 // RETRY: Something significant changed during execution, and the matching |
178 // should be retried from scratch. | 178 // should be retried from scratch. |
179 // EXCEPTION: Something failed during execution. If no exception has been | 179 // EXCEPTION: Something failed during execution. If no exception has been |
180 // thrown, it's an internal out-of-memory, and the caller should | 180 // thrown, it's an internal out-of-memory, and the caller should |
181 // throw the exception. | 181 // throw the exception. |
182 // FAILURE: Matching failed. | 182 // FAILURE: Matching failed. |
183 // SUCCESS: Matching succeeded, and the output array has been filled with | 183 // SUCCESS: Matching succeeded, and the output array has been filled with |
184 // capture positions. | 184 // capture positions. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 int* output, | 229 int* output, |
230 int output_size, | 230 int output_size, |
231 Isolate* isolate); | 231 Isolate* isolate); |
232 }; | 232 }; |
233 | 233 |
234 #endif // V8_INTERPRETED_REGEXP | 234 #endif // V8_INTERPRETED_REGEXP |
235 | 235 |
236 } } // namespace v8::internal | 236 } } // namespace v8::internal |
237 | 237 |
238 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 238 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
OLD | NEW |