OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_FRAMES_PPC_H_ | 5 #ifndef V8_PPC_FRAMES_PPC_H_ |
6 #define V8_PPC_FRAMES_PPC_H_ | 6 #define V8_PPC_FRAMES_PPC_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 // ---------------------------------------------------- | 146 // ---------------------------------------------------- |
147 | 147 |
148 | 148 |
149 class EntryFrameConstants : public AllStatic { | 149 class EntryFrameConstants : public AllStatic { |
150 public: | 150 public: |
151 static const int kCallerFPOffset = | 151 static const int kCallerFPOffset = |
152 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); | 152 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); |
153 }; | 153 }; |
154 | 154 |
155 | 155 class ExitFrameConstants : public TypedFrameConstants { |
156 class ExitFrameConstants : public AllStatic { | |
157 public: | 156 public: |
158 static const int kFrameSize = | 157 static const int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
159 FLAG_enable_embedded_constant_pool ? 3 * kPointerSize : 2 * kPointerSize; | 158 static const int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
160 | 159 DEFINE_TYPED_FRAME_SIZES(2); |
161 static const int kConstantPoolOffset = | |
162 FLAG_enable_embedded_constant_pool ? -3 * kPointerSize : 0; | |
163 static const int kCodeOffset = -2 * kPointerSize; | |
164 static const int kSPOffset = -1 * kPointerSize; | |
165 | 160 |
166 // The caller fields are below the frame pointer on the stack. | 161 // The caller fields are below the frame pointer on the stack. |
167 static const int kCallerFPOffset = 0 * kPointerSize; | 162 static const int kCallerFPOffset = 0 * kPointerSize; |
168 // The calling JS function is below FP. | 163 // The calling JS function is below FP. |
169 static const int kCallerPCOffset = 1 * kPointerSize; | 164 static const int kCallerPCOffset = 1 * kPointerSize; |
170 | 165 |
171 // FP-relative displacement of the caller's SP. It points just | 166 // FP-relative displacement of the caller's SP. It points just |
172 // below the saved PC. | 167 // below the saved PC. |
173 static const int kCallerSPDisplacement = 2 * kPointerSize; | 168 static const int kCallerSPDisplacement = 2 * kPointerSize; |
174 }; | 169 }; |
175 | 170 |
176 | 171 |
177 class JavaScriptFrameConstants : public AllStatic { | 172 class JavaScriptFrameConstants : public AllStatic { |
178 public: | 173 public: |
179 // FP-relative. | 174 // FP-relative. |
180 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 175 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
181 static const int kLastParameterOffset = +2 * kPointerSize; | 176 static const int kLastParameterOffset = +2 * kPointerSize; |
182 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 177 static const int kFunctionOffset = StandardFrameConstants::kFunctionOffset; |
183 | 178 |
184 // Caller SP-relative. | 179 // Caller SP-relative. |
185 static const int kParam0Offset = -2 * kPointerSize; | 180 static const int kParam0Offset = -2 * kPointerSize; |
186 static const int kReceiverOffset = -1 * kPointerSize; | 181 static const int kReceiverOffset = -1 * kPointerSize; |
187 }; | 182 }; |
188 | 183 |
189 | 184 |
190 } // namespace internal | 185 } // namespace internal |
191 } // namespace v8 | 186 } // namespace v8 |
192 | 187 |
193 #endif // V8_PPC_FRAMES_PPC_H_ | 188 #endif // V8_PPC_FRAMES_PPC_H_ |
OLD | NEW |