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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 int flags, const char* gc_reason = NULL, | 760 int flags, const char* gc_reason = NULL, |
761 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags); | 761 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags); |
762 | 762 |
763 // Last hope GC, should try to squeeze as much as possible. | 763 // Last hope GC, should try to squeeze as much as possible. |
764 void CollectAllAvailableGarbage(const char* gc_reason = NULL); | 764 void CollectAllAvailableGarbage(const char* gc_reason = NULL); |
765 | 765 |
766 // Check whether the heap is currently iterable. | 766 // Check whether the heap is currently iterable. |
767 bool IsHeapIterable(); | 767 bool IsHeapIterable(); |
768 | 768 |
769 // Notify the heap that a context has been disposed. | 769 // Notify the heap that a context has been disposed. |
770 int NotifyContextDisposed(); | 770 int NotifyContextDisposed(bool dependant_context); |
771 | 771 |
772 inline void increment_scan_on_scavenge_pages() { | 772 inline void increment_scan_on_scavenge_pages() { |
773 scan_on_scavenge_pages_++; | 773 scan_on_scavenge_pages_++; |
774 if (FLAG_gc_verbose) { | 774 if (FLAG_gc_verbose) { |
775 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); | 775 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); |
776 } | 776 } |
777 } | 777 } |
778 | 778 |
779 inline void decrement_scan_on_scavenge_pages() { | 779 inline void decrement_scan_on_scavenge_pages() { |
780 scan_on_scavenge_pages_--; | 780 scan_on_scavenge_pages_--; |
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2594 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2594 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2595 | 2595 |
2596 private: | 2596 private: |
2597 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2597 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2598 }; | 2598 }; |
2599 #endif // DEBUG | 2599 #endif // DEBUG |
2600 } | 2600 } |
2601 } // namespace v8::internal | 2601 } // namespace v8::internal |
2602 | 2602 |
2603 #endif // V8_HEAP_HEAP_H_ | 2603 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |