OLD | NEW |
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 | 5 |
6 #ifndef V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 6 #ifndef V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
7 #define V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 7 #define V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
8 | 8 |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 #include "src/mips/assembler-mips-inl.h" | 10 #include "src/mips/assembler-mips-inl.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 inline void Push(Register source); | 190 inline void Push(Register source); |
191 | 191 |
192 // Pops a value from the backtrack stack. Reads the word at the stack pointer | 192 // Pops a value from the backtrack stack. Reads the word at the stack pointer |
193 // and increments it by a word size. | 193 // and increments it by a word size. |
194 inline void Pop(Register target); | 194 inline void Pop(Register target); |
195 | 195 |
196 Isolate* isolate() const { return masm_->isolate(); } | 196 Isolate* isolate() const { return masm_->isolate(); } |
197 | 197 |
198 MacroAssembler* masm_; | 198 MacroAssembler* masm_; |
199 | 199 |
200 // Which mode to generate code for (ASCII or UC16). | 200 // Which mode to generate code for (Latin1 or UC16). |
201 Mode mode_; | 201 Mode mode_; |
202 | 202 |
203 // One greater than maximal register index actually used. | 203 // One greater than maximal register index actually used. |
204 int num_registers_; | 204 int num_registers_; |
205 | 205 |
206 // Number of registers to output at the end (the saved registers | 206 // Number of registers to output at the end (the saved registers |
207 // are always 0..num_saved_registers_-1). | 207 // are always 0..num_saved_registers_-1). |
208 int num_saved_registers_; | 208 int num_saved_registers_; |
209 | 209 |
210 // Labels used internally. | 210 // Labels used internally. |
211 Label entry_label_; | 211 Label entry_label_; |
212 Label start_label_; | 212 Label start_label_; |
213 Label success_label_; | 213 Label success_label_; |
214 Label backtrack_label_; | 214 Label backtrack_label_; |
215 Label exit_label_; | 215 Label exit_label_; |
216 Label check_preempt_label_; | 216 Label check_preempt_label_; |
217 Label stack_overflow_label_; | 217 Label stack_overflow_label_; |
218 Label internal_failure_label_; | 218 Label internal_failure_label_; |
219 }; | 219 }; |
220 | 220 |
221 #endif // V8_INTERPRETED_REGEXP | 221 #endif // V8_INTERPRETED_REGEXP |
222 | 222 |
223 | 223 |
224 }} // namespace v8::internal | 224 }} // namespace v8::internal |
225 | 225 |
226 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 226 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |