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

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

Issue 1986353002: Revert of [Interpreter] Remove InterpreterExitTrampoline and replace with returning to the entry trampoline. (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
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap/heap-inl.h » ('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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 V(Cell, species_protector, SpeciesProtector) 197 V(Cell, species_protector, SpeciesProtector)
198 198
199 // Entries in this list are limited to Smis and are not visited during GC. 199 // Entries in this list are limited to Smis and are not visited during GC.
200 #define SMI_ROOT_LIST(V) \ 200 #define SMI_ROOT_LIST(V) \
201 V(Smi, stack_limit, StackLimit) \ 201 V(Smi, stack_limit, StackLimit) \
202 V(Smi, real_stack_limit, RealStackLimit) \ 202 V(Smi, real_stack_limit, RealStackLimit) \
203 V(Smi, last_script_id, LastScriptId) \ 203 V(Smi, last_script_id, LastScriptId) \
204 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ 204 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \
205 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ 205 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \
206 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ 206 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \
207 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) \ 207 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset)
208 V(Smi, interpreter_entry_return_pc_offset, InterpreterEntryReturnPCOffset) 208
209 209
210 #define ROOT_LIST(V) \ 210 #define ROOT_LIST(V) \
211 STRONG_ROOT_LIST(V) \ 211 STRONG_ROOT_LIST(V) \
212 SMI_ROOT_LIST(V) \ 212 SMI_ROOT_LIST(V) \
213 V(StringTable, string_table, StringTable) 213 V(StringTable, string_table, StringTable)
214 214
215 215
216 // Heap roots that are known to be immortal immovable, for which we can safely 216 // Heap roots that are known to be immortal immovable, for which we can safely
217 // skip write barriers. This list is not complete and has omissions. 217 // skip write barriers. This list is not complete and has omissions.
218 #define IMMORTAL_IMMOVABLE_ROOT_LIST(V) \ 218 #define IMMORTAL_IMMOVABLE_ROOT_LIST(V) \
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 inline void CompletelyClearInstanceofCache(); 786 inline void CompletelyClearInstanceofCache();
787 787
788 inline uint32_t HashSeed(); 788 inline uint32_t HashSeed();
789 789
790 inline int NextScriptId(); 790 inline int NextScriptId();
791 791
792 inline void SetArgumentsAdaptorDeoptPCOffset(int pc_offset); 792 inline void SetArgumentsAdaptorDeoptPCOffset(int pc_offset);
793 inline void SetConstructStubDeoptPCOffset(int pc_offset); 793 inline void SetConstructStubDeoptPCOffset(int pc_offset);
794 inline void SetGetterStubDeoptPCOffset(int pc_offset); 794 inline void SetGetterStubDeoptPCOffset(int pc_offset);
795 inline void SetSetterStubDeoptPCOffset(int pc_offset); 795 inline void SetSetterStubDeoptPCOffset(int pc_offset);
796 inline void SetInterpreterEntryReturnPCOffset(int pc_offset);
797 796
798 // For post mortem debugging. 797 // For post mortem debugging.
799 void RememberUnmappedPage(Address page, bool compacted); 798 void RememberUnmappedPage(Address page, bool compacted);
800 799
801 // Global inline caching age: it is incremented on some GCs after context 800 // Global inline caching age: it is incremented on some GCs after context
802 // disposal. We use it to flush inline caches. 801 // disposal. We use it to flush inline caches.
803 int global_ic_age() { return global_ic_age_; } 802 int global_ic_age() { return global_ic_age_; }
804 803
805 void AgeInlineCaches() { 804 void AgeInlineCaches() {
806 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; 805 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax;
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 friend class LargeObjectSpace; 2645 friend class LargeObjectSpace;
2647 friend class NewSpace; 2646 friend class NewSpace;
2648 friend class PagedSpace; 2647 friend class PagedSpace;
2649 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2648 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2650 }; 2649 };
2651 2650
2652 } // namespace internal 2651 } // namespace internal
2653 } // namespace v8 2652 } // namespace v8
2654 2653
2655 #endif // V8_HEAP_HEAP_H_ 2654 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698