OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Caller SP-relative. | 107 // Caller SP-relative. |
108 static const int kParam0Offset = -2 * kPointerSize; | 108 static const int kParam0Offset = -2 * kPointerSize; |
109 static const int kReceiverOffset = -1 * kPointerSize; | 109 static const int kReceiverOffset = -1 * kPointerSize; |
110 | 110 |
111 static const int kDynamicAlignmentStateOffset = kLocal0Offset; | 111 static const int kDynamicAlignmentStateOffset = kLocal0Offset; |
112 }; | 112 }; |
113 | 113 |
114 | 114 |
115 class ArgumentsAdaptorFrameConstants : public AllStatic { | 115 class ArgumentsAdaptorFrameConstants : public AllStatic { |
116 public: | 116 public: |
| 117 // FP-relative. |
117 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 118 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 119 |
118 static const int kFrameSize = | 120 static const int kFrameSize = |
119 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 121 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
120 }; | 122 }; |
121 | 123 |
122 | 124 |
| 125 class ConstructFrameConstants : public AllStatic { |
| 126 public: |
| 127 // FP-relative. |
| 128 static const int kImplicitReceiverOffset = -5 * kPointerSize; |
| 129 static const int kConstructorOffset = kMinInt; |
| 130 static const int kLengthOffset = -4 * kPointerSize; |
| 131 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 132 |
| 133 static const int kFrameSize = |
| 134 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; |
| 135 }; |
| 136 |
| 137 |
123 class InternalFrameConstants : public AllStatic { | 138 class InternalFrameConstants : public AllStatic { |
124 public: | 139 public: |
| 140 // FP-relative. |
125 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 141 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
126 }; | 142 }; |
127 | 143 |
128 | 144 |
129 inline Object* JavaScriptFrame::function_slot_object() const { | 145 inline Object* JavaScriptFrame::function_slot_object() const { |
130 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 146 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
131 return Memory::Object_at(fp() + offset); | 147 return Memory::Object_at(fp() + offset); |
132 } | 148 } |
133 | 149 |
134 | 150 |
135 } } // namespace v8::internal | 151 } } // namespace v8::internal |
136 | 152 |
137 #endif // V8_IA32_FRAMES_IA32_H_ | 153 #endif // V8_IA32_FRAMES_IA32_H_ |
OLD | NEW |