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