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

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

Issue 893073006: Add map-based read barrier to WeakCell Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 V(Map, meta_map, MetaMap) \ 45 V(Map, meta_map, MetaMap) \
46 V(Map, heap_number_map, HeapNumberMap) \ 46 V(Map, heap_number_map, HeapNumberMap) \
47 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ 47 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \
48 V(Map, native_context_map, NativeContextMap) \ 48 V(Map, native_context_map, NativeContextMap) \
49 V(Map, fixed_array_map, FixedArrayMap) \ 49 V(Map, fixed_array_map, FixedArrayMap) \
50 V(Map, code_map, CodeMap) \ 50 V(Map, code_map, CodeMap) \
51 V(Map, scope_info_map, ScopeInfoMap) \ 51 V(Map, scope_info_map, ScopeInfoMap) \
52 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 52 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
53 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 53 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
54 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ 54 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \
55 V(Map, weak_cell_map, WeakCellMap) \ 55 V(Map, used_weak_cell_map, UsedWeakCellMap) \
56 V(Map, unused_weak_cell_map, UnusedWeakCellMap) \
56 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 57 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
57 V(Map, hash_table_map, HashTableMap) \ 58 V(Map, hash_table_map, HashTableMap) \
58 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ 59 V(Map, ordered_hash_table_map, OrderedHashTableMap) \
59 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ 60 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
60 V(ByteArray, empty_byte_array, EmptyByteArray) \ 61 V(ByteArray, empty_byte_array, EmptyByteArray) \
61 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ 62 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
62 V(ConstantPoolArray, empty_constant_pool_array, EmptyConstantPoolArray) \ 63 V(ConstantPoolArray, empty_constant_pool_array, EmptyConstantPoolArray) \
63 V(Oddball, arguments_marker, ArgumentsMarker) \ 64 V(Oddball, arguments_marker, ArgumentsMarker) \
64 /* The roots above this line should be boring from a GC point of view. */ \ 65 /* The roots above this line should be boring from a GC point of view. */ \
65 /* This means they are never in new space and never on a page that is */ \ 66 /* This means they are never in new space and never on a page that is */ \
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 V(MetaMap) \ 336 V(MetaMap) \
336 V(HeapNumberMap) \ 337 V(HeapNumberMap) \
337 V(MutableHeapNumberMap) \ 338 V(MutableHeapNumberMap) \
338 V(NativeContextMap) \ 339 V(NativeContextMap) \
339 V(FixedArrayMap) \ 340 V(FixedArrayMap) \
340 V(CodeMap) \ 341 V(CodeMap) \
341 V(ScopeInfoMap) \ 342 V(ScopeInfoMap) \
342 V(FixedCOWArrayMap) \ 343 V(FixedCOWArrayMap) \
343 V(FixedDoubleArrayMap) \ 344 V(FixedDoubleArrayMap) \
344 V(ConstantPoolArrayMap) \ 345 V(ConstantPoolArrayMap) \
345 V(WeakCellMap) \ 346 V(UsedWeakCellMap) \
347 V(UnusedWeakCellMap) \
346 V(NoInterceptorResultSentinel) \ 348 V(NoInterceptorResultSentinel) \
347 V(HashTableMap) \ 349 V(HashTableMap) \
348 V(OrderedHashTableMap) \ 350 V(OrderedHashTableMap) \
349 V(EmptyFixedArray) \ 351 V(EmptyFixedArray) \
350 V(EmptyByteArray) \ 352 V(EmptyByteArray) \
351 V(EmptyDescriptorArray) \ 353 V(EmptyDescriptorArray) \
352 V(EmptyConstantPoolArray) \ 354 V(EmptyConstantPoolArray) \
353 V(ArgumentsMarker) \ 355 V(ArgumentsMarker) \
354 V(SymbolMap) \ 356 V(SymbolMap) \
355 V(SloppyArgumentsElementsMap) \ 357 V(SloppyArgumentsElementsMap) \
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2590 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2589 2591
2590 private: 2592 private:
2591 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2593 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2592 }; 2594 };
2593 #endif // DEBUG 2595 #endif // DEBUG
2594 } 2596 }
2595 } // namespace v8::internal 2597 } // namespace v8::internal
2596 2598
2597 #endif // V8_HEAP_HEAP_H_ 2599 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.cc » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698