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_X64_FRAMES_X64_H_ | 5 #ifndef V8_X64_FRAMES_X64_H_ |
6 #define V8_X64_FRAMES_X64_H_ | 6 #define V8_X64_FRAMES_X64_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // below the saved PC. | 54 // below the saved PC. |
55 static const int kCallerSPDisplacement = kCallerPCOffset + kPCOnStackSize; | 55 static const int kCallerSPDisplacement = kCallerPCOffset + kPCOnStackSize; |
56 | 56 |
57 static const int kConstantPoolOffset = 0; // Not used | 57 static const int kConstantPoolOffset = 0; // Not used |
58 }; | 58 }; |
59 | 59 |
60 | 60 |
61 class JavaScriptFrameConstants : public AllStatic { | 61 class JavaScriptFrameConstants : public AllStatic { |
62 public: | 62 public: |
63 // FP-relative. | 63 // FP-relative. |
64 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | |
65 static const int kLastParameterOffset = kFPOnStackSize + kPCOnStackSize; | 64 static const int kLastParameterOffset = kFPOnStackSize + kPCOnStackSize; |
66 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 65 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 66 static const int kFeedbackVectorOffset = |
| 67 StandardFrameConstants::kExpressionsOffset; |
| 68 static const int kLocal0Offset = -1 * kPointerSize + kFeedbackVectorOffset; |
| 69 static const int kLocal0OffsetOptimized = kFeedbackVectorOffset; |
| 70 |
| 71 static const int kUnoptimizedFixedFrameSizeFromFp = |
| 72 StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize; |
67 | 73 |
68 // Caller SP-relative. | 74 // Caller SP-relative. |
69 static const int kParam0Offset = -2 * kPointerSize; | 75 static const int kParam0Offset = -2 * kPointerSize; |
70 static const int kReceiverOffset = -1 * kPointerSize; | 76 static const int kReceiverOffset = -1 * kPointerSize; |
| 77 |
| 78 static const int kUnoptimizedFixedFrameSize = |
| 79 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
71 }; | 80 }; |
72 | 81 |
73 | 82 |
74 class ArgumentsAdaptorFrameConstants : public AllStatic { | 83 class ArgumentsAdaptorFrameConstants : public AllStatic { |
75 public: | 84 public: |
76 // FP-relative. | 85 // FP-relative. |
77 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 86 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
78 | 87 |
79 static const int kFrameSize = | 88 static const int kFrameSize = |
80 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 89 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
(...skipping 22 matching lines...) Expand all Loading... |
103 | 112 |
104 inline Object* JavaScriptFrame::function_slot_object() const { | 113 inline Object* JavaScriptFrame::function_slot_object() const { |
105 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 114 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
106 return Memory::Object_at(fp() + offset); | 115 return Memory::Object_at(fp() + offset); |
107 } | 116 } |
108 | 117 |
109 | 118 |
110 } } // namespace v8::internal | 119 } } // namespace v8::internal |
111 | 120 |
112 #endif // V8_X64_FRAMES_X64_H_ | 121 #endif // V8_X64_FRAMES_X64_H_ |
OLD | NEW |