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

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

Issue 2020743002: [heap] Add the free remainder of a black page to the free list. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename test Created 4 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
« no previous file with comments | « src/heap/mark-compact.cc ('k') | test/cctest/heap/test-heap.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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 658
659 Address area_start() { return area_start_; } 659 Address area_start() { return area_start_; }
660 Address area_end() { return area_end_; } 660 Address area_end() { return area_end_; }
661 int area_size() { return static_cast<int>(area_end() - area_start()); } 661 int area_size() { return static_cast<int>(area_end() - area_start()); }
662 662
663 bool CommitArea(size_t requested); 663 bool CommitArea(size_t requested);
664 664
665 // Approximate amount of physical memory committed for this chunk. 665 // Approximate amount of physical memory committed for this chunk.
666 size_t CommittedPhysicalMemory() { return high_water_mark_.Value(); } 666 size_t CommittedPhysicalMemory() { return high_water_mark_.Value(); }
667 667
668 Address HighWaterMark() { return address() + high_water_mark_.Value(); }
669
668 int progress_bar() { 670 int progress_bar() {
669 DCHECK(IsFlagSet(HAS_PROGRESS_BAR)); 671 DCHECK(IsFlagSet(HAS_PROGRESS_BAR));
670 return progress_bar_; 672 return progress_bar_;
671 } 673 }
672 674
673 void set_progress_bar(int progress_bar) { 675 void set_progress_bar(int progress_bar) {
674 DCHECK(IsFlagSet(HAS_PROGRESS_BAR)); 676 DCHECK(IsFlagSet(HAS_PROGRESS_BAR));
675 progress_bar_ = progress_bar; 677 progress_bar_ = progress_bar;
676 } 678 }
677 679
(...skipping 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after
3175 count = 0; 3177 count = 0;
3176 } 3178 }
3177 // Must be small, since an iteration is used for lookup. 3179 // Must be small, since an iteration is used for lookup.
3178 static const int kMaxComments = 64; 3180 static const int kMaxComments = 64;
3179 }; 3181 };
3180 #endif 3182 #endif
3181 } // namespace internal 3183 } // namespace internal
3182 } // namespace v8 3184 } // namespace v8
3183 3185
3184 #endif // V8_HEAP_SPACES_H_ 3186 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698