| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X64_FRAMES_X64_H_ | 5 #ifndef V8_X64_FRAMES_X64_H_ |
| 6 #define V8_X64_FRAMES_X64_H_ | 6 #define V8_X64_FRAMES_X64_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 kXMMRegisterSize * kCalleeSaveXMMRegisters; | 32 kXMMRegisterSize * kCalleeSaveXMMRegisters; |
| 33 static const int kCallerFPOffset = | 33 static const int kCallerFPOffset = |
| 34 -3 * kPointerSize + -7 * kRegisterSize - kXMMRegistersBlockSize; | 34 -3 * kPointerSize + -7 * kRegisterSize - kXMMRegistersBlockSize; |
| 35 #else | 35 #else |
| 36 // We have 3 Push and 5 pushq in the JSEntryStub::GenerateBody. | 36 // We have 3 Push and 5 pushq in the JSEntryStub::GenerateBody. |
| 37 static const int kCallerFPOffset = -3 * kPointerSize + -5 * kRegisterSize; | 37 static const int kCallerFPOffset = -3 * kPointerSize + -5 * kRegisterSize; |
| 38 #endif | 38 #endif |
| 39 static const int kArgvOffset = 6 * kPointerSize; | 39 static const int kArgvOffset = 6 * kPointerSize; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 | 42 class ExitFrameConstants : public TypedFrameConstants { |
| 43 class ExitFrameConstants : public AllStatic { | |
| 44 public: | 43 public: |
| 45 static const int kFrameSize = 2 * kPointerSize; | 44 static const int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
| 46 | 45 static const int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
| 47 static const int kCodeOffset = -2 * kPointerSize; | 46 DEFINE_TYPED_FRAME_SIZES(2); |
| 48 static const int kSPOffset = -1 * kPointerSize; | |
| 49 | 47 |
| 50 static const int kCallerFPOffset = +0 * kPointerSize; | 48 static const int kCallerFPOffset = +0 * kPointerSize; |
| 51 static const int kCallerPCOffset = kFPOnStackSize; | 49 static const int kCallerPCOffset = kFPOnStackSize; |
| 52 | 50 |
| 53 // FP-relative displacement of the caller's SP. It points just | 51 // FP-relative displacement of the caller's SP. It points just |
| 54 // below the saved PC. | 52 // below the saved PC. |
| 55 static const int kCallerSPDisplacement = kCallerPCOffset + kPCOnStackSize; | 53 static const int kCallerSPDisplacement = kCallerPCOffset + kPCOnStackSize; |
| 56 | 54 |
| 57 static const int kConstantPoolOffset = 0; // Not used | 55 static const int kConstantPoolOffset = 0; // Not used |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 | 58 |
| 61 class JavaScriptFrameConstants : public AllStatic { | 59 class JavaScriptFrameConstants : public AllStatic { |
| 62 public: | 60 public: |
| 63 // FP-relative. | 61 // FP-relative. |
| 64 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 62 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 65 static const int kLastParameterOffset = kFPOnStackSize + kPCOnStackSize; | 63 static const int kLastParameterOffset = kFPOnStackSize + kPCOnStackSize; |
| 66 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 64 static const int kFunctionOffset = StandardFrameConstants::kFunctionOffset; |
| 67 | 65 |
| 68 // Caller SP-relative. | 66 // Caller SP-relative. |
| 69 static const int kParam0Offset = -2 * kPointerSize; | 67 static const int kParam0Offset = -2 * kPointerSize; |
| 70 static const int kReceiverOffset = -1 * kPointerSize; | 68 static const int kReceiverOffset = -1 * kPointerSize; |
| 71 }; | 69 }; |
| 72 | 70 |
| 73 | 71 |
| 74 } // namespace internal | 72 } // namespace internal |
| 75 } // namespace v8 | 73 } // namespace v8 |
| 76 | 74 |
| 77 #endif // V8_X64_FRAMES_X64_H_ | 75 #endif // V8_X64_FRAMES_X64_H_ |
| OLD | NEW |