| OLD | NEW |
| 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 void FreeQueuedChunks(MemoryChunk* list_head); | 954 void FreeQueuedChunks(MemoryChunk* list_head); |
| 955 void FreeQueuedChunks(); | 955 void FreeQueuedChunks(); |
| 956 void WaitUntilUnmappingOfFreeChunksCompleted(); | 956 void WaitUntilUnmappingOfFreeChunksCompleted(); |
| 957 | 957 |
| 958 // Completely clear the Instanceof cache (to stop it keeping objects alive | 958 // Completely clear the Instanceof cache (to stop it keeping objects alive |
| 959 // around a GC). | 959 // around a GC). |
| 960 inline void CompletelyClearInstanceofCache(); | 960 inline void CompletelyClearInstanceofCache(); |
| 961 | 961 |
| 962 inline uint32_t HashSeed(); | 962 inline uint32_t HashSeed(); |
| 963 | 963 |
| 964 inline Smi* NextScriptId(); | 964 inline int NextScriptId(); |
| 965 | 965 |
| 966 inline void SetArgumentsAdaptorDeoptPCOffset(int pc_offset); | 966 inline void SetArgumentsAdaptorDeoptPCOffset(int pc_offset); |
| 967 inline void SetConstructStubDeoptPCOffset(int pc_offset); | 967 inline void SetConstructStubDeoptPCOffset(int pc_offset); |
| 968 inline void SetGetterStubDeoptPCOffset(int pc_offset); | 968 inline void SetGetterStubDeoptPCOffset(int pc_offset); |
| 969 inline void SetSetterStubDeoptPCOffset(int pc_offset); | 969 inline void SetSetterStubDeoptPCOffset(int pc_offset); |
| 970 | 970 |
| 971 // For post mortem debugging. | 971 // For post mortem debugging. |
| 972 void RememberUnmappedPage(Address page, bool compacted); | 972 void RememberUnmappedPage(Address page, bool compacted); |
| 973 | 973 |
| 974 // Global inline caching age: it is incremented on some GCs after context | 974 // Global inline caching age: it is incremented on some GCs after context |
| (...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2717 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2718 | 2718 |
| 2719 private: | 2719 private: |
| 2720 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2720 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2721 }; | 2721 }; |
| 2722 #endif // DEBUG | 2722 #endif // DEBUG |
| 2723 } | 2723 } |
| 2724 } // namespace v8::internal | 2724 } // namespace v8::internal |
| 2725 | 2725 |
| 2726 #endif // V8_HEAP_HEAP_H_ | 2726 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |