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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ | 183 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ |
184 V(FixedArray, detached_contexts, DetachedContexts) \ | 184 V(FixedArray, detached_contexts, DetachedContexts) \ |
185 V(ArrayList, retained_maps, RetainedMaps) \ | 185 V(ArrayList, retained_maps, RetainedMaps) \ |
186 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ | 186 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ |
187 V(PropertyCell, array_protector, ArrayProtector) \ | 187 V(PropertyCell, array_protector, ArrayProtector) \ |
188 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ | 188 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ |
189 V(Object, weak_stack_trace_list, WeakStackTraceList) \ | 189 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
190 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 190 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
191 V(FixedArray, interpreter_table, InterpreterTable) \ | 191 V(FixedArray, interpreter_table, InterpreterTable) \ |
192 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 192 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
193 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ | 193 V(WeakCell, empty_weak_cell, EmptyWeakCell) |
194 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) | |
195 | |
196 | 194 |
197 // Entries in this list are limited to Smis and are not visited during GC. | 195 // Entries in this list are limited to Smis and are not visited during GC. |
198 #define SMI_ROOT_LIST(V) \ | 196 #define SMI_ROOT_LIST(V) \ |
199 V(Smi, stack_limit, StackLimit) \ | 197 V(Smi, stack_limit, StackLimit) \ |
200 V(Smi, real_stack_limit, RealStackLimit) \ | 198 V(Smi, real_stack_limit, RealStackLimit) \ |
201 V(Smi, last_script_id, LastScriptId) \ | 199 V(Smi, last_script_id, LastScriptId) \ |
202 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 200 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
203 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 201 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
204 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 202 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
205 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 203 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 V(ScopeInfoMap) \ | 245 V(ScopeInfoMap) \ |
248 V(FixedCOWArrayMap) \ | 246 V(FixedCOWArrayMap) \ |
249 V(FixedDoubleArrayMap) \ | 247 V(FixedDoubleArrayMap) \ |
250 V(WeakCellMap) \ | 248 V(WeakCellMap) \ |
251 V(TransitionArrayMap) \ | 249 V(TransitionArrayMap) \ |
252 V(NoInterceptorResultSentinel) \ | 250 V(NoInterceptorResultSentinel) \ |
253 V(HashTableMap) \ | 251 V(HashTableMap) \ |
254 V(OrderedHashTableMap) \ | 252 V(OrderedHashTableMap) \ |
255 V(EmptyFixedArray) \ | 253 V(EmptyFixedArray) \ |
256 V(EmptyByteArray) \ | 254 V(EmptyByteArray) \ |
257 V(EmptyBytecodeArray) \ | |
258 V(EmptyDescriptorArray) \ | 255 V(EmptyDescriptorArray) \ |
259 V(ArgumentsMarker) \ | 256 V(ArgumentsMarker) \ |
260 V(SymbolMap) \ | 257 V(SymbolMap) \ |
261 V(SloppyArgumentsElementsMap) \ | 258 V(SloppyArgumentsElementsMap) \ |
262 V(FunctionContextMap) \ | 259 V(FunctionContextMap) \ |
263 V(CatchContextMap) \ | 260 V(CatchContextMap) \ |
264 V(WithContextMap) \ | 261 V(WithContextMap) \ |
265 V(BlockContextMap) \ | 262 V(BlockContextMap) \ |
266 V(ModuleContextMap) \ | 263 V(ModuleContextMap) \ |
267 V(ScriptContextMap) \ | 264 V(ScriptContextMap) \ |
(...skipping 2388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 | 2653 |
2657 private: | 2654 private: |
2658 friend class NewSpace; | 2655 friend class NewSpace; |
2659 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); | 2656 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); |
2660 }; | 2657 }; |
2661 | 2658 |
2662 } // namespace internal | 2659 } // namespace internal |
2663 } // namespace v8 | 2660 } // namespace v8 |
2664 | 2661 |
2665 #endif // V8_HEAP_HEAP_H_ | 2662 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |