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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 20 matching lines...) Expand all Loading... | |
31 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ | 31 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ |
32 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ | 32 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ |
33 /* Cluster the most popular ones in a few cache lines here at the top. */ \ | 33 /* Cluster the most popular ones in a few cache lines here at the top. */ \ |
34 V(Smi, store_buffer_top, StoreBufferTop) \ | 34 V(Smi, store_buffer_top, StoreBufferTop) \ |
35 V(Oddball, undefined_value, UndefinedValue) \ | 35 V(Oddball, undefined_value, UndefinedValue) \ |
36 V(Oddball, the_hole_value, TheHoleValue) \ | 36 V(Oddball, the_hole_value, TheHoleValue) \ |
37 V(Oddball, null_value, NullValue) \ | 37 V(Oddball, null_value, NullValue) \ |
38 V(Oddball, true_value, TrueValue) \ | 38 V(Oddball, true_value, TrueValue) \ |
39 V(Oddball, false_value, FalseValue) \ | 39 V(Oddball, false_value, FalseValue) \ |
40 V(Oddball, uninitialized_value, UninitializedValue) \ | 40 V(Oddball, uninitialized_value, UninitializedValue) \ |
41 V(Oddball, exception, Exception) \ | |
42 V(Map, cell_map, CellMap) \ | 41 V(Map, cell_map, CellMap) \ |
43 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 42 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
44 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 43 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
45 V(Map, meta_map, MetaMap) \ | 44 V(Map, meta_map, MetaMap) \ |
46 V(Map, heap_number_map, HeapNumberMap) \ | 45 V(Map, heap_number_map, HeapNumberMap) \ |
47 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ | 46 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ |
48 V(Map, native_context_map, NativeContextMap) \ | 47 V(Map, native_context_map, NativeContextMap) \ |
49 V(Map, fixed_array_map, FixedArrayMap) \ | 48 V(Map, fixed_array_map, FixedArrayMap) \ |
50 V(Map, code_map, CodeMap) \ | 49 V(Map, code_map, CodeMap) \ |
51 V(Map, scope_info_map, ScopeInfoMap) \ | 50 V(Map, scope_info_map, ScopeInfoMap) \ |
52 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ | 51 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
53 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 52 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
54 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ | 53 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ |
55 V(Map, weak_cell_map, WeakCellMap) \ | 54 V(Map, weak_cell_map, WeakCellMap) \ |
56 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 55 V(Map, one_byte_string_map, OneByteStringMap) \ |
57 V(Map, hash_table_map, HashTableMap) \ | 56 V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \ |
58 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ | 57 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ |
Erik Corry
2015/03/19 12:14:06
If these are frequent in the snapshot perhaps we s
| |
59 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 58 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
60 V(ByteArray, empty_byte_array, EmptyByteArray) \ | 59 V(ByteArray, empty_byte_array, EmptyByteArray) \ |
61 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ | 60 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
62 V(ConstantPoolArray, empty_constant_pool_array, EmptyConstantPoolArray) \ | 61 V(ConstantPoolArray, empty_constant_pool_array, EmptyConstantPoolArray) \ |
63 V(Oddball, arguments_marker, ArgumentsMarker) \ | |
64 /* The roots above this line should be boring from a GC point of view. */ \ | 62 /* The roots above this line should be boring from a GC point of view. */ \ |
65 /* This means they are never in new space and never on a page that is */ \ | 63 /* This means they are never in new space and never on a page that is */ \ |
66 /* being compacted. */ \ | 64 /* being compacted. */ \ |
65 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | |
66 V(Oddball, arguments_marker, ArgumentsMarker) \ | |
67 V(Oddball, exception, Exception) \ | |
68 V(Oddball, termination_exception, TerminationException) \ | |
67 V(FixedArray, number_string_cache, NumberStringCache) \ | 69 V(FixedArray, number_string_cache, NumberStringCache) \ |
68 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ | 70 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ |
69 V(Object, instanceof_cache_map, InstanceofCacheMap) \ | 71 V(Object, instanceof_cache_map, InstanceofCacheMap) \ |
70 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ | 72 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ |
71 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 73 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
72 V(FixedArray, string_split_cache, StringSplitCache) \ | 74 V(FixedArray, string_split_cache, StringSplitCache) \ |
73 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \ | 75 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \ |
74 V(Oddball, termination_exception, TerminationException) \ | |
75 V(Smi, hash_seed, HashSeed) \ | 76 V(Smi, hash_seed, HashSeed) \ |
77 V(Map, hash_table_map, HashTableMap) \ | |
78 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ | |
76 V(Map, symbol_map, SymbolMap) \ | 79 V(Map, symbol_map, SymbolMap) \ |
77 V(Map, string_map, StringMap) \ | 80 V(Map, string_map, StringMap) \ |
78 V(Map, one_byte_string_map, OneByteStringMap) \ | |
79 V(Map, cons_string_map, ConsStringMap) \ | 81 V(Map, cons_string_map, ConsStringMap) \ |
80 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ | |
81 V(Map, sliced_string_map, SlicedStringMap) \ | 82 V(Map, sliced_string_map, SlicedStringMap) \ |
82 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ | 83 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ |
83 V(Map, external_string_map, ExternalStringMap) \ | 84 V(Map, external_string_map, ExternalStringMap) \ |
84 V(Map, external_string_with_one_byte_data_map, \ | 85 V(Map, external_string_with_one_byte_data_map, \ |
85 ExternalStringWithOneByteDataMap) \ | 86 ExternalStringWithOneByteDataMap) \ |
86 V(Map, external_one_byte_string_map, ExternalOneByteStringMap) \ | 87 V(Map, external_one_byte_string_map, ExternalOneByteStringMap) \ |
87 V(Map, native_source_string_map, NativeSourceStringMap) \ | 88 V(Map, native_source_string_map, NativeSourceStringMap) \ |
88 V(Map, short_external_string_map, ShortExternalStringMap) \ | 89 V(Map, short_external_string_map, ShortExternalStringMap) \ |
89 V(Map, short_external_string_with_one_byte_data_map, \ | 90 V(Map, short_external_string_with_one_byte_data_map, \ |
90 ShortExternalStringWithOneByteDataMap) \ | 91 ShortExternalStringWithOneByteDataMap) \ |
91 V(Map, internalized_string_map, InternalizedStringMap) \ | 92 V(Map, internalized_string_map, InternalizedStringMap) \ |
92 V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \ | |
93 V(Map, external_internalized_string_map, ExternalInternalizedStringMap) \ | 93 V(Map, external_internalized_string_map, ExternalInternalizedStringMap) \ |
94 V(Map, external_internalized_string_with_one_byte_data_map, \ | 94 V(Map, external_internalized_string_with_one_byte_data_map, \ |
95 ExternalInternalizedStringWithOneByteDataMap) \ | 95 ExternalInternalizedStringWithOneByteDataMap) \ |
96 V(Map, external_one_byte_internalized_string_map, \ | 96 V(Map, external_one_byte_internalized_string_map, \ |
97 ExternalOneByteInternalizedStringMap) \ | 97 ExternalOneByteInternalizedStringMap) \ |
98 V(Map, short_external_internalized_string_map, \ | 98 V(Map, short_external_internalized_string_map, \ |
99 ShortExternalInternalizedStringMap) \ | 99 ShortExternalInternalizedStringMap) \ |
100 V(Map, short_external_internalized_string_with_one_byte_data_map, \ | 100 V(Map, short_external_internalized_string_with_one_byte_data_map, \ |
101 ShortExternalInternalizedStringWithOneByteDataMap) \ | 101 ShortExternalInternalizedStringWithOneByteDataMap) \ |
102 V(Map, short_external_one_byte_internalized_string_map, \ | 102 V(Map, short_external_one_byte_internalized_string_map, \ |
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2593 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2593 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2594 | 2594 |
2595 private: | 2595 private: |
2596 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2596 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2597 }; | 2597 }; |
2598 #endif // DEBUG | 2598 #endif // DEBUG |
2599 } | 2599 } |
2600 } // namespace v8::internal | 2600 } // namespace v8::internal |
2601 | 2601 |
2602 #endif // V8_HEAP_HEAP_H_ | 2602 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |