| 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 #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/mips/assembler-mips.h" | 9 #include "src/mips/assembler-mips.h" |
| 10 #include "src/regexp/regexp-macro-assembler.h" | 10 #include "src/regexp/regexp-macro-assembler.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 113 |
| 116 // Below the frame pointer. | 114 // Below the frame pointer. |
| 117 // Register parameters stored by setup code. | 115 // Register parameters stored by setup code. |
| 118 static const int kInputEnd = kFramePointer - kPointerSize; | 116 static const int kInputEnd = kFramePointer - kPointerSize; |
| 119 static const int kInputStart = kInputEnd - kPointerSize; | 117 static const int kInputStart = kInputEnd - kPointerSize; |
| 120 static const int kStartIndex = kInputStart - kPointerSize; | 118 static const int kStartIndex = kInputStart - kPointerSize; |
| 121 static const int kInputString = kStartIndex - kPointerSize; | 119 static const int kInputString = kStartIndex - kPointerSize; |
| 122 // When adding local variables remember to push space for them in | 120 // When adding local variables remember to push space for them in |
| 123 // the frame in GetCode. | 121 // the frame in GetCode. |
| 124 static const int kSuccessfulCaptures = kInputString - kPointerSize; | 122 static const int kSuccessfulCaptures = kInputString - kPointerSize; |
| 125 static const int kStringStartMinusOne = kSuccessfulCaptures - kPointerSize; | 123 static const int kInputStartMinusOne = kSuccessfulCaptures - kPointerSize; |
| 126 // First register address. Following registers are below it on the stack. | 124 // First register address. Following registers are below it on the stack. |
| 127 static const int kRegisterZero = kStringStartMinusOne - kPointerSize; | 125 static const int kRegisterZero = kInputStartMinusOne - kPointerSize; |
| 128 | 126 |
| 129 // Initial size of code buffer. | 127 // Initial size of code buffer. |
| 130 static const size_t kRegExpCodeSize = 1024; | 128 static const size_t kRegExpCodeSize = 1024; |
| 131 | 129 |
| 132 // Load a number of characters at the given offset from the | 130 // Load a number of characters at the given offset from the |
| 133 // current position, into the current-character register. | 131 // current position, into the current-character register. |
| 134 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); | 132 void LoadCurrentCharacterUnchecked(int cp_offset, int character_count); |
| 135 | 133 |
| 136 // Check whether preemption has been requested. | 134 // Check whether preemption has been requested. |
| 137 void CheckPreemption(); | 135 void CheckPreemption(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 Label internal_failure_label_; | 217 Label internal_failure_label_; |
| 220 }; | 218 }; |
| 221 | 219 |
| 222 #endif // V8_INTERPRETED_REGEXP | 220 #endif // V8_INTERPRETED_REGEXP |
| 223 | 221 |
| 224 | 222 |
| 225 } // namespace internal | 223 } // namespace internal |
| 226 } // namespace v8 | 224 } // namespace v8 |
| 227 | 225 |
| 228 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 226 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |