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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 V(SeededNumberDictionary, empty_slow_element_dictionary, \ | 183 V(SeededNumberDictionary, empty_slow_element_dictionary, \ |
184 EmptySlowElementDictionary) \ | 184 EmptySlowElementDictionary) \ |
185 V(FixedArray, materialized_objects, MaterializedObjects) \ | 185 V(FixedArray, materialized_objects, MaterializedObjects) \ |
186 V(FixedArray, microtask_queue, MicrotaskQueue) \ | 186 V(FixedArray, microtask_queue, MicrotaskQueue) \ |
187 V(TypeFeedbackVector, dummy_vector, DummyVector) \ | 187 V(TypeFeedbackVector, dummy_vector, DummyVector) \ |
188 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ | 188 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ |
189 V(FixedArray, detached_contexts, DetachedContexts) \ | 189 V(FixedArray, detached_contexts, DetachedContexts) \ |
190 V(ArrayList, retained_maps, RetainedMaps) \ | 190 V(ArrayList, retained_maps, RetainedMaps) \ |
191 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ | 191 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ |
192 V(PropertyCell, array_protector, ArrayProtector) \ | 192 V(PropertyCell, array_protector, ArrayProtector) \ |
| 193 V(Cell, array_is_concat_spreadable_protector, \ |
| 194 ArrayIsConcatSpreadableProtector) \ |
193 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ | 195 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ |
194 V(Object, weak_stack_trace_list, WeakStackTraceList) \ | 196 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
195 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 197 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
196 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 198 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
197 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ | 199 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ |
198 V(PropertyCell, species_protector, SpeciesProtector) | 200 V(Cell, species_protector, SpeciesProtector) |
199 | 201 |
200 // Entries in this list are limited to Smis and are not visited during GC. | 202 // Entries in this list are limited to Smis and are not visited during GC. |
201 #define SMI_ROOT_LIST(V) \ | 203 #define SMI_ROOT_LIST(V) \ |
202 V(Smi, stack_limit, StackLimit) \ | 204 V(Smi, stack_limit, StackLimit) \ |
203 V(Smi, real_stack_limit, RealStackLimit) \ | 205 V(Smi, real_stack_limit, RealStackLimit) \ |
204 V(Smi, last_script_id, LastScriptId) \ | 206 V(Smi, last_script_id, LastScriptId) \ |
205 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 207 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
206 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 208 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
207 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 209 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
208 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 210 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2651 friend class LargeObjectSpace; | 2653 friend class LargeObjectSpace; |
2652 friend class NewSpace; | 2654 friend class NewSpace; |
2653 friend class PagedSpace; | 2655 friend class PagedSpace; |
2654 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2656 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2655 }; | 2657 }; |
2656 | 2658 |
2657 } // namespace internal | 2659 } // namespace internal |
2658 } // namespace v8 | 2660 } // namespace v8 |
2659 | 2661 |
2660 #endif // V8_HEAP_HEAP_H_ | 2662 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |