| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 V(ScriptContextMap) \ | 441 V(ScriptContextMap) \ |
| 441 V(UndefinedMap) \ | 442 V(UndefinedMap) \ |
| 442 V(TheHoleMap) \ | 443 V(TheHoleMap) \ |
| 443 V(NullMap) \ | 444 V(NullMap) \ |
| 444 V(BooleanMap) \ | 445 V(BooleanMap) \ |
| 445 V(UninitializedMap) \ | 446 V(UninitializedMap) \ |
| 446 V(ArgumentsMarkerMap) \ | 447 V(ArgumentsMarkerMap) \ |
| 447 V(JSMessageObjectMap) \ | 448 V(JSMessageObjectMap) \ |
| 448 V(ForeignMap) \ | 449 V(ForeignMap) \ |
| 449 V(NeanderMap) \ | 450 V(NeanderMap) \ |
| 451 V(EmptyWeakCell) \ |
| 450 V(empty_string) \ | 452 V(empty_string) \ |
| 451 PRIVATE_SYMBOL_LIST(V) | 453 PRIVATE_SYMBOL_LIST(V) |
| 452 | 454 |
| 453 // Forward declarations. | 455 // Forward declarations. |
| 454 class ArrayBufferTracker; | 456 class ArrayBufferTracker; |
| 455 class GCIdleTimeAction; | 457 class GCIdleTimeAction; |
| 456 class GCIdleTimeHandler; | 458 class GCIdleTimeHandler; |
| 457 class GCIdleTimeHeapState; | 459 class GCIdleTimeHeapState; |
| 458 class GCTracer; | 460 class GCTracer; |
| 459 class HeapObjectsFilter; | 461 class HeapObjectsFilter; |
| (...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2733 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2732 | 2734 |
| 2733 private: | 2735 private: |
| 2734 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2736 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2735 }; | 2737 }; |
| 2736 #endif // DEBUG | 2738 #endif // DEBUG |
| 2737 } // namespace internal | 2739 } // namespace internal |
| 2738 } // namespace v8 | 2740 } // namespace v8 |
| 2739 | 2741 |
| 2740 #endif // V8_HEAP_HEAP_H_ | 2742 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |