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(Map, feedback_vector_map, FeedbackVectorMap) \ |
61 V(ScopeInfo, empty_scope_info, EmptyScopeInfo) \ | 62 V(ScopeInfo, empty_scope_info, EmptyScopeInfo) \ |
62 V(FixedArray, empty_feedback_vector, EmptyFeedbackVector) \ | |
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 /* Oddballs */ \ | 69 /* Oddballs */ \ |
70 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 70 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
71 V(Oddball, arguments_marker, ArgumentsMarker) \ | 71 V(Oddball, arguments_marker, ArgumentsMarker) \ |
72 V(Oddball, exception, Exception) \ | 72 V(Oddball, exception, Exception) \ |
(...skipping 13 matching lines...) Expand all Loading... |
86 /* Maps */ \ | 86 /* Maps */ \ |
87 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 87 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
88 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ | 88 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ |
89 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ | 89 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ |
90 V(Map, unseeded_number_dictionary_map, UnseededNumberDictionaryMap) \ | 90 V(Map, unseeded_number_dictionary_map, UnseededNumberDictionaryMap) \ |
91 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ | 91 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ |
92 V(Map, message_object_map, JSMessageObjectMap) \ | 92 V(Map, message_object_map, JSMessageObjectMap) \ |
93 V(Map, external_map, ExternalMap) \ | 93 V(Map, external_map, ExternalMap) \ |
94 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 94 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
95 V(Map, module_info_map, ModuleInfoMap) \ | 95 V(Map, module_info_map, ModuleInfoMap) \ |
96 V(Map, feedback_vector_map, FeedbackVectorMap) \ | |
97 /* String maps */ \ | 96 /* String maps */ \ |
98 V(Map, native_source_string_map, NativeSourceStringMap) \ | 97 V(Map, native_source_string_map, NativeSourceStringMap) \ |
99 V(Map, string_map, StringMap) \ | 98 V(Map, string_map, StringMap) \ |
100 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ | 99 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ |
101 V(Map, cons_string_map, ConsStringMap) \ | 100 V(Map, cons_string_map, ConsStringMap) \ |
102 V(Map, thin_one_byte_string_map, ThinOneByteStringMap) \ | 101 V(Map, thin_one_byte_string_map, ThinOneByteStringMap) \ |
103 V(Map, thin_string_map, ThinStringMap) \ | 102 V(Map, thin_string_map, ThinStringMap) \ |
104 V(Map, sliced_string_map, SlicedStringMap) \ | 103 V(Map, sliced_string_map, SlicedStringMap) \ |
105 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ | 104 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ |
106 V(Map, external_string_map, ExternalStringMap) \ | 105 V(Map, external_string_map, ExternalStringMap) \ |
(...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2692 friend class LargeObjectSpace; | 2691 friend class LargeObjectSpace; |
2693 friend class NewSpace; | 2692 friend class NewSpace; |
2694 friend class PagedSpace; | 2693 friend class PagedSpace; |
2695 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2694 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2696 }; | 2695 }; |
2697 | 2696 |
2698 } // namespace internal | 2697 } // namespace internal |
2699 } // namespace v8 | 2698 } // namespace v8 |
2700 | 2699 |
2701 #endif // V8_HEAP_HEAP_H_ | 2700 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |