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

Side by Side Diff: src/globals.h

Issue 2028633002: Provide a tagged allocation top pointer. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: WIP: adding a few tests. 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;
307 308
308 // Desired alignment for 128 bit SIMD values. 309 // Desired alignment for 128 bit SIMD values.
309 const intptr_t kSimd128Alignment = 16; 310 const intptr_t kSimd128Alignment = 16;
310 const intptr_t kSimd128AlignmentMask = kSimd128Alignment - 1; 311 const intptr_t kSimd128AlignmentMask = kSimd128Alignment - 1;
311 312
312 // Desired alignment for generated code is 32 bytes (to improve cache line 313 // Desired alignment for generated code is 32 bytes (to improve cache line
313 // utilization). 314 // utilization).
314 const int kCodeAlignmentBits = 5; 315 const int kCodeAlignmentBits = 5;
315 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits; 316 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits;
316 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1; 317 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1;
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1090 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1090 kPointerSizeLog2); 1091 kPointerSizeLog2);
1091 } 1092 }
1092 1093
1093 } // namespace internal 1094 } // namespace internal
1094 } // namespace v8 1095 } // namespace v8
1095 1096
1096 namespace i = v8::internal; 1097 namespace i = v8::internal;
1097 1098
1098 #endif // V8_GLOBALS_H_ 1099 #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