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

Side by Side Diff: src/mips64/frames-mips64.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/mips/full-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 5
6 6
7 #ifndef V8_MIPS_FRAMES_MIPS_H_ 7 #ifndef V8_MIPS_FRAMES_MIPS_H_
8 #define V8_MIPS_FRAMES_MIPS_H_ 8 #define V8_MIPS_FRAMES_MIPS_H_
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; 162 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
163 static const int kLastParameterOffset = +2 * kPointerSize; 163 static const int kLastParameterOffset = +2 * kPointerSize;
164 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 164 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
165 165
166 // Caller SP-relative. 166 // Caller SP-relative.
167 static const int kParam0Offset = -2 * kPointerSize; 167 static const int kParam0Offset = -2 * kPointerSize;
168 static const int kReceiverOffset = -1 * kPointerSize; 168 static const int kReceiverOffset = -1 * kPointerSize;
169 }; 169 };
170 170
171 171
172 class ArgumentsAdaptorFrameConstants : public AllStatic {
173 public:
174 // FP-relative.
175 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
176
177 static const int kFrameSize =
178 StandardFrameConstants::kFixedFrameSize + kPointerSize;
179 };
180
181
182 class ConstructFrameConstants : public AllStatic {
183 public:
184 // FP-relative.
185 static const int kImplicitReceiverOffset = -5 * kPointerSize;
186 static const int kLengthOffset = -4 * kPointerSize;
187 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
188
189 static const int kFrameSize =
190 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
191 };
192
193
194 class InternalFrameConstants : public AllStatic {
195 public:
196 // FP-relative.
197 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
198 };
199
200
201 inline Object* JavaScriptFrame::function_slot_object() const { 172 inline Object* JavaScriptFrame::function_slot_object() const {
202 const int offset = JavaScriptFrameConstants::kFunctionOffset; 173 const int offset = JavaScriptFrameConstants::kFunctionOffset;
203 return Memory::Object_at(fp() + offset); 174 return Memory::Object_at(fp() + offset);
204 } 175 }
205 176
206 177
207 } } // namespace v8::internal 178 } } // namespace v8::internal
208 179
209 #endif 180 #endif
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698