| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 56   static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 56   static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 
| 57 | 57 | 
| 58   // There are two words on the stack (saved fp and saved lr) between fp and | 58   // There are two words on the stack (saved fp and saved lr) between fp and | 
| 59   // the arguments. | 59   // the arguments. | 
| 60   static const int kLastParameterOffset = 2 * kPointerSize; | 60   static const int kLastParameterOffset = 2 * kPointerSize; | 
| 61 | 61 | 
| 62   static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 62   static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 
| 63 }; | 63 }; | 
| 64 | 64 | 
| 65 | 65 | 
| 66 class ArgumentsAdaptorFrameConstants : public AllStatic { |  | 
| 67  public: |  | 
| 68   // FP-relative. |  | 
| 69   static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |  | 
| 70 |  | 
| 71   static const int kFrameSize = |  | 
| 72       StandardFrameConstants::kFixedFrameSize + kPointerSize; |  | 
| 73 }; |  | 
| 74 |  | 
| 75 |  | 
| 76 class ConstructFrameConstants : public AllStatic { |  | 
| 77  public: |  | 
| 78   // FP-relative. |  | 
| 79   static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |  | 
| 80   static const int kLengthOffset           = -4 * kPointerSize; |  | 
| 81   static const int kImplicitReceiverOffset = -5 * kPointerSize; |  | 
| 82 |  | 
| 83   static const int kFrameSize = |  | 
| 84       StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; |  | 
| 85 }; |  | 
| 86 |  | 
| 87 |  | 
| 88 class InternalFrameConstants : public AllStatic { |  | 
| 89  public: |  | 
| 90   // FP-relative. |  | 
| 91   static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |  | 
| 92 }; |  | 
| 93 |  | 
| 94 |  | 
| 95 inline Object* JavaScriptFrame::function_slot_object() const { | 66 inline Object* JavaScriptFrame::function_slot_object() const { | 
| 96   const int offset = JavaScriptFrameConstants::kFunctionOffset; | 67   const int offset = JavaScriptFrameConstants::kFunctionOffset; | 
| 97   return Memory::Object_at(fp() + offset); | 68   return Memory::Object_at(fp() + offset); | 
| 98 } | 69 } | 
| 99 | 70 | 
| 100 | 71 | 
| 101 } }  // namespace v8::internal | 72 } }  // namespace v8::internal | 
| 102 | 73 | 
| 103 #endif  // V8_ARM64_FRAMES_ARM64_H_ | 74 #endif  // V8_ARM64_FRAMES_ARM64_H_ | 
| OLD | NEW | 
|---|