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

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

Issue 12379042: Unify deoptimizer for construct stub frames. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/x64/deoptimizer-x64.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 201 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
202 202
203 // Caller SP-relative. 203 // Caller SP-relative.
204 static const int kParam0Offset = -2 * kPointerSize; 204 static const int kParam0Offset = -2 * kPointerSize;
205 static const int kReceiverOffset = -1 * kPointerSize; 205 static const int kReceiverOffset = -1 * kPointerSize;
206 }; 206 };
207 207
208 208
209 class ArgumentsAdaptorFrameConstants : public AllStatic { 209 class ArgumentsAdaptorFrameConstants : public AllStatic {
210 public: 210 public:
211 // FP-relative.
211 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 212 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
213
212 static const int kFrameSize = 214 static const int kFrameSize =
213 StandardFrameConstants::kFixedFrameSize + kPointerSize; 215 StandardFrameConstants::kFixedFrameSize + kPointerSize;
214 }; 216 };
215 217
216 218
219 class ConstructFrameConstants : public AllStatic {
220 public:
221 // FP-relative.
222 static const int kImplicitReceiverOffset = -6 * kPointerSize;
223 static const int kConstructorOffset = -5 * kPointerSize;
224 static const int kLengthOffset = -4 * kPointerSize;
225 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
226
227 static const int kFrameSize =
228 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize;
229 };
230
231
217 class InternalFrameConstants : public AllStatic { 232 class InternalFrameConstants : public AllStatic {
218 public: 233 public:
234 // FP-relative.
219 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; 235 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
220 }; 236 };
221 237
222 238
223 inline Object* JavaScriptFrame::function_slot_object() const { 239 inline Object* JavaScriptFrame::function_slot_object() const {
224 const int offset = JavaScriptFrameConstants::kFunctionOffset; 240 const int offset = JavaScriptFrameConstants::kFunctionOffset;
225 return Memory::Object_at(fp() + offset); 241 return Memory::Object_at(fp() + offset);
226 } 242 }
227 243
228 244
229 } } // namespace v8::internal 245 } } // namespace v8::internal
230 246
231 #endif 247 #endif
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698