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

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

Issue 2855143003: [heap] Minor MC: Implement page moving (Closed)
Patch Set: Disable flag Created 3 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.cc ('k') | src/heap/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 // 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 #include <memory> 9 #include <memory>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // has been aborted and needs special handling by the sweeper. 282 // has been aborted and needs special handling by the sweeper.
283 COMPACTION_WAS_ABORTED = 1u << 15, 283 COMPACTION_WAS_ABORTED = 1u << 15,
284 284
285 // |COMPACTION_WAS_ABORTED_FOR_TESTING|: During stress testing evacuation 285 // |COMPACTION_WAS_ABORTED_FOR_TESTING|: During stress testing evacuation
286 // on pages is sometimes aborted. The flag is used to avoid repeatedly 286 // on pages is sometimes aborted. The flag is used to avoid repeatedly
287 // triggering on the same page. 287 // triggering on the same page.
288 COMPACTION_WAS_ABORTED_FOR_TESTING = 1u << 16, 288 COMPACTION_WAS_ABORTED_FOR_TESTING = 1u << 16,
289 289
290 // |ANCHOR|: Flag is set if page is an anchor. 290 // |ANCHOR|: Flag is set if page is an anchor.
291 ANCHOR = 1u << 17, 291 ANCHOR = 1u << 17,
292
293 // |SWEEP_TO_ITERATE|: The page requires sweeping using external markbits
294 // to iterate the page.
295 SWEEP_TO_ITERATE = 1u << 18,
292 }; 296 };
293 typedef base::Flags<Flag, uintptr_t> Flags; 297 typedef base::Flags<Flag, uintptr_t> Flags;
294 298
295 static const int kPointersToHereAreInterestingMask = 299 static const int kPointersToHereAreInterestingMask =
296 POINTERS_TO_HERE_ARE_INTERESTING; 300 POINTERS_TO_HERE_ARE_INTERESTING;
297 301
298 static const int kPointersFromHereAreInterestingMask = 302 static const int kPointersFromHereAreInterestingMask =
299 POINTERS_FROM_HERE_ARE_INTERESTING; 303 POINTERS_FROM_HERE_ARE_INTERESTING;
300 304
301 static const int kEvacuationCandidateMask = EVACUATION_CANDIDATE; 305 static const int kEvacuationCandidateMask = EVACUATION_CANDIDATE;
(...skipping 2666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2968 PageIterator old_iterator_; 2972 PageIterator old_iterator_;
2969 PageIterator code_iterator_; 2973 PageIterator code_iterator_;
2970 PageIterator map_iterator_; 2974 PageIterator map_iterator_;
2971 LargePageIterator lo_iterator_; 2975 LargePageIterator lo_iterator_;
2972 }; 2976 };
2973 2977
2974 } // namespace internal 2978 } // namespace internal
2975 } // namespace v8 2979 } // namespace v8
2976 2980
2977 #endif // V8_HEAP_SPACES_H_ 2981 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698