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

Side by Side Diff: src/globals.h

Issue 1924223002: Provide tagged allocation top pointer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/code-stub-assembler.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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits; 293 const intptr_t kObjectAlignment = 1 << kObjectAlignmentBits;
294 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; 294 const intptr_t kObjectAlignmentMask = kObjectAlignment - 1;
295 295
296 // Desired alignment for pointers. 296 // Desired alignment for pointers.
297 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); 297 const intptr_t kPointerAlignment = (1 << kPointerSizeLog2);
298 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; 298 const intptr_t kPointerAlignmentMask = kPointerAlignment - 1;
299 299
300 // Desired alignment for double values. 300 // Desired alignment for double values.
301 const intptr_t kDoubleAlignment = 8; 301 const intptr_t kDoubleAlignment = 8;
302 const intptr_t kDoubleAlignmentMask = kDoubleAlignment - 1; 302 const intptr_t kDoubleAlignmentMask = kDoubleAlignment - 1;
303 const intptr_t kDoubleAlignmentMaskTagged = kDoubleAlignmentMask - 1;
303 304
304 // Desired alignment for 128 bit SIMD values. 305 // Desired alignment for 128 bit SIMD values.
305 const intptr_t kSimd128Alignment = 16; 306 const intptr_t kSimd128Alignment = 16;
306 const intptr_t kSimd128AlignmentMask = kSimd128Alignment - 1; 307 const intptr_t kSimd128AlignmentMask = kSimd128Alignment - 1;
307 308
308 // Desired alignment for generated code is 32 bytes (to improve cache line 309 // Desired alignment for generated code is 32 bytes (to improve cache line
309 // utilization). 310 // utilization).
310 const int kCodeAlignmentBits = 5; 311 const int kCodeAlignmentBits = 5;
311 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits; 312 const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits;
312 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1; 313 const intptr_t kCodeAlignmentMask = kCodeAlignment - 1;
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1070 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1070 kPointerSizeLog2); 1071 kPointerSizeLog2);
1071 } 1072 }
1072 1073
1073 } // namespace internal 1074 } // namespace internal
1074 } // namespace v8 1075 } // namespace v8
1075 1076
1076 namespace i = v8::internal; 1077 namespace i = v8::internal;
1077 1078
1078 #endif // V8_GLOBALS_H_ 1079 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698