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

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

Issue 1451373003: Revert of Experimental support for RegExp lookbehind. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
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_REGEXP_MACRO_ASSEMBLER_H_ 5 #ifndef V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_
6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ 6 #define V8_REGEXP_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // map. The destinations vector has up to 4 labels. 64 // map. The destinations vector has up to 4 labels.
65 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0; 65 virtual void CheckCharacter(unsigned c, Label* on_equal) = 0;
66 // Bitwise and the current character with the given constant and then 66 // Bitwise and the current character with the given constant and then
67 // check for a match with c. 67 // check for a match with c.
68 virtual void CheckCharacterAfterAnd(unsigned c, 68 virtual void CheckCharacterAfterAnd(unsigned c,
69 unsigned and_with, 69 unsigned and_with,
70 Label* on_equal) = 0; 70 Label* on_equal) = 0;
71 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; 71 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0;
72 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; 72 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0;
73 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0; 73 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position) = 0;
74 virtual void CheckNotAtStart(int cp_offset, Label* on_not_at_start) = 0; 74 virtual void CheckNotAtStart(Label* on_not_at_start) = 0;
75 virtual void CheckNotBackReference(int start_reg, bool read_backward, 75 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0;
76 Label* on_no_match) = 0;
77 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 76 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
78 bool read_backward,
79 Label* on_no_match) = 0; 77 Label* on_no_match) = 0;
80 // Check the current character for a match with a literal character. If we 78 // Check the current character for a match with a literal character. If we
81 // fail to match then goto the on_failure label. End of input always 79 // fail to match then goto the on_failure label. End of input always
82 // matches. If the label is NULL then we should pop a backtrack address off 80 // matches. If the label is NULL then we should pop a backtrack address off
83 // the stack and go to that. 81 // the stack and go to that.
84 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0; 82 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal) = 0;
85 virtual void CheckNotCharacterAfterAnd(unsigned c, 83 virtual void CheckNotCharacterAfterAnd(unsigned c,
86 unsigned and_with, 84 unsigned and_with,
87 Label* on_not_equal) = 0; 85 Label* on_not_equal) = 0;
88 // Subtract a constant from the current character, then and with the given 86 // Subtract a constant from the current character, then and with the given
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 int output_size, 242 int output_size,
245 Isolate* isolate); 243 Isolate* isolate);
246 }; 244 };
247 245
248 #endif // V8_INTERPRETED_REGEXP 246 #endif // V8_INTERPRETED_REGEXP
249 247
250 } // namespace internal 248 } // namespace internal
251 } // namespace v8 249 } // namespace v8
252 250
253 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ 251 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/regexp/mips64/regexp-macro-assembler-mips64.cc ('k') | src/regexp/regexp-macro-assembler-irregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698