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

Side by Side Diff: src/v8globals.h

Issue 5987005: Refactor MemoryAllocator to allow big normal pages (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: remove rogue printf Created 10 years 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/utils.h ('k') | test/cctest/test-alloc.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const uint64_t kDebugZapValue = 0xbadbaddbbadbaddb; 80 const uint64_t kDebugZapValue = 0xbadbaddbbadbaddb;
81 #else 81 #else
82 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); 82 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed);
83 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); 83 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead);
84 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); 84 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad);
85 const uint32_t kSlotsZapValue = 0xbeefdeed; 85 const uint32_t kSlotsZapValue = 0xbeefdeed;
86 const uint32_t kDebugZapValue = 0xbadbaddb; 86 const uint32_t kDebugZapValue = 0xbadbaddb;
87 #endif 87 #endif
88 88
89 89
90 // Number of bits to represent the page size for paged spaces. The value of 13 90 // Number of bits to represent the page size for paged spaces. The value of 20
91 // gives 8K bytes per page. 91 // gives 1Mb bytes per page.
92 const int kPageSizeBits = 13; 92 const int kPageSizeBits = 20;
93 93
94 // On Intel architecture, cache line size is 64 bytes. 94 // On Intel architecture, cache line size is 64 bytes.
95 // On ARM it may be less (32 bytes), but as far this constant is 95 // On ARM it may be less (32 bytes), but as far this constant is
96 // used for aligning data, it doesn't hurt to align on a greater value. 96 // used for aligning data, it doesn't hurt to align on a greater value.
97 const int kProcessorCacheLineSize = 64; 97 const int kProcessorCacheLineSize = 64;
98 98
99 // Constants relevant to double precision floating point numbers. 99 // Constants relevant to double precision floating point numbers.
100 100
101 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no 101 // Quiet NaNs have bits 51 to 62 set, possibly the sign bit, and no
102 // other bits set. 102 // other bits set.
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 CMOV = 15, // x86 464 CMOV = 15, // x86
465 RDTSC = 4, // x86 465 RDTSC = 4, // x86
466 CPUID = 10, // x86 466 CPUID = 10, // x86
467 VFP3 = 1, // ARM 467 VFP3 = 1, // ARM
468 ARMv7 = 2, // ARM 468 ARMv7 = 2, // ARM
469 SAHF = 0}; // x86 469 SAHF = 0}; // x86
470 470
471 } } // namespace v8::internal 471 } } // namespace v8::internal
472 472
473 #endif // V8_V8GLOBALS_H_ 473 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/utils.h ('k') | test/cctest/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698