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

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: Update 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
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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1072 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1072 kPointerSizeLog2); 1073 kPointerSizeLog2);
1073 } 1074 }
1074 1075
1075 } // namespace internal 1076 } // namespace internal
1076 } // namespace v8 1077 } // namespace v8
1077 1078
1078 namespace i = v8::internal; 1079 namespace i = v8::internal;
1079 1080
1080 #endif // V8_GLOBALS_H_ 1081 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/heap/spaces.h » ('j') | src/heap/spaces.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698