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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 V(Map, scope_info_map, ScopeInfoMap) \ | 51 V(Map, scope_info_map, ScopeInfoMap) \ |
52 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 52 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
53 V(Map, code_map, CodeMap) \ | 53 V(Map, code_map, CodeMap) \ |
54 V(Map, function_context_map, FunctionContextMap) \ | 54 V(Map, function_context_map, FunctionContextMap) \ |
55 V(Map, cell_map, CellMap) \ | 55 V(Map, cell_map, CellMap) \ |
56 V(Map, weak_cell_map, WeakCellMap) \ | 56 V(Map, weak_cell_map, WeakCellMap) \ |
57 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 57 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
58 V(Map, foreign_map, ForeignMap) \ | 58 V(Map, foreign_map, ForeignMap) \ |
59 V(Map, heap_number_map, HeapNumberMap) \ | 59 V(Map, heap_number_map, HeapNumberMap) \ |
60 V(Map, transition_array_map, TransitionArrayMap) \ | 60 V(Map, transition_array_map, TransitionArrayMap) \ |
61 V(FixedArray, empty_literals_array, EmptyLiteralsArray) \ | 61 V(ScopeInfo, empty_scope_info, EmptyScopeInfo) \ |
62 V(FixedArray, empty_type_feedback_vector, EmptyTypeFeedbackVector) \ | 62 V(FixedArray, empty_type_feedback_vector, EmptyTypeFeedbackVector) \ |
63 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 63 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
64 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ | 64 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
65 /* Entries beyond the first 32 */ \ | 65 /* Entries beyond the first 32 */ \ |
66 /* The roots above this line should be boring from a GC point of view. */ \ | 66 /* The roots above this line should be boring from a GC point of view. */ \ |
67 /* This means they are never in new space and never on a page that is */ \ | 67 /* This means they are never in new space and never on a page that is */ \ |
68 /* being compacted. */ \ | 68 /* being compacted. */ \ |
69 /* Empty scope info */ \ | |
70 V(ScopeInfo, empty_scope_info, EmptyScopeInfo) \ | |
71 /* Oddballs */ \ | 69 /* Oddballs */ \ |
72 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 70 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
73 V(Oddball, arguments_marker, ArgumentsMarker) \ | 71 V(Oddball, arguments_marker, ArgumentsMarker) \ |
74 V(Oddball, exception, Exception) \ | 72 V(Oddball, exception, Exception) \ |
75 V(Oddball, termination_exception, TerminationException) \ | 73 V(Oddball, termination_exception, TerminationException) \ |
76 V(Oddball, optimized_out, OptimizedOut) \ | 74 V(Oddball, optimized_out, OptimizedOut) \ |
77 V(Oddball, stale_register, StaleRegister) \ | 75 V(Oddball, stale_register, StaleRegister) \ |
78 /* Context maps */ \ | 76 /* Context maps */ \ |
79 V(Map, native_context_map, NativeContextMap) \ | 77 V(Map, native_context_map, NativeContextMap) \ |
80 V(Map, module_context_map, ModuleContextMap) \ | 78 V(Map, module_context_map, ModuleContextMap) \ |
(...skipping 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2695 friend class LargeObjectSpace; | 2693 friend class LargeObjectSpace; |
2696 friend class NewSpace; | 2694 friend class NewSpace; |
2697 friend class PagedSpace; | 2695 friend class PagedSpace; |
2698 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2696 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2699 }; | 2697 }; |
2700 | 2698 |
2701 } // namespace internal | 2699 } // namespace internal |
2702 } // namespace v8 | 2700 } // namespace v8 |
2703 | 2701 |
2704 #endif // V8_HEAP_HEAP_H_ | 2702 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |