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

Side by Side Diff: src/v8globals.h

Issue 10834408: While allocating code objects, perform the incremental marking step before NULLing the new object. … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Zap code with magic constant. Created 8 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/spaces.cc ('k') | no next file » | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const uint64_t kFreeListZapValue = 0xfeed1eaffeed1eaf; 87 const uint64_t kFreeListZapValue = 0xfeed1eaffeed1eaf;
88 #else 88 #else
89 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); 89 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef);
90 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); 90 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf);
91 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); 91 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf);
92 const uint32_t kSlotsZapValue = 0xbeefdeef; 92 const uint32_t kSlotsZapValue = 0xbeefdeef;
93 const uint32_t kDebugZapValue = 0xbadbaddb; 93 const uint32_t kDebugZapValue = 0xbadbaddb;
94 const uint32_t kFreeListZapValue = 0xfeed1eaf; 94 const uint32_t kFreeListZapValue = 0xfeed1eaf;
95 #endif 95 #endif
96 96
97 const int kCodeZapValue = 0xbadc0de;
97 98
98 // Number of bits to represent the page size for paged spaces. The value of 20 99 // Number of bits to represent the page size for paged spaces. The value of 20
99 // gives 1Mb bytes per page. 100 // gives 1Mb bytes per page.
100 const int kPageSizeBits = 20; 101 const int kPageSizeBits = 20;
101 102
102 // On Intel architecture, cache line size is 64 bytes. 103 // On Intel architecture, cache line size is 64 bytes.
103 // On ARM it may be less (32 bytes), but as far this constant is 104 // On ARM it may be less (32 bytes), but as far this constant is
104 // used for aligning data, it doesn't hurt to align on a greater value. 105 // used for aligning data, it doesn't hurt to align on a greater value.
105 const int kProcessorCacheLineSize = 64; 106 const int kProcessorCacheLineSize = 64;
106 107
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 549
549 enum ClearExceptionFlag { 550 enum ClearExceptionFlag {
550 KEEP_EXCEPTION, 551 KEEP_EXCEPTION,
551 CLEAR_EXCEPTION 552 CLEAR_EXCEPTION
552 }; 553 };
553 554
554 555
555 } } // namespace v8::internal 556 } } // namespace v8::internal
556 557
557 #endif // V8_V8GLOBALS_H_ 558 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698