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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 V(Map, heap_number_map, HeapNumberMap) \ | 58 V(Map, heap_number_map, HeapNumberMap) \ |
59 V(Map, transition_array_map, TransitionArrayMap) \ | 59 V(Map, transition_array_map, TransitionArrayMap) \ |
60 V(FixedArray, empty_literals_array, EmptyLiteralsArray) \ | 60 V(FixedArray, empty_literals_array, EmptyLiteralsArray) \ |
61 V(FixedArray, empty_type_feedback_vector, EmptyTypeFeedbackVector) \ | 61 V(FixedArray, empty_type_feedback_vector, EmptyTypeFeedbackVector) \ |
62 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 62 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
63 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ | 63 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
64 /* Entries beyond the first 32 */ \ | 64 /* Entries beyond the first 32 */ \ |
65 /* The roots above this line should be boring from a GC point of view. */ \ | 65 /* The roots above this line should be boring from a GC point of view. */ \ |
66 /* This means they are never in new space and never on a page that is */ \ | 66 /* This means they are never in new space and never on a page that is */ \ |
67 /* being compacted. */ \ | 67 /* being compacted. */ \ |
| 68 /* Empty scope info */ \ |
| 69 V(ScopeInfo, empty_scope_info, EmptyScopeInfo) \ |
68 /* Oddballs */ \ | 70 /* Oddballs */ \ |
69 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 71 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
70 V(Oddball, arguments_marker, ArgumentsMarker) \ | 72 V(Oddball, arguments_marker, ArgumentsMarker) \ |
71 V(Oddball, exception, Exception) \ | 73 V(Oddball, exception, Exception) \ |
72 V(Oddball, termination_exception, TerminationException) \ | 74 V(Oddball, termination_exception, TerminationException) \ |
73 V(Oddball, optimized_out, OptimizedOut) \ | 75 V(Oddball, optimized_out, OptimizedOut) \ |
74 V(Oddball, stale_register, StaleRegister) \ | 76 V(Oddball, stale_register, StaleRegister) \ |
75 /* Context maps */ \ | 77 /* Context maps */ \ |
76 V(Map, native_context_map, NativeContextMap) \ | 78 V(Map, native_context_map, NativeContextMap) \ |
77 V(Map, module_context_map, ModuleContextMap) \ | 79 V(Map, module_context_map, ModuleContextMap) \ |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 V(Map, int32x4_map, Int32x4Map) \ | 135 V(Map, int32x4_map, Int32x4Map) \ |
134 V(Map, uint32x4_map, Uint32x4Map) \ | 136 V(Map, uint32x4_map, Uint32x4Map) \ |
135 V(Map, bool32x4_map, Bool32x4Map) \ | 137 V(Map, bool32x4_map, Bool32x4Map) \ |
136 V(Map, int16x8_map, Int16x8Map) \ | 138 V(Map, int16x8_map, Int16x8Map) \ |
137 V(Map, uint16x8_map, Uint16x8Map) \ | 139 V(Map, uint16x8_map, Uint16x8Map) \ |
138 V(Map, bool16x8_map, Bool16x8Map) \ | 140 V(Map, bool16x8_map, Bool16x8Map) \ |
139 V(Map, int8x16_map, Int8x16Map) \ | 141 V(Map, int8x16_map, Int8x16Map) \ |
140 V(Map, uint8x16_map, Uint8x16Map) \ | 142 V(Map, uint8x16_map, Uint8x16Map) \ |
141 V(Map, bool8x16_map, Bool8x16Map) \ | 143 V(Map, bool8x16_map, Bool8x16Map) \ |
142 /* Canonical empty values */ \ | 144 /* Canonical empty values */ \ |
143 V(ScopeInfo, empty_scope_info, EmptyScopeInfo) \ | |
144 V(ByteArray, empty_byte_array, EmptyByteArray) \ | 145 V(ByteArray, empty_byte_array, EmptyByteArray) \ |
145 V(FixedTypedArrayBase, empty_fixed_uint8_array, EmptyFixedUint8Array) \ | 146 V(FixedTypedArrayBase, empty_fixed_uint8_array, EmptyFixedUint8Array) \ |
146 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \ | 147 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \ |
147 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \ | 148 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \ |
148 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \ | 149 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \ |
149 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \ | 150 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \ |
150 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \ | 151 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \ |
151 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \ | 152 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \ |
152 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \ | 153 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \ |
153 V(FixedTypedArrayBase, empty_fixed_uint8_clamped_array, \ | 154 V(FixedTypedArrayBase, empty_fixed_uint8_clamped_array, \ |
(...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2643 } | 2644 } |
2644 | 2645 |
2645 private: | 2646 private: |
2646 Heap* heap_; | 2647 Heap* heap_; |
2647 }; | 2648 }; |
2648 | 2649 |
2649 } // namespace internal | 2650 } // namespace internal |
2650 } // namespace v8 | 2651 } // namespace v8 |
2651 | 2652 |
2652 #endif // V8_HEAP_HEAP_H_ | 2653 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |