Chromium Code Reviews| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 static const int kFrameSize = 2 * kPointerSize; | 164 static const int kFrameSize = 2 * kPointerSize; |
| 165 | 165 |
| 166 static const int kConstantPoolOffset = 0; | |
|
Paul Lind
2014/03/12 22:07:14
We should say '// Not used.' here as the other (no
| |
| 166 static const int kCodeOffset = -2 * kPointerSize; | 167 static const int kCodeOffset = -2 * kPointerSize; |
| 167 static const int kSPOffset = -1 * kPointerSize; | 168 static const int kSPOffset = -1 * kPointerSize; |
| 168 | 169 |
| 169 // The caller fields are below the frame pointer on the stack. | 170 // The caller fields are below the frame pointer on the stack. |
| 170 static const int kCallerFPOffset = +0 * kPointerSize; | 171 static const int kCallerFPOffset = +0 * kPointerSize; |
| 171 // The calling JS function is between FP and PC. | 172 // The calling JS function is between FP and PC. |
| 172 static const int kCallerPCOffset = +1 * kPointerSize; | 173 static const int kCallerPCOffset = +1 * kPointerSize; |
| 173 | 174 |
| 174 // MIPS-specific: a pointer to the old sp to avoid unnecessary calculations. | 175 // MIPS-specific: a pointer to the old sp to avoid unnecessary calculations. |
| 175 static const int kCallerSPOffset = +2 * kPointerSize; | 176 static const int kCallerSPOffset = +2 * kPointerSize; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 | 230 |
| 230 | 231 |
| 231 inline void StackHandler::SetFp(Address slot, Address fp) { | 232 inline void StackHandler::SetFp(Address slot, Address fp) { |
| 232 Memory::Address_at(slot) = fp; | 233 Memory::Address_at(slot) = fp; |
| 233 } | 234 } |
| 234 | 235 |
| 235 | 236 |
| 236 } } // namespace v8::internal | 237 } } // namespace v8::internal |
| 237 | 238 |
| 238 #endif | 239 #endif |
| OLD | NEW |