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

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

Issue 1102383002: Revert of Preprocess structured stack trace on GC to get rid of code reference. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/factory.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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 V(Object, symbol_registry, SymbolRegistry) \ 179 V(Object, symbol_registry, SymbolRegistry) \
180 V(SeededNumberDictionary, empty_slow_element_dictionary, \ 180 V(SeededNumberDictionary, empty_slow_element_dictionary, \
181 EmptySlowElementDictionary) \ 181 EmptySlowElementDictionary) \
182 V(FixedArray, materialized_objects, MaterializedObjects) \ 182 V(FixedArray, materialized_objects, MaterializedObjects) \
183 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \ 183 V(FixedArray, allocation_sites_scratchpad, AllocationSitesScratchpad) \
184 V(FixedArray, microtask_queue, MicrotaskQueue) \ 184 V(FixedArray, microtask_queue, MicrotaskQueue) \
185 V(FixedArray, keyed_load_dummy_vector, KeyedLoadDummyVector) \ 185 V(FixedArray, keyed_load_dummy_vector, KeyedLoadDummyVector) \
186 V(FixedArray, detached_contexts, DetachedContexts) \ 186 V(FixedArray, detached_contexts, DetachedContexts) \
187 V(ArrayList, retained_maps, RetainedMaps) \ 187 V(ArrayList, retained_maps, RetainedMaps) \
188 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ 188 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \
189 V(PropertyCell, array_protector, ArrayProtector) \ 189 V(PropertyCell, array_protector, ArrayProtector)
190 V(Object, weak_stack_trace_list, WeakStackTraceList)
191 190
192 // Entries in this list are limited to Smis and are not visited during GC. 191 // Entries in this list are limited to Smis and are not visited during GC.
193 #define SMI_ROOT_LIST(V) \ 192 #define SMI_ROOT_LIST(V) \
194 V(Smi, stack_limit, StackLimit) \ 193 V(Smi, stack_limit, StackLimit) \
195 V(Smi, real_stack_limit, RealStackLimit) \ 194 V(Smi, real_stack_limit, RealStackLimit) \
196 V(Smi, last_script_id, LastScriptId) \ 195 V(Smi, last_script_id, LastScriptId) \
197 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 196 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
198 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ 197 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \
199 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ 198 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \
200 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) 199 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset)
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 void MarkMapPointersAsEncoded(bool encoded) { 1735 void MarkMapPointersAsEncoded(bool encoded) {
1737 DCHECK(!encoded); 1736 DCHECK(!encoded);
1738 gc_safe_size_of_old_object_ = &GcSafeSizeOfOldObject; 1737 gc_safe_size_of_old_object_ = &GcSafeSizeOfOldObject;
1739 } 1738 }
1740 1739
1741 // Code that should be run before and after each GC. Includes some 1740 // Code that should be run before and after each GC. Includes some
1742 // reporting/verification activities when compiled with DEBUG set. 1741 // reporting/verification activities when compiled with DEBUG set.
1743 void GarbageCollectionPrologue(); 1742 void GarbageCollectionPrologue();
1744 void GarbageCollectionEpilogue(); 1743 void GarbageCollectionEpilogue();
1745 1744
1746 void PreprocessStackTraces();
1747
1748 // Pretenuring decisions are made based on feedback collected during new 1745 // Pretenuring decisions are made based on feedback collected during new
1749 // space evacuation. Note that between feedback collection and calling this 1746 // space evacuation. Note that between feedback collection and calling this
1750 // method object in old space must not move. 1747 // method object in old space must not move.
1751 // Right now we only process pretenuring feedback in high promotion mode. 1748 // Right now we only process pretenuring feedback in high promotion mode.
1752 void ProcessPretenuringFeedback(); 1749 void ProcessPretenuringFeedback();
1753 1750
1754 // Checks whether a global GC is necessary 1751 // Checks whether a global GC is necessary
1755 GarbageCollector SelectGarbageCollector(AllocationSpace space, 1752 GarbageCollector SelectGarbageCollector(AllocationSpace space,
1756 const char** reason); 1753 const char** reason);
1757 1754
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2606 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2610 2607
2611 private: 2608 private:
2612 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2609 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2613 }; 2610 };
2614 #endif // DEBUG 2611 #endif // DEBUG
2615 } 2612 }
2616 } // namespace v8::internal 2613 } // namespace v8::internal
2617 2614
2618 #endif // V8_HEAP_HEAP_H_ 2615 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698