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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 V(Map, native_context_map, NativeContextMap) \ | 47 V(Map, native_context_map, NativeContextMap) \ |
48 V(Map, fixed_array_map, FixedArrayMap) \ | 48 V(Map, fixed_array_map, FixedArrayMap) \ |
49 V(Map, code_map, CodeMap) \ | 49 V(Map, code_map, CodeMap) \ |
50 V(Map, scope_info_map, ScopeInfoMap) \ | 50 V(Map, scope_info_map, ScopeInfoMap) \ |
51 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ | 51 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
52 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 52 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
53 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ | 53 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ |
54 V(Map, weak_cell_map, WeakCellMap) \ | 54 V(Map, weak_cell_map, WeakCellMap) \ |
55 V(Map, one_byte_string_map, OneByteStringMap) \ | 55 V(Map, one_byte_string_map, OneByteStringMap) \ |
56 V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \ | 56 V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \ |
57 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ | 57 V(Map, function_context_map, FunctionContextMap) \ |
58 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 58 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
59 V(ByteArray, empty_byte_array, EmptyByteArray) \ | 59 V(ByteArray, empty_byte_array, EmptyByteArray) \ |
60 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ | 60 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
61 V(ConstantPoolArray, empty_constant_pool_array, EmptyConstantPoolArray) \ | 61 V(ConstantPoolArray, empty_constant_pool_array, EmptyConstantPoolArray) \ |
62 /* 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. */ \ |
63 /* 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 */ \ |
64 /* being compacted. */ \ | 64 /* being compacted. */ \ |
65 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 65 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
66 V(Oddball, arguments_marker, ArgumentsMarker) \ | 66 V(Oddball, arguments_marker, ArgumentsMarker) \ |
67 V(Oddball, exception, Exception) \ | 67 V(Oddball, exception, Exception) \ |
68 V(Oddball, termination_exception, TerminationException) \ | 68 V(Oddball, termination_exception, TerminationException) \ |
69 V(FixedArray, number_string_cache, NumberStringCache) \ | 69 V(FixedArray, number_string_cache, NumberStringCache) \ |
70 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ | 70 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ |
71 V(Object, instanceof_cache_map, InstanceofCacheMap) \ | 71 V(Object, instanceof_cache_map, InstanceofCacheMap) \ |
72 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ | 72 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ |
73 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 73 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
74 V(FixedArray, string_split_cache, StringSplitCache) \ | 74 V(FixedArray, string_split_cache, StringSplitCache) \ |
75 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \ | 75 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \ |
76 V(Smi, hash_seed, HashSeed) \ | 76 V(Smi, hash_seed, HashSeed) \ |
77 V(Map, hash_table_map, HashTableMap) \ | 77 V(Map, hash_table_map, HashTableMap) \ |
78 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ | 78 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ |
79 V(Map, symbol_map, SymbolMap) \ | 79 V(Map, symbol_map, SymbolMap) \ |
80 V(Map, string_map, StringMap) \ | 80 V(Map, string_map, StringMap) \ |
| 81 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ |
81 V(Map, cons_string_map, ConsStringMap) \ | 82 V(Map, cons_string_map, ConsStringMap) \ |
82 V(Map, sliced_string_map, SlicedStringMap) \ | 83 V(Map, sliced_string_map, SlicedStringMap) \ |
83 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ | 84 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ |
84 V(Map, external_string_map, ExternalStringMap) \ | 85 V(Map, external_string_map, ExternalStringMap) \ |
85 V(Map, external_string_with_one_byte_data_map, \ | 86 V(Map, external_string_with_one_byte_data_map, \ |
86 ExternalStringWithOneByteDataMap) \ | 87 ExternalStringWithOneByteDataMap) \ |
87 V(Map, external_one_byte_string_map, ExternalOneByteStringMap) \ | 88 V(Map, external_one_byte_string_map, ExternalOneByteStringMap) \ |
88 V(Map, native_source_string_map, NativeSourceStringMap) \ | 89 V(Map, native_source_string_map, NativeSourceStringMap) \ |
89 V(Map, short_external_string_map, ShortExternalStringMap) \ | 90 V(Map, short_external_string_map, ShortExternalStringMap) \ |
90 V(Map, short_external_string_with_one_byte_data_map, \ | 91 V(Map, short_external_string_with_one_byte_data_map, \ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \ | 135 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \ |
135 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \ | 136 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \ |
136 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \ | 137 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \ |
137 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \ | 138 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \ |
138 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \ | 139 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \ |
139 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \ | 140 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \ |
140 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \ | 141 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \ |
141 V(FixedTypedArrayBase, empty_fixed_uint8_clamped_array, \ | 142 V(FixedTypedArrayBase, empty_fixed_uint8_clamped_array, \ |
142 EmptyFixedUint8ClampedArray) \ | 143 EmptyFixedUint8ClampedArray) \ |
143 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ | 144 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ |
144 V(Map, function_context_map, FunctionContextMap) \ | |
145 V(Map, catch_context_map, CatchContextMap) \ | 145 V(Map, catch_context_map, CatchContextMap) \ |
146 V(Map, with_context_map, WithContextMap) \ | 146 V(Map, with_context_map, WithContextMap) \ |
147 V(Map, block_context_map, BlockContextMap) \ | 147 V(Map, block_context_map, BlockContextMap) \ |
148 V(Map, module_context_map, ModuleContextMap) \ | 148 V(Map, module_context_map, ModuleContextMap) \ |
149 V(Map, script_context_map, ScriptContextMap) \ | 149 V(Map, script_context_map, ScriptContextMap) \ |
150 V(Map, script_context_table_map, ScriptContextTableMap) \ | 150 V(Map, script_context_table_map, ScriptContextTableMap) \ |
151 V(Map, undefined_map, UndefinedMap) \ | 151 V(Map, undefined_map, UndefinedMap) \ |
152 V(Map, the_hole_map, TheHoleMap) \ | 152 V(Map, the_hole_map, TheHoleMap) \ |
153 V(Map, null_map, NullMap) \ | 153 V(Map, null_map, NullMap) \ |
154 V(Map, boolean_map, BooleanMap) \ | 154 V(Map, boolean_map, BooleanMap) \ |
(...skipping 2438 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 |