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

Side by Side Diff: src/x64/frames-x64.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/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 93 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
94 94
95 // Caller SP-relative. 95 // Caller SP-relative.
96 static const int kParam0Offset = -2 * kPointerSize; 96 static const int kParam0Offset = -2 * kPointerSize;
97 static const int kReceiverOffset = -1 * kPointerSize; 97 static const int kReceiverOffset = -1 * kPointerSize;
98 }; 98 };
99 99
100 100
101 class ArgumentsAdaptorFrameConstants : public AllStatic { 101 class ArgumentsAdaptorFrameConstants : public AllStatic {
102 public: 102 public:
103 // FP-relative.
103 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 104 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
105
104 static const int kFrameSize = 106 static const int kFrameSize =
105 StandardFrameConstants::kFixedFrameSize + kPointerSize; 107 StandardFrameConstants::kFixedFrameSize + kPointerSize;
106 }; 108 };
107 109
108 110
111 class ConstructFrameConstants : public AllStatic {
112 public:
113 // FP-relative.
114 static const int kImplicitReceiverOffset = -5 * kPointerSize;
115 static const int kConstructorOffset = kMinInt;
116 static const int kLengthOffset = -4 * kPointerSize;
117 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
118
119 static const int kFrameSize =
120 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
121 };
122
123
109 class InternalFrameConstants : public AllStatic { 124 class InternalFrameConstants : public AllStatic {
110 public: 125 public:
126 // FP-relative.
111 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; 127 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
112 }; 128 };
113 129
114 130
115 inline Object* JavaScriptFrame::function_slot_object() const { 131 inline Object* JavaScriptFrame::function_slot_object() const {
116 const int offset = JavaScriptFrameConstants::kFunctionOffset; 132 const int offset = JavaScriptFrameConstants::kFunctionOffset;
117 return Memory::Object_at(fp() + offset); 133 return Memory::Object_at(fp() + offset);
118 } 134 }
119 135
120 } } // namespace v8::internal 136 } } // namespace v8::internal
121 137
122 #endif // V8_X64_FRAMES_X64_H_ 138 #endif // V8_X64_FRAMES_X64_H_
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698