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

Side by Side Diff: src/mips64/frames-mips64.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/mips64/builtins-mips64.cc ('k') | src/ppc/builtins-ppc.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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 175 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
176 176
177 static const int kFrameSize = 177 static const int kFrameSize =
178 StandardFrameConstants::kFixedFrameSize + kPointerSize; 178 StandardFrameConstants::kFixedFrameSize + kPointerSize;
179 }; 179 };
180 180
181 181
182 class ConstructFrameConstants : public AllStatic { 182 class ConstructFrameConstants : public AllStatic {
183 public: 183 public:
184 // FP-relative. 184 // FP-relative.
185 static const int kImplicitReceiverOffset = -6 * kPointerSize; 185 static const int kImplicitReceiverOffset = -5 * kPointerSize;
186 static const int kConstructorOffset = -5 * kPointerSize;
187 static const int kLengthOffset = -4 * kPointerSize; 186 static const int kLengthOffset = -4 * kPointerSize;
188 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; 187 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
189 188
190 static const int kFrameSize = 189 static const int kFrameSize =
191 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize; 190 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
192 }; 191 };
193 192
194 193
195 class InternalFrameConstants : public AllStatic { 194 class InternalFrameConstants : public AllStatic {
196 public: 195 public:
197 // FP-relative. 196 // FP-relative.
198 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; 197 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
199 }; 198 };
200 199
201 200
202 inline Object* JavaScriptFrame::function_slot_object() const { 201 inline Object* JavaScriptFrame::function_slot_object() const {
203 const int offset = JavaScriptFrameConstants::kFunctionOffset; 202 const int offset = JavaScriptFrameConstants::kFunctionOffset;
204 return Memory::Object_at(fp() + offset); 203 return Memory::Object_at(fp() + offset);
205 } 204 }
206 205
207 206
208 } } // namespace v8::internal 207 } } // namespace v8::internal
209 208
210 #endif 209 #endif
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698