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

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: Check constructor. 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(Cell, undefined_cell, UndefinedCell) \ 176 V(Cell, undefined_cell, UndefinedCell) \
177 V(JSObject, observation_state, ObservationState) \ 177 V(JSObject, observation_state, ObservationState) \
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 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 1443
1443 private: 1444 private:
1444 Heap* heap_; 1445 Heap* heap_;
1445 }; 1446 };
1446 1447
1447 void AddWeakObjectToCodeDependency(Handle<HeapObject> obj, 1448 void AddWeakObjectToCodeDependency(Handle<HeapObject> obj,
1448 Handle<DependentCode> dep); 1449 Handle<DependentCode> dep);
1449 1450
1450 DependentCode* LookupWeakObjectToCodeDependency(Handle<HeapObject> obj); 1451 DependentCode* LookupWeakObjectToCodeDependency(Handle<HeapObject> obj);
1451 1452
1453 void AddRetainedMap(Handle<Map> map);
1454
1452 static void FatalProcessOutOfMemory(const char* location, 1455 static void FatalProcessOutOfMemory(const char* location,
1453 bool take_snapshot = false); 1456 bool take_snapshot = false);
1454 1457
1455 // This event is triggered after successful allocation of a new object made 1458 // This event is triggered after successful allocation of a new object made
1456 // by runtime. Allocations of target space for object evacuation do not 1459 // by runtime. Allocations of target space for object evacuation do not
1457 // trigger the event. In order to track ALL allocations one must turn off 1460 // trigger the event. In order to track ALL allocations one must turn off
1458 // FLAG_inline_new and FLAG_use_allocation_folding. 1461 // FLAG_inline_new and FLAG_use_allocation_folding.
1459 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); 1462 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes);
1460 1463
1461 // This event is triggered after object is moved to a new place. 1464 // This event is triggered after object is moved to a new place.
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2592 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2590 2593
2591 private: 2594 private:
2592 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2595 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2593 }; 2596 };
2594 #endif // DEBUG 2597 #endif // DEBUG
2595 } 2598 }
2596 } // namespace v8::internal 2599 } // namespace v8::internal
2597 2600
2598 #endif // V8_HEAP_HEAP_H_ 2601 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698