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

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

Issue 2043713006: [heap] Clear out of live range remembered set slots in large objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/heap/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 // 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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 inline LargePage* next_page() { 990 inline LargePage* next_page() {
991 return static_cast<LargePage*>(next_chunk()); 991 return static_cast<LargePage*>(next_chunk());
992 } 992 }
993 993
994 inline void set_next_page(LargePage* page) { set_next_chunk(page); } 994 inline void set_next_page(LargePage* page) { set_next_chunk(page); }
995 995
996 // Uncommit memory that is not in use anymore by the object. If the object 996 // Uncommit memory that is not in use anymore by the object. If the object
997 // cannot be shrunk 0 is returned. 997 // cannot be shrunk 0 is returned.
998 Address GetAddressToShrink(); 998 Address GetAddressToShrink();
999 999
1000 void ClearOutOfLiveRangeSlots(Address free_start);
1001
1000 // A limit to guarantee that we do not overflow typed slot offset in 1002 // A limit to guarantee that we do not overflow typed slot offset in
1001 // the old to old remembered set. 1003 // the old to old remembered set.
1002 // Note that this limit is higher than what assembler already imposes on 1004 // Note that this limit is higher than what assembler already imposes on
1003 // x64 and ia32 architectures. 1005 // x64 and ia32 architectures.
1004 static const int kMaxCodePageSize = 512 * MB; 1006 static const int kMaxCodePageSize = 512 * MB;
1005 1007
1006 private: 1008 private:
1007 static inline LargePage* Initialize(Heap* heap, MemoryChunk* chunk, 1009 static inline LargePage* Initialize(Heap* heap, MemoryChunk* chunk,
1008 Executability executable, Space* owner); 1010 Executability executable, Space* owner);
1009 1011
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
3147 count = 0; 3149 count = 0;
3148 } 3150 }
3149 // Must be small, since an iteration is used for lookup. 3151 // Must be small, since an iteration is used for lookup.
3150 static const int kMaxComments = 64; 3152 static const int kMaxComments = 64;
3151 }; 3153 };
3152 #endif 3154 #endif
3153 } // namespace internal 3155 } // namespace internal
3154 } // namespace v8 3156 } // namespace v8
3155 3157
3156 #endif // V8_HEAP_SPACES_H_ 3158 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698