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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 class EntryFrameConstants : public AllStatic { | 155 class EntryFrameConstants : public AllStatic { |
156 public: | 156 public: |
157 static const int kCallerFPOffset = | 157 static const int kCallerFPOffset = |
158 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); | 158 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); |
159 }; | 159 }; |
160 | 160 |
161 | 161 |
162 class ExitFrameConstants : public AllStatic { | 162 class ExitFrameConstants : public AllStatic { |
163 public: | 163 public: |
164 // See some explanation in MacroAssembler::EnterExitFrame. | 164 static const int kFrameSize = 2 * kPointerSize; |
165 // This marks the top of the extra allocated stack space. | |
166 static const int kStackSpaceOffset = -3 * kPointerSize; | |
167 | 165 |
168 static const int kCodeOffset = -2 * kPointerSize; | 166 static const int kCodeOffset = -2 * kPointerSize; |
169 | |
170 static const int kSPOffset = -1 * kPointerSize; | 167 static const int kSPOffset = -1 * kPointerSize; |
171 | 168 |
172 // The caller fields are below the frame pointer on the stack. | 169 // The caller fields are below the frame pointer on the stack. |
173 static const int kCallerFPOffset = +0 * kPointerSize; | 170 static const int kCallerFPOffset = +0 * kPointerSize; |
174 // The calling JS function is between FP and PC. | 171 // The calling JS function is between FP and PC. |
175 static const int kCallerPCOffset = +1 * kPointerSize; | 172 static const int kCallerPCOffset = +1 * kPointerSize; |
176 | 173 |
177 // MIPS-specific: a pointer to the old sp to avoid unnecessary calculations. | 174 // MIPS-specific: a pointer to the old sp to avoid unnecessary calculations. |
178 static const int kCallerSPOffset = +2 * kPointerSize; | 175 static const int kCallerSPOffset = +2 * kPointerSize; |
179 | 176 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 229 |
233 | 230 |
234 inline void StackHandler::SetFp(Address slot, Address fp) { | 231 inline void StackHandler::SetFp(Address slot, Address fp) { |
235 Memory::Address_at(slot) = fp; | 232 Memory::Address_at(slot) = fp; |
236 } | 233 } |
237 | 234 |
238 | 235 |
239 } } // namespace v8::internal | 236 } } // namespace v8::internal |
240 | 237 |
241 #endif | 238 #endif |
OLD | NEW |