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

Side by Side Diff: src/v8globals.h

Issue 6639024: Get rid of distinction between below- and above-watermark in page allocation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 9 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Should be a recognizable hex value tagged as a failure. 72 // Should be a recognizable hex value tagged as a failure.
73 #ifdef V8_HOST_ARCH_64_BIT 73 #ifdef V8_HOST_ARCH_64_BIT
74 const Address kZapValue = 74 const Address kZapValue =
75 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeef)); 75 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeef));
76 const Address kHandleZapValue = 76 const Address kHandleZapValue =
77 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddeaf)); 77 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddeaf));
78 const Address kFromSpaceZapValue = 78 const Address kFromSpaceZapValue =
79 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdaf)); 79 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdaf));
80 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb); 80 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb);
81 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeef); 81 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeef);
82 const uint64_t kFreeListZapValue = 0xfeed1eaffeed1eaf;
82 #else 83 #else
83 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); 84 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef);
84 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); 85 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf);
85 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); 86 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf);
86 const uint32_t kSlotsZapValue = 0xbeefdeef; 87 const uint32_t kSlotsZapValue = 0xbeefdeef;
87 const uint32_t kDebugZapValue = 0xbadbaddb; 88 const uint32_t kDebugZapValue = 0xbadbaddb;
89 const uint32_t kFreeListZapValue = 0xfeed1eaf;
88 #endif 90 #endif
89 91
90 92
91 // 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
92 // gives 1Mb bytes per page. 94 // gives 1Mb bytes per page.
93 const int kPageSizeBits = 20; 95 const int kPageSizeBits = 20;
94 96
95 // On Intel architecture, cache line size is 64 bytes. 97 // On Intel architecture, cache line size is 64 bytes.
96 // 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
97 // 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.
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 kStrictMode, 477 kStrictMode,
476 // This value is never used, but is needed to prevent GCC 4.5 from failing 478 // This value is never used, but is needed to prevent GCC 4.5 from failing
477 // to compile when we assert that a flag is either kNonStrictMode or 479 // to compile when we assert that a flag is either kNonStrictMode or
478 // kStrictMode. 480 // kStrictMode.
479 kInvalidStrictFlag 481 kInvalidStrictFlag
480 }; 482 };
481 483
482 } } // namespace v8::internal 484 } } // namespace v8::internal
483 485
484 #endif // V8_V8GLOBALS_H_ 486 #endif // V8_V8GLOBALS_H_
OLDNEW
« src/spaces-inl.h ('K') | « src/store-buffer.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698