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

Side by Side Diff: src/spaces.h

Issue 9242008: Make from-space initially uncommitted for another 1Mbyte (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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 | « no previous file | 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 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 public: 1832 public:
1833 // Constructor. 1833 // Constructor.
1834 SemiSpace(Heap* heap, SemiSpaceId semispace) 1834 SemiSpace(Heap* heap, SemiSpaceId semispace)
1835 : Space(heap, NEW_SPACE, NOT_EXECUTABLE), 1835 : Space(heap, NEW_SPACE, NOT_EXECUTABLE),
1836 start_(NULL), 1836 start_(NULL),
1837 age_mark_(NULL), 1837 age_mark_(NULL),
1838 id_(semispace), 1838 id_(semispace),
1839 anchor_(this), 1839 anchor_(this),
1840 current_page_(NULL) { } 1840 current_page_(NULL) { }
1841 1841
1842 // Sets up the semispace using the given chunk. 1842 // Sets up the semispace using the given chunk. After this, call Commit()
1843 bool SetUp(Address start, int initial_capacity, int maximum_capacity); 1843 // to make the semispace usable.
1844 void SetUp(Address start, int initial_capacity, int maximum_capacity);
1844 1845
1845 // Tear down the space. Heap memory was not allocated by the space, so it 1846 // Tear down the space. Heap memory was not allocated by the space, so it
1846 // is not deallocated here. 1847 // is not deallocated here.
1847 void TearDown(); 1848 void TearDown();
1848 1849
1849 // True if the space has been set up but not torn down. 1850 // True if the space has been set up but not torn down.
1850 bool HasBeenSetUp() { return start_ != NULL; } 1851 bool HasBeenSetUp() { return start_ != NULL; }
1851 1852
1852 // Grow the semispace to the new capacity. The new capacity 1853 // Grow the semispace to the new capacity. The new capacity
1853 // requested must be larger than the current capacity and less than 1854 // requested must be larger than the current capacity and less than
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 } 2651 }
2651 // Must be small, since an iteration is used for lookup. 2652 // Must be small, since an iteration is used for lookup.
2652 static const int kMaxComments = 64; 2653 static const int kMaxComments = 64;
2653 }; 2654 };
2654 #endif 2655 #endif
2655 2656
2656 2657
2657 } } // namespace v8::internal 2658 } } // namespace v8::internal
2658 2659
2659 #endif // V8_SPACES_H_ 2660 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698