Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Side by Side Diff: src/arm64/frames-arm64.h

Issue 1220223005: Cleanup frame description constant. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_graph-builder-new-target
Patch Set: Addressed comments. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698