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

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

Issue 1155703006: Revert of Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/ppc/deoptimizer-ppc.cc ('k') | src/ppc/frames-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_PPC_FRAMES_PPC_H_ 5 #ifndef V8_PPC_FRAMES_PPC_H_
6 #define V8_PPC_FRAMES_PPC_H_ 6 #define V8_PPC_FRAMES_PPC_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 class EntryFrameConstants : public AllStatic { 110 class EntryFrameConstants : public AllStatic {
111 public: 111 public:
112 static const int kCallerFPOffset = 112 static const int kCallerFPOffset =
113 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); 113 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize);
114 }; 114 };
115 115
116 116
117 class ExitFrameConstants : public AllStatic { 117 class ExitFrameConstants : public AllStatic {
118 public: 118 public:
119 static const int kFrameSize = 119 static const int kFrameSize = 2 * kPointerSize;
120 FLAG_enable_embedded_constant_pool ? 3 * kPointerSize : 2 * kPointerSize; 120 static const int kConstantPoolOffset = 0; // Not used.
121
122 static const int kConstantPoolOffset =
123 FLAG_enable_embedded_constant_pool ? -3 * kPointerSize : 0;
124 static const int kCodeOffset = -2 * kPointerSize; 121 static const int kCodeOffset = -2 * kPointerSize;
125 static const int kSPOffset = -1 * kPointerSize; 122 static const int kSPOffset = -1 * kPointerSize;
126 123
127 // The caller fields are below the frame pointer on the stack. 124 // The caller fields are below the frame pointer on the stack.
128 static const int kCallerFPOffset = 0 * kPointerSize; 125 static const int kCallerFPOffset = 0 * kPointerSize;
129 // The calling JS function is below FP. 126 // The calling JS function is below FP.
130 static const int kCallerPCOffset = 1 * kPointerSize; 127 static const int kCallerPCOffset = 1 * kPointerSize;
131 128
132 // FP-relative displacement of the caller's SP. It points just 129 // FP-relative displacement of the caller's SP. It points just
133 // below the saved PC. 130 // below the saved PC.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 inline Object* JavaScriptFrame::function_slot_object() const { 178 inline Object* JavaScriptFrame::function_slot_object() const {
182 const int offset = JavaScriptFrameConstants::kFunctionOffset; 179 const int offset = JavaScriptFrameConstants::kFunctionOffset;
183 return Memory::Object_at(fp() + offset); 180 return Memory::Object_at(fp() + offset);
184 } 181 }
185 182
186 183
187 } 184 }
188 } // namespace v8::internal 185 } // namespace v8::internal
189 186
190 #endif // V8_PPC_FRAMES_PPC_H_ 187 #endif // V8_PPC_FRAMES_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/deoptimizer-ppc.cc ('k') | src/ppc/frames-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698