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

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

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug-mode Arm issue. 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 = 2 * kPointerSize; 119 static const int kFrameSize =
120 static const int kConstantPoolOffset = 0; // Not used. 120 FLAG_enable_embedded_constant_pool ? 3 * kPointerSize : 2 * kPointerSize;
121
122 static const int kConstantPoolOffset =
123 FLAG_enable_embedded_constant_pool ? -3 * kPointerSize : 0;
121 static const int kCodeOffset = -2 * kPointerSize; 124 static const int kCodeOffset = -2 * kPointerSize;
122 static const int kSPOffset = -1 * kPointerSize; 125 static const int kSPOffset = -1 * kPointerSize;
123 126
124 // The caller fields are below the frame pointer on the stack. 127 // The caller fields are below the frame pointer on the stack.
125 static const int kCallerFPOffset = 0 * kPointerSize; 128 static const int kCallerFPOffset = 0 * kPointerSize;
126 // The calling JS function is below FP. 129 // The calling JS function is below FP.
127 static const int kCallerPCOffset = 1 * kPointerSize; 130 static const int kCallerPCOffset = 1 * kPointerSize;
128 131
129 // FP-relative displacement of the caller's SP. It points just 132 // FP-relative displacement of the caller's SP. It points just
130 // below the saved PC. 133 // below the saved PC.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 inline Object* JavaScriptFrame::function_slot_object() const { 181 inline Object* JavaScriptFrame::function_slot_object() const {
179 const int offset = JavaScriptFrameConstants::kFunctionOffset; 182 const int offset = JavaScriptFrameConstants::kFunctionOffset;
180 return Memory::Object_at(fp() + offset); 183 return Memory::Object_at(fp() + offset);
181 } 184 }
182 185
183 186
184 } 187 }
185 } // namespace v8::internal 188 } // namespace v8::internal
186 189
187 #endif // V8_PPC_FRAMES_PPC_H_ 190 #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