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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ | 182 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ |
183 V(FixedArray, detached_contexts, DetachedContexts) \ | 183 V(FixedArray, detached_contexts, DetachedContexts) \ |
184 V(ArrayList, retained_maps, RetainedMaps) \ | 184 V(ArrayList, retained_maps, RetainedMaps) \ |
185 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ | 185 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ |
186 V(PropertyCell, array_protector, ArrayProtector) \ | 186 V(PropertyCell, array_protector, ArrayProtector) \ |
187 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ | 187 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ |
188 V(Object, weak_stack_trace_list, WeakStackTraceList) \ | 188 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
189 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 189 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
190 V(FixedArray, interpreter_table, InterpreterTable) \ | 190 V(FixedArray, interpreter_table, InterpreterTable) \ |
191 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 191 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
| 192 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ |
192 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) | 193 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) |
193 | 194 |
194 | 195 |
195 // Entries in this list are limited to Smis and are not visited during GC. | 196 // Entries in this list are limited to Smis and are not visited during GC. |
196 #define SMI_ROOT_LIST(V) \ | 197 #define SMI_ROOT_LIST(V) \ |
197 V(Smi, stack_limit, StackLimit) \ | 198 V(Smi, stack_limit, StackLimit) \ |
198 V(Smi, real_stack_limit, RealStackLimit) \ | 199 V(Smi, real_stack_limit, RealStackLimit) \ |
199 V(Smi, last_script_id, LastScriptId) \ | 200 V(Smi, last_script_id, LastScriptId) \ |
200 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 201 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
201 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 202 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 V(ScriptContextMap) \ | 443 V(ScriptContextMap) \ |
443 V(UndefinedMap) \ | 444 V(UndefinedMap) \ |
444 V(TheHoleMap) \ | 445 V(TheHoleMap) \ |
445 V(NullMap) \ | 446 V(NullMap) \ |
446 V(BooleanMap) \ | 447 V(BooleanMap) \ |
447 V(UninitializedMap) \ | 448 V(UninitializedMap) \ |
448 V(ArgumentsMarkerMap) \ | 449 V(ArgumentsMarkerMap) \ |
449 V(JSMessageObjectMap) \ | 450 V(JSMessageObjectMap) \ |
450 V(ForeignMap) \ | 451 V(ForeignMap) \ |
451 V(NeanderMap) \ | 452 V(NeanderMap) \ |
| 453 V(EmptyWeakCell) \ |
452 V(empty_string) \ | 454 V(empty_string) \ |
453 PRIVATE_SYMBOL_LIST(V) | 455 PRIVATE_SYMBOL_LIST(V) |
454 | 456 |
455 // Forward declarations. | 457 // Forward declarations. |
456 class ArrayBufferTracker; | 458 class ArrayBufferTracker; |
457 class GCIdleTimeAction; | 459 class GCIdleTimeAction; |
458 class GCIdleTimeHandler; | 460 class GCIdleTimeHandler; |
459 class GCIdleTimeHeapState; | 461 class GCIdleTimeHeapState; |
460 class GCTracer; | 462 class GCTracer; |
461 class HeapObjectsFilter; | 463 class HeapObjectsFilter; |
(...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2735 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2734 | 2736 |
2735 private: | 2737 private: |
2736 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2738 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2737 }; | 2739 }; |
2738 #endif // DEBUG | 2740 #endif // DEBUG |
2739 } // namespace internal | 2741 } // namespace internal |
2740 } // namespace v8 | 2742 } // namespace v8 |
2741 | 2743 |
2742 #endif // V8_HEAP_HEAP_H_ | 2744 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |