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_IA32_FRAMES_IA32_H_ | 5 #ifndef V8_IA32_FRAMES_IA32_H_ |
6 #define V8_IA32_FRAMES_IA32_H_ | 6 #define V8_IA32_FRAMES_IA32_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // below the saved PC. | 60 // below the saved PC. |
61 static const int kCallerSPDisplacement = +2 * kPointerSize; | 61 static const int kCallerSPDisplacement = +2 * kPointerSize; |
62 | 62 |
63 static const int kConstantPoolOffset = 0; // Not used | 63 static const int kConstantPoolOffset = 0; // Not used |
64 }; | 64 }; |
65 | 65 |
66 | 66 |
67 class JavaScriptFrameConstants : public AllStatic { | 67 class JavaScriptFrameConstants : public AllStatic { |
68 public: | 68 public: |
69 // FP-relative. | 69 // FP-relative. |
70 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | |
71 static const int kLastParameterOffset = +2 * kPointerSize; | 70 static const int kLastParameterOffset = +2 * kPointerSize; |
72 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 71 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 72 static const int kFeedbackVectorOffset = |
| 73 StandardFrameConstants::kExpressionsOffset; |
| 74 static const int kLocal0Offset = -1 * kPointerSize + kFeedbackVectorOffset; |
| 75 static const int kLocal0OffsetOptimized = kFeedbackVectorOffset; |
| 76 |
| 77 static const int kDynamicAlignmentStateOffset = kFeedbackVectorOffset; |
| 78 |
| 79 static const int kUnoptimizedFixedFrameSizeFromFp = |
| 80 StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize; |
73 | 81 |
74 // Caller SP-relative. | 82 // Caller SP-relative. |
75 static const int kParam0Offset = -2 * kPointerSize; | 83 static const int kParam0Offset = -2 * kPointerSize; |
76 static const int kReceiverOffset = -1 * kPointerSize; | 84 static const int kReceiverOffset = -1 * kPointerSize; |
77 | 85 |
78 static const int kDynamicAlignmentStateOffset = kLocal0Offset; | 86 static const int kUnoptimizedFixedFrameSize = |
| 87 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
79 }; | 88 }; |
80 | 89 |
81 | 90 |
82 class ArgumentsAdaptorFrameConstants : public AllStatic { | 91 class ArgumentsAdaptorFrameConstants : public AllStatic { |
83 public: | 92 public: |
84 // FP-relative. | 93 // FP-relative. |
85 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 94 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
86 | 95 |
87 static const int kFrameSize = | 96 static const int kFrameSize = |
88 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 97 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
(...skipping 22 matching lines...) Expand all Loading... |
111 | 120 |
112 inline Object* JavaScriptFrame::function_slot_object() const { | 121 inline Object* JavaScriptFrame::function_slot_object() const { |
113 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 122 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
114 return Memory::Object_at(fp() + offset); | 123 return Memory::Object_at(fp() + offset); |
115 } | 124 } |
116 | 125 |
117 | 126 |
118 } } // namespace v8::internal | 127 } } // namespace v8::internal |
119 | 128 |
120 #endif // V8_IA32_FRAMES_IA32_H_ | 129 #endif // V8_IA32_FRAMES_IA32_H_ |
OLD | NEW |