| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 175 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 176 | 176 |
| 177 static const int kFrameSize = | 177 static const int kFrameSize = |
| 178 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 178 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 | 181 |
| 182 class ConstructFrameConstants : public AllStatic { | 182 class ConstructFrameConstants : public AllStatic { |
| 183 public: | 183 public: |
| 184 // FP-relative. | 184 // FP-relative. |
| 185 static const int kImplicitReceiverOffset = -6 * kPointerSize; | 185 static const int kImplicitReceiverOffset = -5 * kPointerSize; |
| 186 static const int kConstructorOffset = -5 * kPointerSize; | |
| 187 static const int kLengthOffset = -4 * kPointerSize; | 186 static const int kLengthOffset = -4 * kPointerSize; |
| 188 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 187 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 189 | 188 |
| 190 static const int kFrameSize = | 189 static const int kFrameSize = |
| 191 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize; | 190 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; |
| 192 }; | 191 }; |
| 193 | 192 |
| 194 | 193 |
| 195 class InternalFrameConstants : public AllStatic { | 194 class InternalFrameConstants : public AllStatic { |
| 196 public: | 195 public: |
| 197 // FP-relative. | 196 // FP-relative. |
| 198 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 197 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 199 }; | 198 }; |
| 200 | 199 |
| 201 | 200 |
| 202 inline Object* JavaScriptFrame::function_slot_object() const { | 201 inline Object* JavaScriptFrame::function_slot_object() const { |
| 203 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 202 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 204 return Memory::Object_at(fp() + offset); | 203 return Memory::Object_at(fp() + offset); |
| 205 } | 204 } |
| 206 | 205 |
| 207 | 206 |
| 208 } } // namespace v8::internal | 207 } } // namespace v8::internal |
| 209 | 208 |
| 210 #endif | 209 #endif |
| OLD | NEW |