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

Side by Side Diff: src/regexp/arm64/regexp-macro-assembler-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ 5 #ifndef V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_
6 #define V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ 6 #define V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_
7 7
8 #include "src/arm64/assembler-arm64.h" 8 #include "src/arm64/assembler-arm64.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/regexp/regexp-macro-assembler.h" 10 #include "src/regexp/regexp-macro-assembler.h"
(...skipping 21 matching lines...) Expand all
32 Label* on_equal); 32 Label* on_equal);
33 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); 33 virtual void CheckCharacterGT(uc16 limit, Label* on_greater);
34 virtual void CheckCharacterLT(uc16 limit, Label* on_less); 34 virtual void CheckCharacterLT(uc16 limit, Label* on_less);
35 virtual void CheckCharacters(Vector<const uc16> str, 35 virtual void CheckCharacters(Vector<const uc16> str,
36 int cp_offset, 36 int cp_offset,
37 Label* on_failure, 37 Label* on_failure,
38 bool check_end_of_string); 38 bool check_end_of_string);
39 // A "greedy loop" is a loop that is both greedy and with a simple 39 // A "greedy loop" is a loop that is both greedy and with a simple
40 // body. It has a particularly simple implementation. 40 // body. It has a particularly simple implementation.
41 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); 41 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position);
42 virtual void CheckNotAtStart(int cp_offset, Label* on_not_at_start); 42 virtual void CheckNotAtStart(Label* on_not_at_start);
43 virtual void CheckNotBackReference(int start_reg, bool read_backward, 43 virtual void CheckNotBackReference(int start_reg, Label* on_no_match);
44 Label* on_no_match);
45 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 44 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
46 bool read_backward,
47 Label* on_no_match); 45 Label* on_no_match);
48 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal); 46 virtual void CheckNotCharacter(unsigned c, Label* on_not_equal);
49 virtual void CheckNotCharacterAfterAnd(unsigned c, 47 virtual void CheckNotCharacterAfterAnd(unsigned c,
50 unsigned mask, 48 unsigned mask,
51 Label* on_not_equal); 49 Label* on_not_equal);
52 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 50 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
53 uc16 minus, 51 uc16 minus,
54 uc16 mask, 52 uc16 mask,
55 Label* on_not_equal); 53 Label* on_not_equal);
56 virtual void CheckCharacterInRange(uc16 from, 54 virtual void CheckCharacterInRange(uc16 from,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 Register frame_pointer() { return fp; } 183 Register frame_pointer() { return fp; }
186 184
187 // The register containing the backtrack stack top. Provides a meaningful 185 // The register containing the backtrack stack top. Provides a meaningful
188 // name to the register. 186 // name to the register.
189 Register backtrack_stackpointer() { return x23; } 187 Register backtrack_stackpointer() { return x23; }
190 188
191 // Register holding pointer to the current code object. 189 // Register holding pointer to the current code object.
192 Register code_pointer() { return x20; } 190 Register code_pointer() { return x20; }
193 191
194 // Register holding the value used for clearing capture registers. 192 // Register holding the value used for clearing capture registers.
195 Register string_start_minus_one() { return w24; } 193 Register non_position_value() { return w24; }
196 // The top 32 bit of this register is used to store this value 194 // The top 32 bit of this register is used to store this value
197 // twice. This is used for clearing more than one register at a time. 195 // twice. This is used for clearing more than one register at a time.
198 Register twice_non_position_value() { return x24; } 196 Register twice_non_position_value() { return x24; }
199 197
200 // Byte size of chars in the string to match (decided by the Mode argument) 198 // Byte size of chars in the string to match (decided by the Mode argument)
201 int char_size() { return static_cast<int>(mode_); } 199 int char_size() { return static_cast<int>(mode_); }
202 200
203 // Equivalent to a conditional branch to the label, unless the label 201 // Equivalent to a conditional branch to the label, unless the label
204 // is NULL, in which case it is a conditional Backtrack. 202 // is NULL, in which case it is a conditional Backtrack.
205 void BranchOrBacktrack(Condition condition, Label* to); 203 void BranchOrBacktrack(Condition condition, Label* to);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 Label stack_overflow_label_; 286 Label stack_overflow_label_;
289 }; 287 };
290 288
291 #endif // V8_INTERPRETED_REGEXP 289 #endif // V8_INTERPRETED_REGEXP
292 290
293 291
294 } // namespace internal 292 } // namespace internal
295 } // namespace v8 293 } // namespace v8
296 294
297 #endif // V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ 295 #endif // V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « src/regexp/arm/regexp-macro-assembler-arm.cc ('k') | src/regexp/arm64/regexp-macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698