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

Side by Side Diff: src/v8globals.h

Issue 22849002: Rewrite SamplingCircularQueue (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use V8_ALIGNAS from include/v8config.h Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/sampler.cc ('k') | test/cctest/test-circular-queue.cc » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 const int kCodeZapValue = 0xbadc0de; 91 const int kCodeZapValue = 0xbadc0de;
92 92
93 // Number of bits to represent the page size for paged spaces. The value of 20 93 // Number of bits to represent the page size for paged spaces. The value of 20
94 // gives 1Mb bytes per page. 94 // gives 1Mb bytes per page.
95 const int kPageSizeBits = 20; 95 const int kPageSizeBits = 20;
96 96
97 // On Intel architecture, cache line size is 64 bytes. 97 // On Intel architecture, cache line size is 64 bytes.
98 // On ARM it may be less (32 bytes), but as far this constant is 98 // On ARM it may be less (32 bytes), but as far this constant is
99 // used for aligning data, it doesn't hurt to align on a greater value. 99 // used for aligning data, it doesn't hurt to align on a greater value.
100 const int kProcessorCacheLineSize = 64; 100 #define PROCESSOR_CACHE_LINE_SIZE 64
101 101
102 // Constants relevant to double precision floating point numbers. 102 // Constants relevant to double precision floating point numbers.
103 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30. 103 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30.
104 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); 104 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32);
105 105
106 106
107 // ----------------------------------------------------------------------------- 107 // -----------------------------------------------------------------------------
108 // Forward declarations for frequently used classes 108 // Forward declarations for frequently used classes
109 109
110 class AccessorInfo; 110 class AccessorInfo;
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 580
581 enum ClearExceptionFlag { 581 enum ClearExceptionFlag {
582 KEEP_EXCEPTION, 582 KEEP_EXCEPTION,
583 CLEAR_EXCEPTION 583 CLEAR_EXCEPTION
584 }; 584 };
585 585
586 586
587 } } // namespace v8::internal 587 } } // namespace v8::internal
588 588
589 #endif // V8_V8GLOBALS_H_ 589 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/sampler.cc ('k') | test/cctest/test-circular-queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698