OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 111 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
112 virtual void ClearRegisters(int reg_from, int reg_to); | 112 virtual void ClearRegisters(int reg_from, int reg_to); |
113 virtual void WriteStackPointerToRegister(int reg); | 113 virtual void WriteStackPointerToRegister(int reg); |
114 | 114 |
115 // Called from RegExp if the stack-guard is triggered. | 115 // Called from RegExp if the stack-guard is triggered. |
116 // If the code object is relocated, the return address is fixed before | 116 // If the code object is relocated, the return address is fixed before |
117 // returning. | 117 // returning. |
118 static int CheckStackGuardState(Address* return_address, | 118 static int CheckStackGuardState(Address* return_address, |
119 Code* re_code, | 119 Code* re_code, |
120 Address re_frame); | 120 Address re_frame); |
| 121 |
121 private: | 122 private: |
122 // Offsets from frame_pointer() of function parameters and stored registers. | 123 // Offsets from frame_pointer() of function parameters and stored registers. |
123 static const int kFramePointer = 0; | 124 static const int kFramePointer = 0; |
124 | 125 |
125 // Above the frame pointer - Stored registers and stack passed parameters. | 126 // Above the frame pointer - Stored registers and stack passed parameters. |
126 // Registers s0 to s7, fp, and ra. | 127 // Registers s0 to s7, fp, and ra. |
127 static const int kStoredRegisters = kFramePointer; | 128 static const int kStoredRegisters = kFramePointer; |
128 // Return address (stored from link register, read into pc on return). | 129 // Return address (stored from link register, read into pc on return). |
129 static const int kReturnAddress = kStoredRegisters + 9 * kPointerSize; | 130 static const int kReturnAddress = kStoredRegisters + 9 * kPointerSize; |
130 static const int kSecondaryReturnAddress = kReturnAddress + kPointerSize; | 131 static const int kSecondaryReturnAddress = kReturnAddress + kPointerSize; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 Label stack_overflow_label_; | 249 Label stack_overflow_label_; |
249 Label internal_failure_label_; | 250 Label internal_failure_label_; |
250 }; | 251 }; |
251 | 252 |
252 #endif // V8_INTERPRETED_REGEXP | 253 #endif // V8_INTERPRETED_REGEXP |
253 | 254 |
254 | 255 |
255 }} // namespace v8::internal | 256 }} // namespace v8::internal |
256 | 257 |
257 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 258 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |