Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/regexp-macro-assembler.h

Issue 559913002: Rename ascii to one-byte where applicable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« src/jsregexp.cc ('K') | « src/objects-printer.cc ('k') | src/regexp-macro-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698