OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |