OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 V(SeededNumberDictionary, empty_slow_element_dictionary, \ | 181 V(SeededNumberDictionary, empty_slow_element_dictionary, \ |
182 EmptySlowElementDictionary) \ | 182 EmptySlowElementDictionary) \ |
183 V(FixedArray, materialized_objects, MaterializedObjects) \ | 183 V(FixedArray, materialized_objects, MaterializedObjects) \ |
184 V(FixedArray, microtask_queue, MicrotaskQueue) \ | 184 V(FixedArray, microtask_queue, MicrotaskQueue) \ |
185 V(TypeFeedbackVector, dummy_vector, DummyVector) \ | 185 V(TypeFeedbackVector, dummy_vector, DummyVector) \ |
186 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ | 186 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ |
187 V(FixedArray, detached_contexts, DetachedContexts) \ | 187 V(FixedArray, detached_contexts, DetachedContexts) \ |
188 V(ArrayList, retained_maps, RetainedMaps) \ | 188 V(ArrayList, retained_maps, RetainedMaps) \ |
189 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ | 189 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ |
190 V(PropertyCell, array_protector, ArrayProtector) \ | 190 V(PropertyCell, array_protector, ArrayProtector) \ |
| 191 V(Cell, is_concat_spreadable_protector, IsConcatSpreadableProtector) \ |
191 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ | 192 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ |
192 V(Object, weak_stack_trace_list, WeakStackTraceList) \ | 193 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
193 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 194 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
194 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 195 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
195 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ | 196 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ |
196 V(PropertyCell, species_protector, SpeciesProtector) | 197 V(Cell, species_protector, SpeciesProtector) |
197 | 198 |
198 // Entries in this list are limited to Smis and are not visited during GC. | 199 // Entries in this list are limited to Smis and are not visited during GC. |
199 #define SMI_ROOT_LIST(V) \ | 200 #define SMI_ROOT_LIST(V) \ |
200 V(Smi, stack_limit, StackLimit) \ | 201 V(Smi, stack_limit, StackLimit) \ |
201 V(Smi, real_stack_limit, RealStackLimit) \ | 202 V(Smi, real_stack_limit, RealStackLimit) \ |
202 V(Smi, last_script_id, LastScriptId) \ | 203 V(Smi, last_script_id, LastScriptId) \ |
203 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 204 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
204 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 205 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
205 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 206 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
206 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 207 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2644 friend class LargeObjectSpace; | 2645 friend class LargeObjectSpace; |
2645 friend class NewSpace; | 2646 friend class NewSpace; |
2646 friend class PagedSpace; | 2647 friend class PagedSpace; |
2647 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2648 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2648 }; | 2649 }; |
2649 | 2650 |
2650 } // namespace internal | 2651 } // namespace internal |
2651 } // namespace v8 | 2652 } // namespace v8 |
2652 | 2653 |
2653 #endif // V8_HEAP_HEAP_H_ | 2654 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |