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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 V(JSObject, message_listeners, MessageListeners) \ | 170 V(JSObject, message_listeners, MessageListeners) \ |
171 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ | 171 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ |
172 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 172 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
173 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 173 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
174 V(Code, js_entry_code, JsEntryCode) \ | 174 V(Code, js_entry_code, JsEntryCode) \ |
175 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 175 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
176 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 176 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
177 V(FixedArray, experimental_natives_source_cache, \ | 177 V(FixedArray, experimental_natives_source_cache, \ |
178 ExperimentalNativesSourceCache) \ | 178 ExperimentalNativesSourceCache) \ |
179 V(FixedArray, extra_natives_source_cache, ExtraNativesSourceCache) \ | 179 V(FixedArray, extra_natives_source_cache, ExtraNativesSourceCache) \ |
| 180 V(FixedArray, code_stub_natives_source_cache, CodeStubNativesSourceCache) \ |
180 V(Script, empty_script, EmptyScript) \ | 181 V(Script, empty_script, EmptyScript) \ |
181 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 182 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
182 V(Cell, undefined_cell, UndefinedCell) \ | 183 V(Cell, undefined_cell, UndefinedCell) \ |
183 V(JSObject, observation_state, ObservationState) \ | 184 V(JSObject, observation_state, ObservationState) \ |
184 V(Object, symbol_registry, SymbolRegistry) \ | 185 V(Object, symbol_registry, SymbolRegistry) \ |
185 V(SeededNumberDictionary, empty_slow_element_dictionary, \ | 186 V(SeededNumberDictionary, empty_slow_element_dictionary, \ |
186 EmptySlowElementDictionary) \ | 187 EmptySlowElementDictionary) \ |
187 V(FixedArray, materialized_objects, MaterializedObjects) \ | 188 V(FixedArray, materialized_objects, MaterializedObjects) \ |
188 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ | 189 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ |
189 V(FixedArray, microtask_queue, MicrotaskQueue) \ | 190 V(FixedArray, microtask_queue, MicrotaskQueue) \ |
190 V(FixedArray, keyed_load_dummy_vector, KeyedLoadDummyVector) \ | 191 V(FixedArray, keyed_load_dummy_vector, KeyedLoadDummyVector) \ |
191 V(FixedArray, keyed_store_dummy_vector, KeyedStoreDummyVector) \ | 192 V(FixedArray, keyed_store_dummy_vector, KeyedStoreDummyVector) \ |
192 V(FixedArray, detached_contexts, DetachedContexts) \ | 193 V(FixedArray, detached_contexts, DetachedContexts) \ |
193 V(ArrayList, retained_maps, RetainedMaps) \ | 194 V(ArrayList, retained_maps, RetainedMaps) \ |
194 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ | 195 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ |
195 V(PropertyCell, array_protector, ArrayProtector) \ | 196 V(PropertyCell, array_protector, ArrayProtector) \ |
196 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ | 197 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ |
197 V(Object, weak_stack_trace_list, WeakStackTraceList) | 198 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
| 199 V(Object, code_stub_context, CodeStubContext) \ |
| 200 V(JSObject, code_stub_exports_object, CodeStubExportsObject) |
198 | 201 |
199 // Entries in this list are limited to Smis and are not visited during GC. | 202 // Entries in this list are limited to Smis and are not visited during GC. |
200 #define SMI_ROOT_LIST(V) \ | 203 #define SMI_ROOT_LIST(V) \ |
201 V(Smi, stack_limit, StackLimit) \ | 204 V(Smi, stack_limit, StackLimit) \ |
202 V(Smi, real_stack_limit, RealStackLimit) \ | 205 V(Smi, real_stack_limit, RealStackLimit) \ |
203 V(Smi, last_script_id, LastScriptId) \ | 206 V(Smi, last_script_id, LastScriptId) \ |
204 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 207 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
205 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 208 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
206 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 209 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
207 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 210 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2405 // Since mark/compact also evacuates the new space, all pointers in the | 2408 // Since mark/compact also evacuates the new space, all pointers in the |
2406 // |live_array_buffers_for_scavenge_| list are also in the | 2409 // |live_array_buffers_for_scavenge_| list are also in the |
2407 // |live_array_buffers_| list. | 2410 // |live_array_buffers_| list. |
2408 std::map<void*, size_t> live_array_buffers_for_scavenge_; | 2411 std::map<void*, size_t> live_array_buffers_for_scavenge_; |
2409 std::map<void*, size_t> not_yet_discovered_array_buffers_for_scavenge_; | 2412 std::map<void*, size_t> not_yet_discovered_array_buffers_for_scavenge_; |
2410 | 2413 |
2411 struct StrongRootsList; | 2414 struct StrongRootsList; |
2412 StrongRootsList* strong_roots_list_; | 2415 StrongRootsList* strong_roots_list_; |
2413 | 2416 |
2414 friend class AlwaysAllocateScope; | 2417 friend class AlwaysAllocateScope; |
| 2418 friend class Bootstrapper; |
2415 friend class Deserializer; | 2419 friend class Deserializer; |
2416 friend class Factory; | 2420 friend class Factory; |
2417 friend class GCCallbacksScope; | 2421 friend class GCCallbacksScope; |
2418 friend class GCTracer; | 2422 friend class GCTracer; |
2419 friend class HeapIterator; | 2423 friend class HeapIterator; |
2420 friend class Isolate; | 2424 friend class Isolate; |
2421 friend class MarkCompactCollector; | 2425 friend class MarkCompactCollector; |
2422 friend class MarkCompactMarkingVisitor; | 2426 friend class MarkCompactMarkingVisitor; |
2423 friend class MapCompact; | 2427 friend class MapCompact; |
2424 friend class Page; | 2428 friend class Page; |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2871 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2868 | 2872 |
2869 private: | 2873 private: |
2870 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2874 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2871 }; | 2875 }; |
2872 #endif // DEBUG | 2876 #endif // DEBUG |
2873 } | 2877 } |
2874 } // namespace v8::internal | 2878 } // namespace v8::internal |
2875 | 2879 |
2876 #endif // V8_HEAP_HEAP_H_ | 2880 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |