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

Side by Side Diff: src/spaces.h

Issue 7144015: Change age-mark to not expect pages to be in increasing order. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 6 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 enum MemoryChunkFlags { 383 enum MemoryChunkFlags {
384 IS_EXECUTABLE, 384 IS_EXECUTABLE,
385 WAS_SWEPT_CONSERVATIVELY, 385 WAS_SWEPT_CONSERVATIVELY,
386 CONTAINS_ONLY_DATA, 386 CONTAINS_ONLY_DATA,
387 POINTERS_TO_HERE_ARE_INTERESTING, 387 POINTERS_TO_HERE_ARE_INTERESTING,
388 POINTERS_FROM_HERE_ARE_INTERESTING, 388 POINTERS_FROM_HERE_ARE_INTERESTING,
389 SCAN_ON_SCAVENGE, 389 SCAN_ON_SCAVENGE,
390 IN_FROM_SPACE, // Mutually exclusive with IN_TO_SPACE. 390 IN_FROM_SPACE, // Mutually exclusive with IN_TO_SPACE.
391 IN_TO_SPACE, // All pages in new space has one of these two set. 391 IN_TO_SPACE, // All pages in new space has one of these two set.
392 NEW_SPACE_BELOW_AGE_MARK,
392 NUM_MEMORY_CHUNK_FLAGS 393 NUM_MEMORY_CHUNK_FLAGS
393 }; 394 };
394 395
395 void SetFlag(int flag) { 396 void SetFlag(int flag) {
396 flags_ |= (1 << flag); 397 flags_ |= (1 << flag);
397 } 398 }
398 399
399 void ClearFlag(int flag) { 400 void ClearFlag(int flag) {
400 flags_ &= ~(1 << flag); 401 flags_ &= ~(1 << flag);
401 } 402 }
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 if (next_page == anchor()) return false; 1645 if (next_page == anchor()) return false;
1645 current_page_ = next_page; 1646 current_page_ = next_page;
1646 return true; 1647 return true;
1647 } 1648 }
1648 1649
1649 // Resets the space to using the first page. 1650 // Resets the space to using the first page.
1650 void Reset(); 1651 void Reset();
1651 1652
1652 // Age mark accessors. 1653 // Age mark accessors.
1653 Address age_mark() { return age_mark_; } 1654 Address age_mark() { return age_mark_; }
1654 void set_age_mark(Address mark) { age_mark_ = mark; } 1655 void set_age_mark(Address mark);
1655 1656
1656 // If we don't have these here then SemiSpace will be abstract. However 1657 // If we don't have these here then SemiSpace will be abstract. However
1657 // they should never be called. 1658 // they should never be called.
1658 virtual intptr_t Size() { 1659 virtual intptr_t Size() {
1659 UNREACHABLE(); 1660 UNREACHABLE();
1660 return 0; 1661 return 0;
1661 } 1662 }
1662 1663
1663 virtual bool ReserveSpace(int bytes) { 1664 virtual bool ReserveSpace(int bytes) {
1664 UNREACHABLE(); 1665 UNREACHABLE();
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 } 2472 }
2472 // Must be small, since an iteration is used for lookup. 2473 // Must be small, since an iteration is used for lookup.
2473 static const int kMaxComments = 64; 2474 static const int kMaxComments = 64;
2474 }; 2475 };
2475 #endif 2476 #endif
2476 2477
2477 2478
2478 } } // namespace v8::internal 2479 } } // namespace v8::internal
2479 2480
2480 #endif // V8_SPACES_H_ 2481 #endif // V8_SPACES_H_
OLDNEW
« src/heap-inl.h ('K') | « src/heap-inl.h ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698