Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: src/heap/heap.h

Issue 980523004: Retain maps embedded in optimized code for several garbage collections. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Clear on context disposal Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 V(JSObject, observation_state, ObservationState) \ 176 V(JSObject, observation_state, ObservationState) \
177 V(Map, external_map, ExternalMap) \ 177 V(Map, external_map, ExternalMap) \
178 V(Object, symbol_registry, SymbolRegistry) \ 178 V(Object, symbol_registry, SymbolRegistry) \
179 V(SeededNumberDictionary, empty_slow_element_dictionary, \ 179 V(SeededNumberDictionary, empty_slow_element_dictionary, \
180 EmptySlowElementDictionary) \ 180 EmptySlowElementDictionary) \
181 V(FixedArray, materialized_objects, MaterializedObjects) \ 181 V(FixedArray, materialized_objects, MaterializedObjects) \
182 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ 182 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \
183 V(FixedArray, microtask_queue, MicrotaskQueue) \ 183 V(FixedArray, microtask_queue, MicrotaskQueue) \
184 V(FixedArray, keyed_load_dummy_vector, KeyedLoadDummyVector) \ 184 V(FixedArray, keyed_load_dummy_vector, KeyedLoadDummyVector) \
185 V(FixedArray, detached_contexts, DetachedContexts) \ 185 V(FixedArray, detached_contexts, DetachedContexts) \
186 V(ArrayList, retained_maps, RetainedMaps) \
186 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) 187 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable)
187 188
188 // Entries in this list are limited to Smis and are not visited during GC. 189 // Entries in this list are limited to Smis and are not visited during GC.
189 #define SMI_ROOT_LIST(V) \ 190 #define SMI_ROOT_LIST(V) \
190 V(Smi, stack_limit, StackLimit) \ 191 V(Smi, stack_limit, StackLimit) \
191 V(Smi, real_stack_limit, RealStackLimit) \ 192 V(Smi, real_stack_limit, RealStackLimit) \
192 V(Smi, last_script_id, LastScriptId) \ 193 V(Smi, last_script_id, LastScriptId) \
193 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 194 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
194 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ 195 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \
195 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ 196 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 1433
1433 private: 1434 private:
1434 Heap* heap_; 1435 Heap* heap_;
1435 }; 1436 };
1436 1437
1437 void AddWeakObjectToCodeDependency(Handle<HeapObject> obj, 1438 void AddWeakObjectToCodeDependency(Handle<HeapObject> obj,
1438 Handle<DependentCode> dep); 1439 Handle<DependentCode> dep);
1439 1440
1440 DependentCode* LookupWeakObjectToCodeDependency(Handle<HeapObject> obj); 1441 DependentCode* LookupWeakObjectToCodeDependency(Handle<HeapObject> obj);
1441 1442
1443 void AddRetainedMap(Handle<Map> map);
1444
1442 static void FatalProcessOutOfMemory(const char* location, 1445 static void FatalProcessOutOfMemory(const char* location,
1443 bool take_snapshot = false); 1446 bool take_snapshot = false);
1444 1447
1445 // This event is triggered after successful allocation of a new object made 1448 // This event is triggered after successful allocation of a new object made
1446 // by runtime. Allocations of target space for object evacuation do not 1449 // by runtime. Allocations of target space for object evacuation do not
1447 // trigger the event. In order to track ALL allocations one must turn off 1450 // trigger the event. In order to track ALL allocations one must turn off
1448 // FLAG_inline_new and FLAG_use_allocation_folding. 1451 // FLAG_inline_new and FLAG_use_allocation_folding.
1449 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); 1452 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes);
1450 1453
1451 // This event is triggered after object is moved to a new place. 1454 // This event is triggered after object is moved to a new place.
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2580 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2578 2581
2579 private: 2582 private:
2580 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2583 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2581 }; 2584 };
2582 #endif // DEBUG 2585 #endif // DEBUG
2583 } 2586 }
2584 } // namespace v8::internal 2587 } // namespace v8::internal
2585 2588
2586 #endif // V8_HEAP_HEAP_H_ 2589 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698