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

Side by Side Diff: src/regexp/mips64/regexp-macro-assembler-mips64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 #include "src/mips64/assembler-mips64.h" 9 #include "src/mips64/assembler-mips64.h"
10 #include "src/regexp/regexp-macro-assembler.h" 10 #include "src/regexp/regexp-macro-assembler.h"
(...skipping 15 matching lines...) Expand all
26 virtual void CheckAtStart(Label* on_at_start); 26 virtual void CheckAtStart(Label* on_at_start);
27 virtual void CheckCharacter(uint32_t c, Label* on_equal); 27 virtual void CheckCharacter(uint32_t c, Label* on_equal);
28 virtual void CheckCharacterAfterAnd(uint32_t c, 28 virtual void CheckCharacterAfterAnd(uint32_t c,
29 uint32_t mask, 29 uint32_t mask,
30 Label* on_equal); 30 Label* on_equal);
31 virtual void CheckCharacterGT(uc16 limit, Label* on_greater); 31 virtual void CheckCharacterGT(uc16 limit, Label* on_greater);
32 virtual void CheckCharacterLT(uc16 limit, Label* on_less); 32 virtual void CheckCharacterLT(uc16 limit, Label* on_less);
33 // A "greedy loop" is a loop that is both greedy and with a simple 33 // A "greedy loop" is a loop that is both greedy and with a simple
34 // body. It has a particularly simple implementation. 34 // body. It has a particularly simple implementation.
35 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position); 35 virtual void CheckGreedyLoop(Label* on_tos_equals_current_position);
36 virtual void CheckNotAtStart(int cp_offset, Label* on_not_at_start); 36 virtual void CheckNotAtStart(Label* on_not_at_start);
37 virtual void CheckNotBackReference(int start_reg, bool read_backward, 37 virtual void CheckNotBackReference(int start_reg, Label* on_no_match);
38 Label* on_no_match);
39 virtual void CheckNotBackReferenceIgnoreCase(int start_reg, 38 virtual void CheckNotBackReferenceIgnoreCase(int start_reg,
40 bool read_backward,
41 Label* on_no_match); 39 Label* on_no_match);
42 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal); 40 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal);
43 virtual void CheckNotCharacterAfterAnd(uint32_t c, 41 virtual void CheckNotCharacterAfterAnd(uint32_t c,
44 uint32_t mask, 42 uint32_t mask,
45 Label* on_not_equal); 43 Label* on_not_equal);
46 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 44 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
47 uc16 minus, 45 uc16 minus,
48 uc16 mask, 46 uc16 mask,
49 Label* on_not_equal); 47 Label* on_not_equal);
50 virtual void CheckCharacterInRange(uc16 from, 48 virtual void CheckCharacterInRange(uc16 from,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 static const int kStackHighEnd = kDirectCall - kPointerSize; 118 static const int kStackHighEnd = kDirectCall - kPointerSize;
121 static const int kNumOutputRegisters = kStackHighEnd - kPointerSize; 119 static const int kNumOutputRegisters = kStackHighEnd - kPointerSize;
122 static const int kRegisterOutput = kNumOutputRegisters - kPointerSize; 120 static const int kRegisterOutput = kNumOutputRegisters - kPointerSize;
123 static const int kInputEnd = kRegisterOutput - kPointerSize; 121 static const int kInputEnd = kRegisterOutput - kPointerSize;
124 static const int kInputStart = kInputEnd - kPointerSize; 122 static const int kInputStart = kInputEnd - kPointerSize;
125 static const int kStartIndex = kInputStart - kPointerSize; 123 static const int kStartIndex = kInputStart - kPointerSize;
126 static const int kInputString = kStartIndex - kPointerSize; 124 static const int kInputString = kStartIndex - kPointerSize;
127 // When adding local variables remember to push space for them in 125 // When adding local variables remember to push space for them in
128 // the frame in GetCode. 126 // the frame in GetCode.
129 static const int kSuccessfulCaptures = kInputString - kPointerSize; 127 static const int kSuccessfulCaptures = kInputString - kPointerSize;
130 static const int kStringStartMinusOne = kSuccessfulCaptures - kPointerSize; 128 static const int kInputStartMinusOne = kSuccessfulCaptures - kPointerSize;
131 // First register address. Following registers are below it on the stack. 129 // First register address. Following registers are below it on the stack.
132 static const int kRegisterZero = kStringStartMinusOne - kPointerSize; 130 static const int kRegisterZero = kInputStartMinusOne - kPointerSize;
133 131
134 #elif defined(MIPS_ABI_O32) 132 #elif defined(MIPS_ABI_O32)
135 // Offsets from frame_pointer() of function parameters and stored registers. 133 // Offsets from frame_pointer() of function parameters and stored registers.
136 static const int kFramePointer = 0; 134 static const int kFramePointer = 0;
137 135
138 // Above the frame pointer - Stored registers and stack passed parameters. 136 // Above the frame pointer - Stored registers and stack passed parameters.
139 // Registers s0 to s7, fp, and ra. 137 // Registers s0 to s7, fp, and ra.
140 static const int kStoredRegisters = kFramePointer; 138 static const int kStoredRegisters = kFramePointer;
141 // Return address (stored from link register, read into pc on return). 139 // Return address (stored from link register, read into pc on return).
142 static const int kReturnAddress = kStoredRegisters + 9 * kPointerSize; 140 static const int kReturnAddress = kStoredRegisters + 9 * kPointerSize;
(...skipping 10 matching lines...) Expand all
153 151
154 // Below the frame pointer. 152 // Below the frame pointer.
155 // Register parameters stored by setup code. 153 // Register parameters stored by setup code.
156 static const int kInputEnd = kFramePointer - kPointerSize; 154 static const int kInputEnd = kFramePointer - kPointerSize;
157 static const int kInputStart = kInputEnd - kPointerSize; 155 static const int kInputStart = kInputEnd - kPointerSize;
158 static const int kStartIndex = kInputStart - kPointerSize; 156 static const int kStartIndex = kInputStart - kPointerSize;
159 static const int kInputString = kStartIndex - kPointerSize; 157 static const int kInputString = kStartIndex - kPointerSize;
160 // When adding local variables remember to push space for them in 158 // When adding local variables remember to push space for them in
161 // the frame in GetCode. 159 // the frame in GetCode.
162 static const int kSuccessfulCaptures = kInputString - kPointerSize; 160 static const int kSuccessfulCaptures = kInputString - kPointerSize;
163 static const int kStringStartMinusOne = kSuccessfulCaptures - kPointerSize; 161 static const int kInputStartMinusOne = kSuccessfulCaptures - kPointerSize;
164 // First register address. Following registers are below it on the stack. 162 // First register address. Following registers are below it on the stack.
165 static const int kRegisterZero = kStringStartMinusOne - kPointerSize; 163 static const int kRegisterZero = kInputStartMinusOne - kPointerSize;
166 164
167 #else 165 #else
168 # error "undefined MIPS ABI" 166 # error "undefined MIPS ABI"
169 #endif 167 #endif
170 168
171 // Initial size of code buffer. 169 // Initial size of code buffer.
172 static const size_t kRegExpCodeSize = 1024; 170 static const size_t kRegExpCodeSize = 1024;
173 171
174 // Load a number of characters at the given offset from the 172 // Load a number of characters at the given offset from the
175 // current position, into the current-character register. 173 // current position, into the current-character register.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 Label internal_failure_label_; 259 Label internal_failure_label_;
262 }; 260 };
263 261
264 #endif // V8_INTERPRETED_REGEXP 262 #endif // V8_INTERPRETED_REGEXP
265 263
266 264
267 } // namespace internal 265 } // namespace internal
268 } // namespace v8 266 } // namespace v8
269 267
270 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ 268 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/regexp/mips/regexp-macro-assembler-mips.cc ('k') | src/regexp/mips64/regexp-macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698