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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 // method needs to be called after evacuation, as allocation sites may be | 1528 // method needs to be called after evacuation, as allocation sites may be |
1529 // evacuated and this method resolves forward pointers accordingly. | 1529 // evacuated and this method resolves forward pointers accordingly. |
1530 void MergeAllocationSitePretenuringFeedback( | 1530 void MergeAllocationSitePretenuringFeedback( |
1531 const base::HashMap& local_pretenuring_feedback); | 1531 const base::HashMap& local_pretenuring_feedback); |
1532 | 1532 |
1533 // ============================================================================= | 1533 // ============================================================================= |
1534 | 1534 |
1535 #ifdef VERIFY_HEAP | 1535 #ifdef VERIFY_HEAP |
1536 // Verify the heap is in its normal state before or after a GC. | 1536 // Verify the heap is in its normal state before or after a GC. |
1537 void Verify(); | 1537 void Verify(); |
| 1538 void VerifyRememberedSetFor(HeapObject* object); |
1538 #endif | 1539 #endif |
1539 | 1540 |
1540 #ifdef DEBUG | 1541 #ifdef DEBUG |
1541 void set_allocation_timeout(int timeout) { allocation_timeout_ = timeout; } | 1542 void set_allocation_timeout(int timeout) { allocation_timeout_ = timeout; } |
1542 | 1543 |
1543 void Print(); | 1544 void Print(); |
1544 void PrintHandles(); | 1545 void PrintHandles(); |
1545 | 1546 |
1546 // Report heap statistics. | 1547 // Report heap statistics. |
1547 void ReportHeapStatistics(const char* title); | 1548 void ReportHeapStatistics(const char* title); |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2655 friend class PagedSpace; | 2656 friend class PagedSpace; |
2656 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2657 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2657 }; | 2658 }; |
2658 | 2659 |
2659 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 2660 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); |
2660 | 2661 |
2661 } // namespace internal | 2662 } // namespace internal |
2662 } // namespace v8 | 2663 } // namespace v8 |
2663 | 2664 |
2664 #endif // V8_HEAP_HEAP_H_ | 2665 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |