| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, code_stub_context, CodeStubContext) \ | 189 V(Object, code_stub_context, CodeStubContext) \ |
| 190 V(JSObject, code_stub_exports_object, CodeStubExportsObject) \ | 190 V(JSObject, code_stub_exports_object, CodeStubExportsObject) \ |
| 191 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 191 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
| 192 V(FixedArray, interpreter_table, InterpreterTable) \ | 192 V(FixedArray, interpreter_table, InterpreterTable) \ |
| 193 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 193 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
| 194 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ |
| 194 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) | 195 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) |
| 195 | 196 |
| 196 | 197 |
| 197 // Entries in this list are limited to Smis and are not visited during GC. | 198 // Entries in this list are limited to Smis and are not visited during GC. |
| 198 #define SMI_ROOT_LIST(V) \ | 199 #define SMI_ROOT_LIST(V) \ |
| 199 V(Smi, stack_limit, StackLimit) \ | 200 V(Smi, stack_limit, StackLimit) \ |
| 200 V(Smi, real_stack_limit, RealStackLimit) \ | 201 V(Smi, real_stack_limit, RealStackLimit) \ |
| 201 V(Smi, last_script_id, LastScriptId) \ | 202 V(Smi, last_script_id, LastScriptId) \ |
| 202 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 203 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
| 203 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 204 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 V(ScriptContextMap) \ | 442 V(ScriptContextMap) \ |
| 442 V(UndefinedMap) \ | 443 V(UndefinedMap) \ |
| 443 V(TheHoleMap) \ | 444 V(TheHoleMap) \ |
| 444 V(NullMap) \ | 445 V(NullMap) \ |
| 445 V(BooleanMap) \ | 446 V(BooleanMap) \ |
| 446 V(UninitializedMap) \ | 447 V(UninitializedMap) \ |
| 447 V(ArgumentsMarkerMap) \ | 448 V(ArgumentsMarkerMap) \ |
| 448 V(JSMessageObjectMap) \ | 449 V(JSMessageObjectMap) \ |
| 449 V(ForeignMap) \ | 450 V(ForeignMap) \ |
| 450 V(NeanderMap) \ | 451 V(NeanderMap) \ |
| 452 V(EmptyWeakCell) \ |
| 451 V(empty_string) \ | 453 V(empty_string) \ |
| 452 PRIVATE_SYMBOL_LIST(V) | 454 PRIVATE_SYMBOL_LIST(V) |
| 453 | 455 |
| 454 // Forward declarations. | 456 // Forward declarations. |
| 455 class ArrayBufferTracker; | 457 class ArrayBufferTracker; |
| 456 class GCIdleTimeAction; | 458 class GCIdleTimeAction; |
| 457 class GCIdleTimeHandler; | 459 class GCIdleTimeHandler; |
| 458 class GCIdleTimeHeapState; | 460 class GCIdleTimeHeapState; |
| 459 class GCTracer; | 461 class GCTracer; |
| 460 class HeapObjectsFilter; | 462 class HeapObjectsFilter; |
| (...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2735 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2737 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2736 | 2738 |
| 2737 private: | 2739 private: |
| 2738 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2740 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2739 }; | 2741 }; |
| 2740 #endif // DEBUG | 2742 #endif // DEBUG |
| 2741 } // namespace internal | 2743 } // namespace internal |
| 2742 } // namespace v8 | 2744 } // namespace v8 |
| 2743 | 2745 |
| 2744 #endif // V8_HEAP_HEAP_H_ | 2746 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |