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

Side by Side Diff: src/globals.h

Issue 2035413003: Revert of Provide a tagged allocation top pointer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/heap/spaces.h » ('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 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; 297 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits;
298 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; 298 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1;
299 299
300 // Desired alignment for pointers. 300 // Desired alignment for pointers.
301 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); 301 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2);
302 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; 302 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1;
303 303
304 // Desired alignment for double values. 304 // Desired alignment for double values.
305 const intptr_t kDoubleAlignment = 8; 305 const intptr_t kDoubleAlignment = 8;
306 const intptr_t kDoubleAlignmentMask = kDoubleAlignment - 1; 306 const intptr_t kDoubleAlignmentMask = kDoubleAlignment - 1;
307 const intptr_t kDoubleAlignmentMaskTagged = kDoubleAlignmentMask - 1;
308 307
309 // Desired alignment for 128 bit SIMD values. 308 // Desired alignment for 128 bit SIMD values.
310 const intptr_t kSimd128Alignment = 16; 309 const intptr_t kSimd128Alignment = 16;
311 const intptr_t kSimd128AlignmentMask = kSimd128Alignment - 1; 310 const intptr_t kSimd128AlignmentMask = kSimd128Alignment - 1;
312 311
313 // Desired alignment for generated code is 32 bytes (to improve cache line 312 // Desired alignment for generated code is 32 bytes (to improve cache line
314 // utilization). 313 // utilization).
315 const int kCodeAlignmentBits = 5; 314 const int kCodeAlignmentBits = 5;
316 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits; 315 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits;
317 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1; 316 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1;
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1086 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1088 kPointerSizeLog2); 1087 kPointerSizeLog2);
1089 } 1088 }
1090 1089
1091 } // namespace internal 1090 } // namespace internal
1092 } // namespace v8 1091 } // namespace v8
1093 1092
1094 namespace i = v8::internal; 1093 namespace i = v8::internal;
1095 1094
1096 #endif // V8_GLOBALS_H_ 1095 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698