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

Side by Side Diff: src/heap/spaces.h

Issue 1988623002: Ensure black and gray objects are kept around by scavenger (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 4 years, 7 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
« no previous file with comments | « src/heap/mark-compact.h ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_SPACES_H_ 5 #ifndef V8_HEAP_SPACES_H_
6 #define V8_HEAP_SPACES_H_ 6 #define V8_HEAP_SPACES_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after
2854 // same page, so FromSpaceStart() might be above FromSpaceEnd(). 2854 // same page, so FromSpaceStart() might be above FromSpaceEnd().
2855 Address FromSpacePageLow() { return from_space_.page_low(); } 2855 Address FromSpacePageLow() { return from_space_.page_low(); }
2856 Address FromSpacePageHigh() { return from_space_.page_high(); } 2856 Address FromSpacePageHigh() { return from_space_.page_high(); }
2857 Address FromSpaceStart() { return from_space_.space_start(); } 2857 Address FromSpaceStart() { return from_space_.space_start(); }
2858 Address FromSpaceEnd() { return from_space_.space_end(); } 2858 Address FromSpaceEnd() { return from_space_.space_end(); }
2859 2859
2860 // Get the extent of the active semispace's pages' memory. 2860 // Get the extent of the active semispace's pages' memory.
2861 Address ToSpaceStart() { return to_space_.space_start(); } 2861 Address ToSpaceStart() { return to_space_.space_start(); }
2862 Address ToSpaceEnd() { return to_space_.space_end(); } 2862 Address ToSpaceEnd() { return to_space_.space_end(); }
2863 2863
2864 SemiSpace* from_space() { return &from_space_; }
2865
2864 inline bool ToSpaceContainsSlow(Address a); 2866 inline bool ToSpaceContainsSlow(Address a);
2865 inline bool FromSpaceContainsSlow(Address a); 2867 inline bool FromSpaceContainsSlow(Address a);
2866 inline bool ToSpaceContains(Object* o); 2868 inline bool ToSpaceContains(Object* o);
2867 inline bool FromSpaceContains(Object* o); 2869 inline bool FromSpaceContains(Object* o);
2868 2870
2869 // Try to switch the active semispace to a new, empty, page. 2871 // Try to switch the active semispace to a new, empty, page.
2870 // Returns false if this isn't possible or reasonable (i.e., there 2872 // Returns false if this isn't possible or reasonable (i.e., there
2871 // are no pages, or the current page is already empty), or true 2873 // are no pages, or the current page is already empty), or true
2872 // if successful. 2874 // if successful.
2873 bool AddFreshPage(); 2875 bool AddFreshPage();
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
3197 count = 0; 3199 count = 0;
3198 } 3200 }
3199 // Must be small, since an iteration is used for lookup. 3201 // Must be small, since an iteration is used for lookup.
3200 static const int kMaxComments = 64; 3202 static const int kMaxComments = 64;
3201 }; 3203 };
3202 #endif 3204 #endif
3203 } // namespace internal 3205 } // namespace internal
3204 } // namespace v8 3206 } // namespace v8
3205 3207
3206 #endif // V8_HEAP_SPACES_H_ 3208 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap/mark-compact.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698