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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 class EntryFrameConstants : public AllStatic { | 78 class EntryFrameConstants : public AllStatic { |
79 public: | 79 public: |
80 static const int kCallerFPOffset = | 80 static const int kCallerFPOffset = |
81 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); | 81 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); |
82 }; | 82 }; |
83 | 83 |
84 | 84 |
85 class ExitFrameConstants : public AllStatic { | 85 class ExitFrameConstants : public AllStatic { |
86 public: | 86 public: |
87 static const int kFrameSize = | 87 static const int kFrameSize = FLAG_enable_ool_constant_pool ? |
88 FLAG_enable_embedded_constant_pool ? 3 * kPointerSize : 2 * kPointerSize; | 88 3 * kPointerSize : 2 * kPointerSize; |
89 | 89 |
90 static const int kConstantPoolOffset = | 90 static const int kConstantPoolOffset = FLAG_enable_ool_constant_pool ? |
91 FLAG_enable_embedded_constant_pool ? -3 * kPointerSize : 0; | 91 -3 * kPointerSize : 0; |
92 static const int kCodeOffset = -2 * kPointerSize; | 92 static const int kCodeOffset = -2 * kPointerSize; |
93 static const int kSPOffset = -1 * kPointerSize; | 93 static const int kSPOffset = -1 * kPointerSize; |
94 | 94 |
95 // The caller fields are below the frame pointer on the stack. | 95 // The caller fields are below the frame pointer on the stack. |
96 static const int kCallerFPOffset = 0 * kPointerSize; | 96 static const int kCallerFPOffset = 0 * kPointerSize; |
97 // The calling JS function is below FP. | 97 // The calling JS function is below FP. |
98 static const int kCallerPCOffset = 1 * kPointerSize; | 98 static const int kCallerPCOffset = 1 * kPointerSize; |
99 | 99 |
100 // FP-relative displacement of the caller's SP. It points just | 100 // FP-relative displacement of the caller's SP. It points just |
101 // below the saved PC. | 101 // below the saved PC. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 inline Object* JavaScriptFrame::function_slot_object() const { | 149 inline Object* JavaScriptFrame::function_slot_object() const { |
150 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 150 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
151 return Memory::Object_at(fp() + offset); | 151 return Memory::Object_at(fp() + offset); |
152 } | 152 } |
153 | 153 |
154 | 154 |
155 } } // namespace v8::internal | 155 } } // namespace v8::internal |
156 | 156 |
157 #endif // V8_ARM_FRAMES_ARM_H_ | 157 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |