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_ARM_FRAMES_ARM_H_ | 5 #ifndef V8_ARM_FRAMES_ARM_H_ |
6 #define V8_ARM_FRAMES_ARM_H_ | 6 #define V8_ARM_FRAMES_ARM_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // ---------------------------------------------------- | 87 // ---------------------------------------------------- |
88 | 88 |
89 | 89 |
90 class EntryFrameConstants : public AllStatic { | 90 class EntryFrameConstants : public AllStatic { |
91 public: | 91 public: |
92 static const int kCallerFPOffset = | 92 static const int kCallerFPOffset = |
93 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); | 93 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); |
94 }; | 94 }; |
95 | 95 |
96 | 96 class ExitFrameConstants : public TypedFrameConstants { |
97 class ExitFrameConstants : public AllStatic { | |
98 public: | 97 public: |
99 static const int kFrameSize = | 98 static const int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
100 FLAG_enable_embedded_constant_pool ? 3 * kPointerSize : 2 * kPointerSize; | 99 static const int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
101 | 100 DEFINE_TYPED_FRAME_SIZES(2); |
102 static const int kConstantPoolOffset = | |
103 FLAG_enable_embedded_constant_pool ? -3 * kPointerSize : 0; | |
104 static const int kCodeOffset = -2 * kPointerSize; | |
105 static const int kSPOffset = -1 * kPointerSize; | |
106 | 101 |
107 // The caller fields are below the frame pointer on the stack. | 102 // The caller fields are below the frame pointer on the stack. |
108 static const int kCallerFPOffset = 0 * kPointerSize; | 103 static const int kCallerFPOffset = 0 * kPointerSize; |
109 // The calling JS function is below FP. | 104 // The calling JS function is below FP. |
110 static const int kCallerPCOffset = 1 * kPointerSize; | 105 static const int kCallerPCOffset = 1 * kPointerSize; |
111 | 106 |
112 // FP-relative displacement of the caller's SP. It points just | 107 // FP-relative displacement of the caller's SP. It points just |
113 // below the saved PC. | 108 // below the saved PC. |
114 static const int kCallerSPDisplacement = 2 * kPointerSize; | 109 static const int kCallerSPDisplacement = 2 * kPointerSize; |
115 }; | 110 }; |
116 | 111 |
117 | 112 |
118 class JavaScriptFrameConstants : public AllStatic { | 113 class JavaScriptFrameConstants : public AllStatic { |
119 public: | 114 public: |
120 // FP-relative. | 115 // FP-relative. |
121 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 116 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
122 static const int kLastParameterOffset = +2 * kPointerSize; | 117 static const int kLastParameterOffset = +2 * kPointerSize; |
123 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 118 static const int kFunctionOffset = StandardFrameConstants::kFunctionOffset; |
124 | 119 |
125 // Caller SP-relative. | 120 // Caller SP-relative. |
126 static const int kParam0Offset = -2 * kPointerSize; | 121 static const int kParam0Offset = -2 * kPointerSize; |
127 static const int kReceiverOffset = -1 * kPointerSize; | 122 static const int kReceiverOffset = -1 * kPointerSize; |
128 }; | 123 }; |
129 | 124 |
130 | 125 |
131 } // namespace internal | 126 } // namespace internal |
132 } // namespace v8 | 127 } // namespace v8 |
133 | 128 |
134 #endif // V8_ARM_FRAMES_ARM_H_ | 129 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |