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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | |
1002 // A limit to guarantee that we do not overflow typed slot offset in | 1000 // A limit to guarantee that we do not overflow typed slot offset in |
1003 // the old to old remembered set. | 1001 // the old to old remembered set. |
1004 // Note that this limit is higher than what assembler already imposes on | 1002 // Note that this limit is higher than what assembler already imposes on |
1005 // x64 and ia32 architectures. | 1003 // x64 and ia32 architectures. |
1006 static const int kMaxCodePageSize = 512 * MB; | 1004 static const int kMaxCodePageSize = 512 * MB; |
1007 | 1005 |
1008 private: | 1006 private: |
1009 static inline LargePage* Initialize(Heap* heap, MemoryChunk* chunk, | 1007 static inline LargePage* Initialize(Heap* heap, MemoryChunk* chunk, |
1010 Executability executable, Space* owner); | 1008 Executability executable, Space* owner); |
1011 | 1009 |
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3149 count = 0; | 3147 count = 0; |
3150 } | 3148 } |
3151 // Must be small, since an iteration is used for lookup. | 3149 // Must be small, since an iteration is used for lookup. |
3152 static const int kMaxComments = 64; | 3150 static const int kMaxComments = 64; |
3153 }; | 3151 }; |
3154 #endif | 3152 #endif |
3155 } // namespace internal | 3153 } // namespace internal |
3156 } // namespace v8 | 3154 } // namespace v8 |
3157 | 3155 |
3158 #endif // V8_HEAP_SPACES_H_ | 3156 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |