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

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

Issue 2680313002: Count closures using the feedback vector cell map, specialize if count==1. (Closed)
Patch Set: Only specialize if compiling from bytecode Created 3 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
« 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 #include <map> 9 #include <map>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 /* Maps */ \ 86 /* Maps */ \
87 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 87 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
88 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ 88 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \
89 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ 89 V(Map, ordered_hash_table_map, OrderedHashTableMap) \
90 V(Map, unseeded_number_dictionary_map, UnseededNumberDictionaryMap) \ 90 V(Map, unseeded_number_dictionary_map, UnseededNumberDictionaryMap) \
91 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ 91 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \
92 V(Map, message_object_map, JSMessageObjectMap) \ 92 V(Map, message_object_map, JSMessageObjectMap) \
93 V(Map, external_map, ExternalMap) \ 93 V(Map, external_map, ExternalMap) \
94 V(Map, bytecode_array_map, BytecodeArrayMap) \ 94 V(Map, bytecode_array_map, BytecodeArrayMap) \
95 V(Map, module_info_map, ModuleInfoMap) \ 95 V(Map, module_info_map, ModuleInfoMap) \
96 V(Map, no_closures_cell_map, NoClosuresCellMap) \
97 V(Map, one_closure_cell_map, OneClosureCellMap) \
98 V(Map, many_closures_cell_map, ManyClosuresCellMap) \
96 /* String maps */ \ 99 /* String maps */ \
97 V(Map, native_source_string_map, NativeSourceStringMap) \ 100 V(Map, native_source_string_map, NativeSourceStringMap) \
98 V(Map, string_map, StringMap) \ 101 V(Map, string_map, StringMap) \
99 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ 102 V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \
100 V(Map, cons_string_map, ConsStringMap) \ 103 V(Map, cons_string_map, ConsStringMap) \
101 V(Map, thin_one_byte_string_map, ThinOneByteStringMap) \ 104 V(Map, thin_one_byte_string_map, ThinOneByteStringMap) \
102 V(Map, thin_string_map, ThinStringMap) \ 105 V(Map, thin_string_map, ThinStringMap) \
103 V(Map, sliced_string_map, SlicedStringMap) \ 106 V(Map, sliced_string_map, SlicedStringMap) \
104 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \ 107 V(Map, sliced_one_byte_string_map, SlicedOneByteStringMap) \
105 V(Map, external_string_map, ExternalStringMap) \ 108 V(Map, external_string_map, ExternalStringMap) \
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 V(EvalContextMap) \ 313 V(EvalContextMap) \
311 V(ScriptContextMap) \ 314 V(ScriptContextMap) \
312 V(UndefinedMap) \ 315 V(UndefinedMap) \
313 V(TheHoleMap) \ 316 V(TheHoleMap) \
314 V(NullMap) \ 317 V(NullMap) \
315 V(BooleanMap) \ 318 V(BooleanMap) \
316 V(UninitializedMap) \ 319 V(UninitializedMap) \
317 V(ArgumentsMarkerMap) \ 320 V(ArgumentsMarkerMap) \
318 V(JSMessageObjectMap) \ 321 V(JSMessageObjectMap) \
319 V(ForeignMap) \ 322 V(ForeignMap) \
323 V(NoClosuresCellMap) \
324 V(OneClosureCellMap) \
325 V(ManyClosuresCellMap) \
320 V(NanValue) \ 326 V(NanValue) \
321 V(InfinityValue) \ 327 V(InfinityValue) \
322 V(MinusZeroValue) \ 328 V(MinusZeroValue) \
323 V(MinusInfinityValue) \ 329 V(MinusInfinityValue) \
324 V(EmptyWeakCell) \ 330 V(EmptyWeakCell) \
325 V(empty_string) \ 331 V(empty_string) \
326 PRIVATE_SYMBOL_LIST(V) 332 PRIVATE_SYMBOL_LIST(V)
327 333
328 // Forward declarations. 334 // Forward declarations.
329 class AllocationObserver; 335 class AllocationObserver;
(...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2691 friend class LargeObjectSpace; 2697 friend class LargeObjectSpace;
2692 friend class NewSpace; 2698 friend class NewSpace;
2693 friend class PagedSpace; 2699 friend class PagedSpace;
2694 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2700 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2695 }; 2701 };
2696 2702
2697 } // namespace internal 2703 } // namespace internal
2698 } // namespace v8 2704 } // namespace v8
2699 2705
2700 #endif // V8_HEAP_HEAP_H_ 2706 #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