| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // The caller fields are below the frame pointer on the stack. | 169 // The caller fields are below the frame pointer on the stack. |
| 170 static const int kCallerFPOffset = +0 * kPointerSize; | 170 static const int kCallerFPOffset = +0 * kPointerSize; |
| 171 // The calling JS function is between FP and PC. | 171 // The calling JS function is between FP and PC. |
| 172 static const int kCallerPCOffset = +1 * kPointerSize; | 172 static const int kCallerPCOffset = +1 * kPointerSize; |
| 173 | 173 |
| 174 // 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. |
| 175 static const int kCallerSPOffset = +2 * kPointerSize; | 175 static const int kCallerSPOffset = +2 * kPointerSize; |
| 176 | 176 |
| 177 // FP-relative displacement of the caller's SP. | 177 // FP-relative displacement of the caller's SP. |
| 178 static const int kCallerSPDisplacement = +2 * kPointerSize; | 178 static const int kCallerSPDisplacement = +2 * kPointerSize; |
| 179 |
| 180 static const int kConstantPoolOffset = 0; // Not used. |
| 179 }; | 181 }; |
| 180 | 182 |
| 181 | 183 |
| 182 class JavaScriptFrameConstants : public AllStatic { | 184 class JavaScriptFrameConstants : public AllStatic { |
| 183 public: | 185 public: |
| 184 // FP-relative. | 186 // FP-relative. |
| 185 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 187 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 186 static const int kLastParameterOffset = +2 * kPointerSize; | 188 static const int kLastParameterOffset = +2 * kPointerSize; |
| 187 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 189 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 188 | 190 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 231 |
| 230 | 232 |
| 231 inline void StackHandler::SetFp(Address slot, Address fp) { | 233 inline void StackHandler::SetFp(Address slot, Address fp) { |
| 232 Memory::Address_at(slot) = fp; | 234 Memory::Address_at(slot) = fp; |
| 233 } | 235 } |
| 234 | 236 |
| 235 | 237 |
| 236 } } // namespace v8::internal | 238 } } // namespace v8::internal |
| 237 | 239 |
| 238 #endif | 240 #endif |
| OLD | NEW |