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

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

Issue 1493393002: Revert "Use WeakCells in the optimized code map rather than traversing in pause." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/heap/gc-tracer.cc ('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 #include <map> 9 #include <map>
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \ 182 V(FixedArray, cleared_optimized_code_map, ClearedOptimizedCodeMap) \
183 V(FixedArray, detached_contexts, DetachedContexts) \ 183 V(FixedArray, detached_contexts, DetachedContexts) \
184 V(ArrayList, retained_maps, RetainedMaps) \ 184 V(ArrayList, retained_maps, RetainedMaps) \
185 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ 185 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \
186 V(PropertyCell, array_protector, ArrayProtector) \ 186 V(PropertyCell, array_protector, ArrayProtector) \
187 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ 187 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \
188 V(Object, weak_stack_trace_list, WeakStackTraceList) \ 188 V(Object, weak_stack_trace_list, WeakStackTraceList) \
189 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ 189 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \
190 V(FixedArray, interpreter_table, InterpreterTable) \ 190 V(FixedArray, interpreter_table, InterpreterTable) \
191 V(Map, bytecode_array_map, BytecodeArrayMap) \ 191 V(Map, bytecode_array_map, BytecodeArrayMap) \
192 V(WeakCell, empty_weak_cell, EmptyWeakCell) \
193 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray) 192 V(BytecodeArray, empty_bytecode_array, EmptyBytecodeArray)
194 193
195 194
196 // Entries in this list are limited to Smis and are not visited during GC. 195 // Entries in this list are limited to Smis and are not visited during GC.
197 #define SMI_ROOT_LIST(V) \ 196 #define SMI_ROOT_LIST(V) \
198 V(Smi, stack_limit, StackLimit) \ 197 V(Smi, stack_limit, StackLimit) \
199 V(Smi, real_stack_limit, RealStackLimit) \ 198 V(Smi, real_stack_limit, RealStackLimit) \
200 V(Smi, last_script_id, LastScriptId) \ 199 V(Smi, last_script_id, LastScriptId) \
201 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 200 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
202 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ 201 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 V(ScriptContextMap) \ 440 V(ScriptContextMap) \
442 V(UndefinedMap) \ 441 V(UndefinedMap) \
443 V(TheHoleMap) \ 442 V(TheHoleMap) \
444 V(NullMap) \ 443 V(NullMap) \
445 V(BooleanMap) \ 444 V(BooleanMap) \
446 V(UninitializedMap) \ 445 V(UninitializedMap) \
447 V(ArgumentsMarkerMap) \ 446 V(ArgumentsMarkerMap) \
448 V(JSMessageObjectMap) \ 447 V(JSMessageObjectMap) \
449 V(ForeignMap) \ 448 V(ForeignMap) \
450 V(NeanderMap) \ 449 V(NeanderMap) \
451 V(EmptyWeakCell) \
452 V(empty_string) \ 450 V(empty_string) \
453 PRIVATE_SYMBOL_LIST(V) 451 PRIVATE_SYMBOL_LIST(V)
454 452
455 // Forward declarations. 453 // Forward declarations.
456 class ArrayBufferTracker; 454 class ArrayBufferTracker;
457 class GCIdleTimeAction; 455 class GCIdleTimeAction;
458 class GCIdleTimeHandler; 456 class GCIdleTimeHandler;
459 class GCIdleTimeHeapState; 457 class GCIdleTimeHeapState;
460 class GCTracer; 458 class GCTracer;
461 class HeapObjectsFilter; 459 class HeapObjectsFilter;
(...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2733 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2731 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2734 2732
2735 private: 2733 private:
2736 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2734 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2737 }; 2735 };
2738 #endif // DEBUG 2736 #endif // DEBUG
2739 } // namespace internal 2737 } // namespace internal
2740 } // namespace v8 2738 } // namespace v8
2741 2739
2742 #endif // V8_HEAP_HEAP_H_ 2740 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698