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

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

Issue 463523002: Move store-buffer to heap and remove some unnecessary includes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/heap/heap-inl.h ('k') | src/heap/store-buffer.h » ('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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/atomicops.h" 9 #include "src/base/atomicops.h"
10 #include "src/base/platform/mutex.h" 10 #include "src/base/platform/mutex.h"
(...skipping 20 matching lines...) Expand all
31 // The semispaces of the young generation are contiguous. The old and map 31 // The semispaces of the young generation are contiguous. The old and map
32 // spaces consists of a list of pages. A page has a page header and an object 32 // spaces consists of a list of pages. A page has a page header and an object
33 // area. 33 // area.
34 // 34 //
35 // There is a separate large object space for objects larger than 35 // There is a separate large object space for objects larger than
36 // Page::kMaxHeapObjectSize, so that they do not have to move during 36 // Page::kMaxHeapObjectSize, so that they do not have to move during
37 // collection. The large object space is paged. Pages in large object space 37 // collection. The large object space is paged. Pages in large object space
38 // may be larger than the page size. 38 // may be larger than the page size.
39 // 39 //
40 // A store-buffer based write barrier is used to keep track of intergenerational 40 // A store-buffer based write barrier is used to keep track of intergenerational
41 // references. See store-buffer.h. 41 // references. See heap/store-buffer.h.
42 // 42 //
43 // During scavenges and mark-sweep collections we sometimes (after a store 43 // During scavenges and mark-sweep collections we sometimes (after a store
44 // buffer overflow) iterate intergenerational pointers without decoding heap 44 // buffer overflow) iterate intergenerational pointers without decoding heap
45 // object maps so if the page belongs to old pointer space or large object 45 // object maps so if the page belongs to old pointer space or large object
46 // space it is essential to guarantee that the page does not contain any 46 // space it is essential to guarantee that the page does not contain any
47 // garbage pointers to new space: every pointer aligned word which satisfies 47 // garbage pointers to new space: every pointer aligned word which satisfies
48 // the Heap::InNewSpace() predicate must be a pointer to a live heap object in 48 // the Heap::InNewSpace() predicate must be a pointer to a live heap object in
49 // new space. Thus objects in old pointer and large object spaces should have a 49 // new space. Thus objects in old pointer and large object spaces should have a
50 // special layout (e.g. no bare integer fields). This requirement does not 50 // special layout (e.g. no bare integer fields). This requirement does not
51 // apply to map space which is iterated in a special fashion. However we still 51 // apply to map space which is iterated in a special fashion. However we still
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2888 count = 0; 2888 count = 0;
2889 } 2889 }
2890 // Must be small, since an iteration is used for lookup. 2890 // Must be small, since an iteration is used for lookup.
2891 static const int kMaxComments = 64; 2891 static const int kMaxComments = 64;
2892 }; 2892 };
2893 #endif 2893 #endif
2894 } 2894 }
2895 } // namespace v8::internal 2895 } // namespace v8::internal
2896 2896
2897 #endif // V8_HEAP_SPACES_H_ 2897 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/store-buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698