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

Side by Side Diff: src/globals.h

Issue 2384553003: PPC: [heap] Switch to 500k pages (Closed)
Patch Set: reverted kMinimumCodeRangeSize initial value which was based of 4MB ppc page size Created 4 years, 2 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/base/build_config.h ('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 // 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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 #elif V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX 180 #elif V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX
181 const size_t kMaximalCodeRangeSize = 512 * MB; 181 const size_t kMaximalCodeRangeSize = 512 * MB;
182 const size_t kCodeRangeAreaAlignment = 64 * KB; // OS page on PPC Linux 182 const size_t kCodeRangeAreaAlignment = 64 * KB; // OS page on PPC Linux
183 #else 183 #else
184 const size_t kMaximalCodeRangeSize = 512 * MB; 184 const size_t kMaximalCodeRangeSize = 512 * MB;
185 const size_t kCodeRangeAreaAlignment = 4 * KB; // OS page. 185 const size_t kCodeRangeAreaAlignment = 4 * KB; // OS page.
186 #endif 186 #endif
187 #if V8_OS_WIN 187 #if V8_OS_WIN
188 const size_t kMinimumCodeRangeSize = 4 * MB; 188 const size_t kMinimumCodeRangeSize = 4 * MB;
189 const size_t kReservedCodeRangePages = 1; 189 const size_t kReservedCodeRangePages = 1;
190 // On PPC Linux PageSize is 4MB
191 #elif V8_HOST_ARCH_PPC && V8_TARGET_ARCH_PPC && V8_OS_LINUX
192 const size_t kMinimumCodeRangeSize = 12 * MB;
193 const size_t kReservedCodeRangePages = 0;
194 #else 190 #else
195 const size_t kMinimumCodeRangeSize = 3 * MB; 191 const size_t kMinimumCodeRangeSize = 3 * MB;
196 const size_t kReservedCodeRangePages = 0; 192 const size_t kReservedCodeRangePages = 0;
197 #endif 193 #endif
198 #else 194 #else
199 const int kPointerSizeLog2 = 2; 195 const int kPointerSizeLog2 = 2;
200 const intptr_t kIntptrSignBit = 0x80000000; 196 const intptr_t kIntptrSignBit = 0x80000000;
201 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; 197 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu;
202 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT 198 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT
203 // x32 port also requires code range. 199 // x32 port also requires code range.
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL, 1233 LIVE_EDIT_FRAME_DROPPED_IN_RETURN_CALL,
1238 LIVE_EDIT_CURRENTLY_SET_MODE 1234 LIVE_EDIT_CURRENTLY_SET_MODE
1239 }; 1235 };
1240 1236
1241 } // namespace internal 1237 } // namespace internal
1242 } // namespace v8 1238 } // namespace v8
1243 1239
1244 namespace i = v8::internal; 1240 namespace i = v8::internal;
1245 1241
1246 #endif // V8_GLOBALS_H_ 1242 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/base/build_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698