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

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

Issue 1203103003: Unify the stack layout for construct frames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix deopt case and clean up constants 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/arm64/builtins-arm64.cc ('k') | src/deoptimizer.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698