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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 private: | 97 private: |
98 // Offsets from frame_pointer() of function parameters and stored registers. | 98 // Offsets from frame_pointer() of function parameters and stored registers. |
99 static const int kFramePointer = 0; | 99 static const int kFramePointer = 0; |
100 | 100 |
101 // Above the frame pointer - Stored registers and stack passed parameters. | 101 // Above the frame pointer - Stored registers and stack passed parameters. |
102 // Registers s0 to s7, fp, and ra. | 102 // Registers s0 to s7, fp, and ra. |
103 static const int kStoredRegisters = kFramePointer; | 103 static const int kStoredRegisters = kFramePointer; |
104 // Return address (stored from link register, read into pc on return). | 104 // Return address (stored from link register, read into pc on return). |
105 static const int kReturnAddress = kStoredRegisters + 9 * kPointerSize; | 105 static const int kReturnAddress = kStoredRegisters + 9 * kPointerSize; |
| 106 static const int kSecondaryReturnAddress = kReturnAddress + kPointerSize; |
106 // Stack frame header. | 107 // Stack frame header. |
107 static const int kStackFrameHeader = kReturnAddress; | 108 static const int kStackFrameHeader = kReturnAddress + kPointerSize; |
108 // Stack parameters placed by caller. | 109 // Stack parameters placed by caller. |
109 static const int kRegisterOutput = kStackFrameHeader + 20; | 110 static const int kRegisterOutput = kStackFrameHeader + 20; |
110 static const int kNumOutputRegisters = kRegisterOutput + kPointerSize; | 111 static const int kNumOutputRegisters = kRegisterOutput + kPointerSize; |
111 static const int kStackHighEnd = kNumOutputRegisters + kPointerSize; | 112 static const int kStackHighEnd = kNumOutputRegisters + kPointerSize; |
112 static const int kDirectCall = kStackHighEnd + kPointerSize; | 113 static const int kDirectCall = kStackHighEnd + kPointerSize; |
113 static const int kIsolate = kDirectCall + kPointerSize; | 114 static const int kIsolate = kDirectCall + kPointerSize; |
114 | 115 |
115 // Below the frame pointer. | 116 // Below the frame pointer. |
116 // Register parameters stored by setup code. | 117 // Register parameters stored by setup code. |
117 static const int kInputEnd = kFramePointer - kPointerSize; | 118 static const int kInputEnd = kFramePointer - kPointerSize; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 Label internal_failure_label_; | 219 Label internal_failure_label_; |
219 }; | 220 }; |
220 | 221 |
221 #endif // V8_INTERPRETED_REGEXP | 222 #endif // V8_INTERPRETED_REGEXP |
222 | 223 |
223 | 224 |
224 } // namespace internal | 225 } // namespace internal |
225 } // namespace v8 | 226 } // namespace v8 |
226 | 227 |
227 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 228 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |