| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 | 5 |
| 6 | 6 |
| 7 #ifndef V8_MIPS_FRAMES_MIPS_H_ | 7 #ifndef V8_MIPS_FRAMES_MIPS_H_ |
| 8 #define V8_MIPS_FRAMES_MIPS_H_ | 8 #define V8_MIPS_FRAMES_MIPS_H_ |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 | 127 |
| 128 // ---------------------------------------------------- | 128 // ---------------------------------------------------- |
| 129 | 129 |
| 130 class EntryFrameConstants : public AllStatic { | 130 class EntryFrameConstants : public AllStatic { |
| 131 public: | 131 public: |
| 132 static const int kCallerFPOffset = | 132 static const int kCallerFPOffset = |
| 133 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); | 133 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 | 136 class ExitFrameConstants : public TypedFrameConstants { |
| 137 class ExitFrameConstants : public AllStatic { | |
| 138 public: | 137 public: |
| 139 static const int kFrameSize = 2 * kPointerSize; | 138 static const int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
| 140 | 139 static const int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
| 141 static const int kCodeOffset = -2 * kPointerSize; | 140 DEFINE_TYPED_FRAME_SIZES(2); |
| 142 static const int kSPOffset = -1 * kPointerSize; | |
| 143 | 141 |
| 144 // The caller fields are below the frame pointer on the stack. | 142 // The caller fields are below the frame pointer on the stack. |
| 145 static const int kCallerFPOffset = +0 * kPointerSize; | 143 static const int kCallerFPOffset = +0 * kPointerSize; |
| 146 // The calling JS function is between FP and PC. | 144 // The calling JS function is between FP and PC. |
| 147 static const int kCallerPCOffset = +1 * kPointerSize; | 145 static const int kCallerPCOffset = +1 * kPointerSize; |
| 148 | 146 |
| 149 // MIPS-specific: a pointer to the old sp to avoid unnecessary calculations. | 147 // MIPS-specific: a pointer to the old sp to avoid unnecessary calculations. |
| 150 static const int kCallerSPOffset = +2 * kPointerSize; | 148 static const int kCallerSPOffset = +2 * kPointerSize; |
| 151 | 149 |
| 152 // FP-relative displacement of the caller's SP. | 150 // FP-relative displacement of the caller's SP. |
| 153 static const int kCallerSPDisplacement = +2 * kPointerSize; | 151 static const int kCallerSPDisplacement = +2 * kPointerSize; |
| 154 | 152 |
| 155 static const int kConstantPoolOffset = 0; // Not used. | 153 static const int kConstantPoolOffset = 0; // Not used. |
| 156 }; | 154 }; |
| 157 | 155 |
| 158 | 156 |
| 159 class JavaScriptFrameConstants : public AllStatic { | 157 class JavaScriptFrameConstants : public AllStatic { |
| 160 public: | 158 public: |
| 161 // FP-relative. | 159 // FP-relative. |
| 162 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 160 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 163 static const int kLastParameterOffset = +2 * kPointerSize; | 161 static const int kLastParameterOffset = +2 * kPointerSize; |
| 164 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 162 static const int kFunctionOffset = StandardFrameConstants::kFunctionOffset; |
| 165 | 163 |
| 166 // Caller SP-relative. | 164 // Caller SP-relative. |
| 167 static const int kParam0Offset = -2 * kPointerSize; | 165 static const int kParam0Offset = -2 * kPointerSize; |
| 168 static const int kReceiverOffset = -1 * kPointerSize; | 166 static const int kReceiverOffset = -1 * kPointerSize; |
| 169 }; | 167 }; |
| 170 | 168 |
| 171 | 169 |
| 172 } // namespace internal | 170 } // namespace internal |
| 173 } // namespace v8 | 171 } // namespace v8 |
| 174 | 172 |
| 175 #endif | 173 #endif |
| OLD | NEW |