Chromium Code Reviews| 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_H_ | 5 #ifndef V8_HEAP_H_ |
| 6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "allocation.h" | 10 #include "allocation.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 V(JSObject, message_listeners, MessageListeners) \ | 176 V(JSObject, message_listeners, MessageListeners) \ |
| 177 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ | 177 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ |
| 178 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 178 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
| 179 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 179 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
| 180 V(Code, js_entry_code, JsEntryCode) \ | 180 V(Code, js_entry_code, JsEntryCode) \ |
| 181 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 181 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
| 182 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 182 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 183 V(Script, empty_script, EmptyScript) \ | 183 V(Script, empty_script, EmptyScript) \ |
| 184 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 184 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
| 185 V(Cell, undefined_cell, UndefineCell) \ | 185 V(Cell, undefined_cell, UndefineCell) \ |
| 186 V(JSObject, observation_state, ObservationState) \ | 186 V(JSObject, observation_state, ObservationState) \ |
|
dcarney
2014/05/16 17:41:51
unrelated, but is this another context leak?
adamk
2014/05/19 07:47:58
My reading of the code suggests it's not: Factory:
| |
| 187 V(Map, external_map, ExternalMap) \ | 187 V(Map, external_map, ExternalMap) \ |
| 188 V(Object, symbol_registry, SymbolRegistry) \ | 188 V(Object, symbol_registry, SymbolRegistry) \ |
| 189 V(Symbol, frozen_symbol, FrozenSymbol) \ | 189 V(Symbol, frozen_symbol, FrozenSymbol) \ |
| 190 V(Symbol, nonexistent_symbol, NonExistentSymbol) \ | 190 V(Symbol, nonexistent_symbol, NonExistentSymbol) \ |
| 191 V(Symbol, elements_transition_symbol, ElementsTransitionSymbol) \ | 191 V(Symbol, elements_transition_symbol, ElementsTransitionSymbol) \ |
| 192 V(SeededNumberDictionary, empty_slow_element_dictionary, \ | 192 V(SeededNumberDictionary, empty_slow_element_dictionary, \ |
| 193 EmptySlowElementDictionary) \ | 193 EmptySlowElementDictionary) \ |
| 194 V(Symbol, observed_symbol, ObservedSymbol) \ | 194 V(Symbol, observed_symbol, ObservedSymbol) \ |
| 195 V(Symbol, uninitialized_symbol, UninitializedSymbol) \ | 195 V(Symbol, uninitialized_symbol, UninitializedSymbol) \ |
| 196 V(Symbol, megamorphic_symbol, MegamorphicSymbol) \ | 196 V(Symbol, megamorphic_symbol, MegamorphicSymbol) \ |
| 197 V(FixedArray, materialized_objects, MaterializedObjects) \ | 197 V(FixedArray, materialized_objects, MaterializedObjects) \ |
| 198 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ | 198 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ |
| 199 V(JSObject, microtask_state, MicrotaskState) | 199 V(FixedArray, microtask_queue, MicrotaskQueue) |
| 200 | 200 |
| 201 // Entries in this list are limited to Smis and are not visited during GC. | 201 // Entries in this list are limited to Smis and are not visited during GC. |
| 202 #define SMI_ROOT_LIST(V) \ | 202 #define SMI_ROOT_LIST(V) \ |
| 203 V(Smi, stack_limit, StackLimit) \ | 203 V(Smi, stack_limit, StackLimit) \ |
| 204 V(Smi, real_stack_limit, RealStackLimit) \ | 204 V(Smi, real_stack_limit, RealStackLimit) \ |
| 205 V(Smi, last_script_id, LastScriptId) \ | 205 V(Smi, last_script_id, LastScriptId) \ |
| 206 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 206 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
| 207 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 207 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
| 208 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 208 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
| 209 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 209 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
| (...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2819 | 2819 |
| 2820 private: | 2820 private: |
| 2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2822 }; | 2822 }; |
| 2823 #endif // DEBUG | 2823 #endif // DEBUG |
| 2824 | 2824 |
| 2825 } } // namespace v8::internal | 2825 } } // namespace v8::internal |
| 2826 | 2826 |
| 2827 #endif // V8_HEAP_H_ | 2827 #endif // V8_HEAP_H_ |
| OLD | NEW |