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

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

Issue 1923253002: [generators] Create the fixed array holding the registers only once. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 V(ByteArray, empty_byte_array, EmptyByteArray) \ 71 V(ByteArray, empty_byte_array, EmptyByteArray) \
72 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ 72 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
73 /* The roots above this line should be boring from a GC point of view. */ \ 73 /* The roots above this line should be boring from a GC point of view. */ \
74 /* This means they are never in new space and never on a page that is */ \ 74 /* This means they are never in new space and never on a page that is */ \
75 /* being compacted. */ \ 75 /* being compacted. */ \
76 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 76 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
77 V(Oddball, arguments_marker, ArgumentsMarker) \ 77 V(Oddball, arguments_marker, ArgumentsMarker) \
78 V(Oddball, exception, Exception) \ 78 V(Oddball, exception, Exception) \
79 V(Oddball, termination_exception, TerminationException) \ 79 V(Oddball, termination_exception, TerminationException) \
80 V(Oddball, optimized_out, OptimizedOut) \ 80 V(Oddball, optimized_out, OptimizedOut) \
81 V(Oddball, placeholder, Placeholder) \
81 V(FixedArray, number_string_cache, NumberStringCache) \ 82 V(FixedArray, number_string_cache, NumberStringCache) \
82 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ 83 V(Object, instanceof_cache_function, InstanceofCacheFunction) \
83 V(Object, instanceof_cache_map, InstanceofCacheMap) \ 84 V(Object, instanceof_cache_map, InstanceofCacheMap) \
84 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ 85 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \
85 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ 86 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
86 V(FixedArray, string_split_cache, StringSplitCache) \ 87 V(FixedArray, string_split_cache, StringSplitCache) \
87 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \ 88 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \
88 V(Smi, hash_seed, HashSeed) \ 89 V(Smi, hash_seed, HashSeed) \
89 V(Map, hash_table_map, HashTableMap) \ 90 V(Map, hash_table_map, HashTableMap) \
90 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ 91 V(Map, ordered_hash_table_map, OrderedHashTableMap) \
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 V(Map, undefined_map, UndefinedMap) \ 146 V(Map, undefined_map, UndefinedMap) \
146 V(Map, the_hole_map, TheHoleMap) \ 147 V(Map, the_hole_map, TheHoleMap) \
147 V(Map, null_map, NullMap) \ 148 V(Map, null_map, NullMap) \
148 V(Map, boolean_map, BooleanMap) \ 149 V(Map, boolean_map, BooleanMap) \
149 V(Map, uninitialized_map, UninitializedMap) \ 150 V(Map, uninitialized_map, UninitializedMap) \
150 V(Map, arguments_marker_map, ArgumentsMarkerMap) \ 151 V(Map, arguments_marker_map, ArgumentsMarkerMap) \
151 V(Map, no_interceptor_result_sentinel_map, NoInterceptorResultSentinelMap) \ 152 V(Map, no_interceptor_result_sentinel_map, NoInterceptorResultSentinelMap) \
152 V(Map, exception_map, ExceptionMap) \ 153 V(Map, exception_map, ExceptionMap) \
153 V(Map, termination_exception_map, TerminationExceptionMap) \ 154 V(Map, termination_exception_map, TerminationExceptionMap) \
154 V(Map, optimized_out_map, OptimizedOutMap) \ 155 V(Map, optimized_out_map, OptimizedOutMap) \
156 V(Map, placeholder_map, PlaceholderMap) \
155 V(Map, message_object_map, JSMessageObjectMap) \ 157 V(Map, message_object_map, JSMessageObjectMap) \
156 V(Map, foreign_map, ForeignMap) \ 158 V(Map, foreign_map, ForeignMap) \
157 V(Map, neander_map, NeanderMap) \ 159 V(Map, neander_map, NeanderMap) \
158 V(Map, external_map, ExternalMap) \ 160 V(Map, external_map, ExternalMap) \
159 V(HeapNumber, nan_value, NanValue) \ 161 V(HeapNumber, nan_value, NanValue) \
160 V(HeapNumber, infinity_value, InfinityValue) \ 162 V(HeapNumber, infinity_value, InfinityValue) \
161 V(HeapNumber, minus_zero_value, MinusZeroValue) \ 163 V(HeapNumber, minus_zero_value, MinusZeroValue) \
162 V(HeapNumber, minus_infinity_value, MinusInfinityValue) \ 164 V(HeapNumber, minus_infinity_value, MinusInfinityValue) \
163 V(JSObject, message_listeners, MessageListeners) \ 165 V(JSObject, message_listeners, MessageListeners) \
164 V(UnseededNumberDictionary, code_stubs, CodeStubs) \ 166 V(UnseededNumberDictionary, code_stubs, CodeStubs) \
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 friend class LargeObjectSpace; 2639 friend class LargeObjectSpace;
2638 friend class NewSpace; 2640 friend class NewSpace;
2639 friend class PagedSpace; 2641 friend class PagedSpace;
2640 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2642 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2641 }; 2643 };
2642 2644
2643 } // namespace internal 2645 } // namespace internal
2644 } // namespace v8 2646 } // namespace v8
2645 2647
2646 #endif // V8_HEAP_HEAP_H_ 2648 #endif // V8_HEAP_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698