| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static const int kCodeOffset = -2 * kPointerSize; | 46 static const int kCodeOffset = -2 * kPointerSize; |
| 47 static const int kLastExitFrameField = kCodeOffset; | 47 static const int kLastExitFrameField = kCodeOffset; |
| 48 | 48 |
| 49 static const int kConstantPoolOffset = 0; // Not used | 49 static const int kConstantPoolOffset = 0; // Not used |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 | 52 |
| 53 class JavaScriptFrameConstants : public AllStatic { | 53 class JavaScriptFrameConstants : public AllStatic { |
| 54 public: | 54 public: |
| 55 // FP-relative. | 55 // FP-relative. |
| 56 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 56 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 57 static const int kFeedbackVectorOffset = |
| 58 StandardFrameConstants::kExpressionsOffset; |
| 59 static const int kLocal0Offset = -1 * kPointerSize + kFeedbackVectorOffset; |
| 60 static const int kLocal0OffsetOptimized = kFeedbackVectorOffset; |
| 61 |
| 62 static const int kUnoptimizedFixedFrameSizeFromFp = |
| 63 StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize; |
| 57 | 64 |
| 58 // There are two words on the stack (saved fp and saved lr) between fp and | 65 // There are two words on the stack (saved fp and saved lr) between fp and |
| 59 // the arguments. | 66 // the arguments. |
| 60 static const int kLastParameterOffset = 2 * kPointerSize; | 67 static const int kLastParameterOffset = 2 * kPointerSize; |
| 61 | 68 |
| 62 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 69 static const int kUnoptimizedFixedFrameSize = |
| 70 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
| 63 }; | 71 }; |
| 64 | 72 |
| 65 | 73 |
| 66 class ArgumentsAdaptorFrameConstants : public AllStatic { | 74 class ArgumentsAdaptorFrameConstants : public AllStatic { |
| 67 public: | 75 public: |
| 68 // FP-relative. | 76 // FP-relative. |
| 69 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 77 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 70 | 78 |
| 71 static const int kFrameSize = | 79 static const int kFrameSize = |
| 72 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 80 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 95 | 103 |
| 96 inline Object* JavaScriptFrame::function_slot_object() const { | 104 inline Object* JavaScriptFrame::function_slot_object() const { |
| 97 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 105 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 98 return Memory::Object_at(fp() + offset); | 106 return Memory::Object_at(fp() + offset); |
| 99 } | 107 } |
| 100 | 108 |
| 101 | 109 |
| 102 } } // namespace v8::internal | 110 } } // namespace v8::internal |
| 103 | 111 |
| 104 #endif // V8_ARM64_FRAMES_ARM64_H_ | 112 #endif // V8_ARM64_FRAMES_ARM64_H_ |
| OLD | NEW |