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

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: Fix bug in assert. Move some functions. 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
« no previous file with comments | « src/heap-inl.h ('k') | src/spaces.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 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 if (next_page == &anchor_) return false; 1636 if (next_page == &anchor_) return false;
1636 current_page_ = next_page; 1637 current_page_ = next_page;
1637 return true; 1638 return true;
1638 } 1639 }
1639 1640
1640 // Resets the space to using the first page. 1641 // Resets the space to using the first page.
1641 void Reset(); 1642 void Reset();
1642 1643
1643 // Age mark accessors. 1644 // Age mark accessors.
1644 Address age_mark() { return age_mark_; } 1645 Address age_mark() { return age_mark_; }
1645 void set_age_mark(Address mark) { age_mark_ = mark; } 1646 void set_age_mark(Address mark);
1646 1647
1647 // If we don't have these here then SemiSpace will be abstract. However 1648 // If we don't have these here then SemiSpace will be abstract. However
1648 // they should never be called. 1649 // they should never be called.
1649 virtual intptr_t Size() { 1650 virtual intptr_t Size() {
1650 UNREACHABLE(); 1651 UNREACHABLE();
1651 return 0; 1652 return 0;
1652 } 1653 }
1653 1654
1654 virtual bool ReserveSpace(int bytes) { 1655 virtual bool ReserveSpace(int bytes) {
1655 UNREACHABLE(); 1656 UNREACHABLE();
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2464 } 2465 }
2465 // Must be small, since an iteration is used for lookup. 2466 // Must be small, since an iteration is used for lookup.
2466 static const int kMaxComments = 64; 2467 static const int kMaxComments = 64;
2467 }; 2468 };
2468 #endif 2469 #endif
2469 2470
2470 2471
2471 } } // namespace v8::internal 2472 } } // namespace v8::internal
2472 2473
2473 #endif // V8_SPACES_H_ 2474 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698