| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 | 5 |
| 6 | 6 |
| 7 #ifndef V8_MIPS_FRAMES_MIPS_H_ | 7 #ifndef V8_MIPS_FRAMES_MIPS_H_ |
| 8 #define V8_MIPS_FRAMES_MIPS_H_ | 8 #define V8_MIPS_FRAMES_MIPS_H_ |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 162 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 163 static const int kLastParameterOffset = +2 * kPointerSize; | 163 static const int kLastParameterOffset = +2 * kPointerSize; |
| 164 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 164 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 165 | 165 |
| 166 // Caller SP-relative. | 166 // Caller SP-relative. |
| 167 static const int kParam0Offset = -2 * kPointerSize; | 167 static const int kParam0Offset = -2 * kPointerSize; |
| 168 static const int kReceiverOffset = -1 * kPointerSize; | 168 static const int kReceiverOffset = -1 * kPointerSize; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 | 171 |
| 172 class ArgumentsAdaptorFrameConstants : public AllStatic { | |
| 173 public: | |
| 174 // FP-relative. | |
| 175 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | |
| 176 | |
| 177 static const int kFrameSize = | |
| 178 StandardFrameConstants::kFixedFrameSize + kPointerSize; | |
| 179 }; | |
| 180 | |
| 181 | |
| 182 class ConstructFrameConstants : public AllStatic { | |
| 183 public: | |
| 184 // FP-relative. | |
| 185 static const int kImplicitReceiverOffset = -5 * kPointerSize; | |
| 186 static const int kLengthOffset = -4 * kPointerSize; | |
| 187 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | |
| 188 | |
| 189 static const int kFrameSize = | |
| 190 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; | |
| 191 }; | |
| 192 | |
| 193 | |
| 194 class InternalFrameConstants : public AllStatic { | |
| 195 public: | |
| 196 // FP-relative. | |
| 197 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | |
| 198 }; | |
| 199 | |
| 200 | |
| 201 inline Object* JavaScriptFrame::function_slot_object() const { | 172 inline Object* JavaScriptFrame::function_slot_object() const { |
| 202 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 173 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 203 return Memory::Object_at(fp() + offset); | 174 return Memory::Object_at(fp() + offset); |
| 204 } | 175 } |
| 205 | 176 |
| 206 | 177 |
| 207 } } // namespace v8::internal | 178 } } // namespace v8::internal |
| 208 | 179 |
| 209 #endif | 180 #endif |
| OLD | NEW |