| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/arm64/assembler-arm64.h" | 5 #include "src/arm64/assembler-arm64.h" |
| 6 #include "src/arm64/constants-arm64.h" | 6 #include "src/arm64/constants-arm64.h" |
| 7 | 7 |
| 8 #ifndef V8_ARM64_FRAMES_ARM64_H_ | 8 #ifndef V8_ARM64_FRAMES_ARM64_H_ |
| 9 #define V8_ARM64_FRAMES_ARM64_H_ | 9 #define V8_ARM64_FRAMES_ARM64_H_ |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 static const int kFrameSize = | 71 static const int kFrameSize = |
| 72 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 72 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 | 75 |
| 76 class ConstructFrameConstants : public AllStatic { | 76 class ConstructFrameConstants : public AllStatic { |
| 77 public: | 77 public: |
| 78 // FP-relative. | 78 // FP-relative. |
| 79 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 79 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 80 static const int kLengthOffset = -4 * kPointerSize; | 80 static const int kLengthOffset = -4 * kPointerSize; |
| 81 static const int kConstructorOffset = -5 * kPointerSize; | 81 static const int kImplicitReceiverOffset = -5 * kPointerSize; |
| 82 static const int kImplicitReceiverOffset = -6 * kPointerSize; | |
| 83 | 82 |
| 84 static const int kFrameSize = | 83 static const int kFrameSize = |
| 85 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize; | 84 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 | 87 |
| 89 class InternalFrameConstants : public AllStatic { | 88 class InternalFrameConstants : public AllStatic { |
| 90 public: | 89 public: |
| 91 // FP-relative. | 90 // FP-relative. |
| 92 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 91 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 | 94 |
| 96 inline Object* JavaScriptFrame::function_slot_object() const { | 95 inline Object* JavaScriptFrame::function_slot_object() const { |
| 97 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 96 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 98 return Memory::Object_at(fp() + offset); | 97 return Memory::Object_at(fp() + offset); |
| 99 } | 98 } |
| 100 | 99 |
| 101 | 100 |
| 102 } } // namespace v8::internal | 101 } } // namespace v8::internal |
| 103 | 102 |
| 104 #endif // V8_ARM64_FRAMES_ARM64_H_ | 103 #endif // V8_ARM64_FRAMES_ARM64_H_ |
| OLD | NEW |