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

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

Issue 2076083002: [snapshot] support including templates in the snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@externalref
Patch Set: fix build Created 4 years, 6 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/api.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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 V(ArrayList, retained_maps, RetainedMaps) \ 190 V(ArrayList, retained_maps, RetainedMaps) \
191 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \ 191 V(WeakHashTable, weak_object_to_code_table, WeakObjectToCodeTable) \
192 V(PropertyCell, array_protector, ArrayProtector) \ 192 V(PropertyCell, array_protector, ArrayProtector) \
193 V(Cell, is_concat_spreadable_protector, IsConcatSpreadableProtector) \ 193 V(Cell, is_concat_spreadable_protector, IsConcatSpreadableProtector) \
194 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \ 194 V(PropertyCell, empty_property_cell, EmptyPropertyCell) \
195 V(Object, weak_stack_trace_list, WeakStackTraceList) \ 195 V(Object, weak_stack_trace_list, WeakStackTraceList) \
196 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \ 196 V(Object, noscript_shared_function_infos, NoScriptSharedFunctionInfos) \
197 V(Map, bytecode_array_map, BytecodeArrayMap) \ 197 V(Map, bytecode_array_map, BytecodeArrayMap) \
198 V(WeakCell, empty_weak_cell, EmptyWeakCell) \ 198 V(WeakCell, empty_weak_cell, EmptyWeakCell) \
199 V(PropertyCell, has_instance_protector, HasInstanceProtector) \ 199 V(PropertyCell, has_instance_protector, HasInstanceProtector) \
200 V(Cell, species_protector, SpeciesProtector) 200 V(Cell, species_protector, SpeciesProtector) \
201 V(FixedArray, serialized_templates, SerializedTemplates)
201 202
202 // Entries in this list are limited to Smis and are not visited during GC. 203 // Entries in this list are limited to Smis and are not visited during GC.
203 #define SMI_ROOT_LIST(V) \ 204 #define SMI_ROOT_LIST(V) \
204 V(Smi, stack_limit, StackLimit) \ 205 V(Smi, stack_limit, StackLimit) \
205 V(Smi, real_stack_limit, RealStackLimit) \ 206 V(Smi, real_stack_limit, RealStackLimit) \
206 V(Smi, last_script_id, LastScriptId) \ 207 V(Smi, last_script_id, LastScriptId) \
207 /* To distinguish the function templates, so that we can find them in the */ \ 208 /* To distinguish the function templates, so that we can find them in the */ \
208 /* function cache of the native context. */ \ 209 /* function cache of the native context. */ \
209 V(Smi, next_template_serial_number, NextTemplateSerialNumber) \ 210 V(Smi, next_template_serial_number, NextTemplateSerialNumber) \
210 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 211 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 801
801 inline int NextScriptId(); 802 inline int NextScriptId();
802 803
803 inline void SetArgumentsAdaptorDeoptPCOffset(int pc_offset); 804 inline void SetArgumentsAdaptorDeoptPCOffset(int pc_offset);
804 inline void SetConstructStubDeoptPCOffset(int pc_offset); 805 inline void SetConstructStubDeoptPCOffset(int pc_offset);
805 inline void SetGetterStubDeoptPCOffset(int pc_offset); 806 inline void SetGetterStubDeoptPCOffset(int pc_offset);
806 inline void SetSetterStubDeoptPCOffset(int pc_offset); 807 inline void SetSetterStubDeoptPCOffset(int pc_offset);
807 inline void SetInterpreterEntryReturnPCOffset(int pc_offset); 808 inline void SetInterpreterEntryReturnPCOffset(int pc_offset);
808 inline int GetNextTemplateSerialNumber(); 809 inline int GetNextTemplateSerialNumber();
809 810
811 inline void SetSerializedTemplates(FixedArray* templates);
812
810 // For post mortem debugging. 813 // For post mortem debugging.
811 void RememberUnmappedPage(Address page, bool compacted); 814 void RememberUnmappedPage(Address page, bool compacted);
812 815
813 // Global inline caching age: it is incremented on some GCs after context 816 // Global inline caching age: it is incremented on some GCs after context
814 // disposal. We use it to flush inline caches. 817 // disposal. We use it to flush inline caches.
815 int global_ic_age() { return global_ic_age_; } 818 int global_ic_age() { return global_ic_age_; }
816 819
817 void AgeInlineCaches() { 820 void AgeInlineCaches() {
818 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; 821 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax;
819 } 822 }
(...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 friend class LargeObjectSpace; 2677 friend class LargeObjectSpace;
2675 friend class NewSpace; 2678 friend class NewSpace;
2676 friend class PagedSpace; 2679 friend class PagedSpace;
2677 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2680 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2678 }; 2681 };
2679 2682
2680 } // namespace internal 2683 } // namespace internal
2681 } // namespace v8 2684 } // namespace v8
2682 2685
2683 #endif // V8_HEAP_HEAP_H_ 2686 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698