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

Side by Side Diff: src/spaces.h

Issue 11280120: Sweep pages with lowest live memory first. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/mark-compact.cc ('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 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1796 protected: 1796 protected:
1797 FreeList* free_list() { return &free_list_; } 1797 FreeList* free_list() { return &free_list_; }
1798 1798
1799 int area_size_; 1799 int area_size_;
1800 1800
1801 // Maximum capacity of this space. 1801 // Maximum capacity of this space.
1802 intptr_t max_capacity_; 1802 intptr_t max_capacity_;
1803 1803
1804 intptr_t SizeOfFirstPage(); 1804 intptr_t SizeOfFirstPage();
1805 1805
1806 intptr_t SweepPageWithLowestLiveMemory();
1807
1806 // Accounting information for this space. 1808 // Accounting information for this space.
1807 AllocationStats accounting_stats_; 1809 AllocationStats accounting_stats_;
1808 1810
1809 // The dummy page that anchors the double linked list of pages. 1811 // The dummy page that anchors the double linked list of pages.
1810 Page anchor_; 1812 Page anchor_;
1811 1813
1812 // The space's free list. 1814 // The space's free list.
1813 FreeList free_list_; 1815 FreeList free_list_;
1814 1816
1815 // Normal allocation information. 1817 // Normal allocation information.
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
2823 } 2825 }
2824 // Must be small, since an iteration is used for lookup. 2826 // Must be small, since an iteration is used for lookup.
2825 static const int kMaxComments = 64; 2827 static const int kMaxComments = 64;
2826 }; 2828 };
2827 #endif 2829 #endif
2828 2830
2829 2831
2830 } } // namespace v8::internal 2832 } } // namespace v8::internal
2831 2833
2832 #endif // V8_SPACES_H_ 2834 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698