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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 159 V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
160 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 160 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
161 V(Code, js_entry_code, JsEntryCode) \ | 161 V(Code, js_entry_code, JsEntryCode) \ |
162 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 162 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
163 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 163 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
164 V(FixedArray, experimental_natives_source_cache, \ | 164 V(FixedArray, experimental_natives_source_cache, \ |
165 ExperimentalNativesSourceCache) \ | 165 ExperimentalNativesSourceCache) \ |
166 V(FixedArray, extra_natives_source_cache, ExtraNativesSourceCache) \ | 166 V(FixedArray, extra_natives_source_cache, ExtraNativesSourceCache) \ |
167 V(FixedArray, experimental_extra_natives_source_cache, \ | 167 V(FixedArray, experimental_extra_natives_source_cache, \ |
168 ExperimentalExtraNativesSourceCache) \ | 168 ExperimentalExtraNativesSourceCache) \ |
169 V(FixedArray, code_stub_natives_source_cache, CodeStubNativesSourceCache) \ | |
170 V(Script, empty_script, EmptyScript) \ | 169 V(Script, empty_script, EmptyScript) \ |
171 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 170 V(NameDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
172 V(Cell, undefined_cell, UndefinedCell) \ | 171 V(Cell, undefined_cell, UndefinedCell) \ |
173 V(JSObject, observation_state, ObservationState) \ | 172 V(JSObject, observation_state, ObservationState) \ |
174 V(Object, symbol_registry, SymbolRegistry) \ | 173 V(Object, symbol_registry, SymbolRegistry) \ |
175 V(Object, script_list, ScriptList) \ | 174 V(Object, script_list, ScriptList) \ |
176 V(SeededNumberDictionary, empty_slow_element_dictionary, \ | 175 V(SeededNumberDictionary, empty_slow_element_dictionary, \ |
177 EmptySlowElementDictionary) \ | 176 EmptySlowElementDictionary) \ |
178 V(FixedArray, materialized_objects, MaterializedObjects) \ | 177 V(FixedArray, materialized_objects, MaterializedObjects) \ |
179 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ | 178 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ |
180 V(FixedArray, microtask_queue, MicrotaskQueue) \ | 179 V(FixedArray, microtask_queue, MicrotaskQueue) \ |
181 V(TypeFeedbackVector, dummy_vector, DummyVector) \ | 180 V(TypeFeedbackVector, dummy_vector, DummyVector) \ |
182 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ | 181 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ |
183 V(FixedArray, detached_contexts, DetachedContexts) \ | 182 V(FixedArray, detached_contexts, DetachedContexts) \ |
184 V(ArrayList, retained_maps, RetainedMaps) \ | 183 V(ArrayList, retained_maps, RetainedMaps) \ |
185 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ | 184 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ |
186 V(PropertyCell, array_protector, ArrayProtector) \ | 185 V(PropertyCell, array_protector, ArrayProtector) \ |
187 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ | 186 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ |
188 V(Object, weak_stack_trace_list, WeakStackTraceList) \ | 187 V(Object, weak_stack_trace_list, WeakStackTraceList) \ |
189 V(Object, code_stub_context, CodeStubContext) \ | |
190 V(JSObject, code_stub_exports_object, CodeStubExportsObject) \ | |
191 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ | 188 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ |
192 V(FixedArray, interpreter_table, InterpreterTable) \ | 189 V(FixedArray, interpreter_table, InterpreterTable) \ |
193 V(Map, bytecode_array_map, BytecodeArrayMap) \ | 190 V(Map, bytecode_array_map, BytecodeArrayMap) \ |
194 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) | 191 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) |
195 | 192 |
196 | 193 |
197 // Entries in this list are limited to Smis and are not visited during GC. | 194 // Entries in this list are limited to Smis and are not visited during GC. |
198 #define SMI_ROOT_LIST(V) \ | 195 #define SMI_ROOT_LIST(V) \ |
199 V(Smi, stack_limit, StackLimit) \ | 196 V(Smi, stack_limit, StackLimit) \ |
200 V(Smi, real_stack_limit, RealStackLimit) \ | 197 V(Smi, real_stack_limit, RealStackLimit) \ |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1143 |
1147 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). | 1144 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). |
1148 void SetRootNonMonomorphicCache(UnseededNumberDictionary* value) { | 1145 void SetRootNonMonomorphicCache(UnseededNumberDictionary* value) { |
1149 roots_[kNonMonomorphicCacheRootIndex] = value; | 1146 roots_[kNonMonomorphicCacheRootIndex] = value; |
1150 } | 1147 } |
1151 | 1148 |
1152 void SetRootMaterializedObjects(FixedArray* objects) { | 1149 void SetRootMaterializedObjects(FixedArray* objects) { |
1153 roots_[kMaterializedObjectsRootIndex] = objects; | 1150 roots_[kMaterializedObjectsRootIndex] = objects; |
1154 } | 1151 } |
1155 | 1152 |
1156 void SetRootCodeStubContext(Object* value) { | |
1157 roots_[kCodeStubContextRootIndex] = value; | |
1158 } | |
1159 | |
1160 void SetRootCodeStubExportsObject(JSObject* value) { | |
1161 roots_[kCodeStubExportsObjectRootIndex] = value; | |
1162 } | |
1163 | |
1164 void SetRootScriptList(Object* value) { | 1153 void SetRootScriptList(Object* value) { |
1165 roots_[kScriptListRootIndex] = value; | 1154 roots_[kScriptListRootIndex] = value; |
1166 } | 1155 } |
1167 | 1156 |
1168 void SetRootStringTable(StringTable* value) { | 1157 void SetRootStringTable(StringTable* value) { |
1169 roots_[kStringTableRootIndex] = value; | 1158 roots_[kStringTableRootIndex] = value; |
1170 } | 1159 } |
1171 | 1160 |
1172 void SetRootNoScriptSharedFunctionInfos(Object* value) { | 1161 void SetRootNoScriptSharedFunctionInfos(Object* value) { |
1173 roots_[kNoScriptSharedFunctionInfosRootIndex] = value; | 1162 roots_[kNoScriptSharedFunctionInfosRootIndex] = value; |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2729 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2718 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2730 | 2719 |
2731 private: | 2720 private: |
2732 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2721 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2733 }; | 2722 }; |
2734 #endif // DEBUG | 2723 #endif // DEBUG |
2735 } // namespace internal | 2724 } // namespace internal |
2736 } // namespace v8 | 2725 } // namespace v8 |
2737 | 2726 |
2738 #endif // V8_HEAP_HEAP_H_ | 2727 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |