| 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 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 | 988 |
| 989 #ifdef VERIFY_HEAP | 989 #ifdef VERIFY_HEAP |
| 990 // Verify the heap is in its normal state before or after a GC. | 990 // Verify the heap is in its normal state before or after a GC. |
| 991 void Verify(); | 991 void Verify(); |
| 992 #endif | 992 #endif |
| 993 | 993 |
| 994 #ifdef DEBUG | 994 #ifdef DEBUG |
| 995 void Print(); | 995 void Print(); |
| 996 void PrintHandles(); | 996 void PrintHandles(); |
| 997 | 997 |
| 998 void OldPointerSpaceCheckStoreBuffer(); | |
| 999 void MapSpaceCheckStoreBuffer(); | |
| 1000 void LargeObjectSpaceCheckStoreBuffer(); | |
| 1001 | |
| 1002 // Report heap statistics. | 998 // Report heap statistics. |
| 1003 void ReportHeapStatistics(const char* title); | 999 void ReportHeapStatistics(const char* title); |
| 1004 void ReportCodeStatistics(const char* title); | 1000 void ReportCodeStatistics(const char* title); |
| 1005 #endif | 1001 #endif |
| 1006 | 1002 |
| 1007 // Zapping is needed for verify heap, and always done in debug builds. | 1003 // Zapping is needed for verify heap, and always done in debug builds. |
| 1008 static inline bool ShouldZapGarbage() { | 1004 static inline bool ShouldZapGarbage() { |
| 1009 #ifdef DEBUG | 1005 #ifdef DEBUG |
| 1010 return true; | 1006 return true; |
| 1011 #else | 1007 #else |
| (...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2628 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2624 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2629 | 2625 |
| 2630 private: | 2626 private: |
| 2631 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2627 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2632 }; | 2628 }; |
| 2633 #endif // DEBUG | 2629 #endif // DEBUG |
| 2634 } | 2630 } |
| 2635 } // namespace v8::internal | 2631 } // namespace v8::internal |
| 2636 | 2632 |
| 2637 #endif // V8_HEAP_HEAP_H_ | 2633 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |