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

Side by Side Diff: src/spaces.h

Issue 5987011: Reduce Page::kMaxHeapObjectSize. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: fix constant Created 9 years, 11 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 | « no previous file | 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 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 static const intptr_t kPageAlignmentMask = (1 << kPageSizeBits) - 1; 307 static const intptr_t kPageAlignmentMask = (1 << kPageSizeBits) - 1;
308 308
309 // The start offset of the object area in a page. Aligned to both maps and 309 // The start offset of the object area in a page. Aligned to both maps and
310 // code alignment to be suitable for both. 310 // code alignment to be suitable for both.
311 static const int kObjectStartOffset = kBodyOffset; 311 static const int kObjectStartOffset = kBodyOffset;
312 312
313 // Object area size in bytes. 313 // Object area size in bytes.
314 static const int kObjectAreaSize = kPageSize - kObjectStartOffset; 314 static const int kObjectAreaSize = kPageSize - kObjectStartOffset;
315 315
316 // Maximum object size that fits in a page. 316 // Maximum object size that fits in a page.
317 static const int kMaxHeapObjectSize = kObjectAreaSize; 317 static const int kMaxHeapObjectSize = kObjectAreaSize >> 4;
318 318
319 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER 319 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER
320 static const int kDirtyFlagOffset = 2 * kPointerSize; 320 static const int kDirtyFlagOffset = 2 * kPointerSize;
321 static const int kRegionSizeLog2 = 8; 321 static const int kRegionSizeLog2 = 8;
322 static const int kRegionSize = 1 << kRegionSizeLog2; 322 static const int kRegionSize = 1 << kRegionSizeLog2;
323 static const intptr_t kRegionAlignmentMask = (kRegionSize - 1); 323 static const intptr_t kRegionAlignmentMask = (kRegionSize - 1);
324 324
325 STATIC_CHECK(kRegionSize == kPageSize / kBitsPerInt); 325 STATIC_CHECK(kRegionSize == kPageSize / kBitsPerInt);
326 #endif 326 #endif
327 327
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 2093
2094 private: 2094 private:
2095 LargePage* current_; 2095 LargePage* current_;
2096 HeapObjectCallback size_func_; 2096 HeapObjectCallback size_func_;
2097 }; 2097 };
2098 2098
2099 2099
2100 } } // namespace v8::internal 2100 } } // namespace v8::internal
2101 2101
2102 #endif // V8_SPACES_H_ 2102 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698