| 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 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 unsigned int ms_count_; | 1739 unsigned int ms_count_; |
| 1740 | 1740 |
| 1741 // How many gc happened. | 1741 // How many gc happened. |
| 1742 unsigned int gc_count_; | 1742 unsigned int gc_count_; |
| 1743 | 1743 |
| 1744 // For post mortem debugging. | 1744 // For post mortem debugging. |
| 1745 static const int kRememberedUnmappedPages = 128; | 1745 static const int kRememberedUnmappedPages = 128; |
| 1746 int remembered_unmapped_pages_index_; | 1746 int remembered_unmapped_pages_index_; |
| 1747 Address remembered_unmapped_pages_[kRememberedUnmappedPages]; | 1747 Address remembered_unmapped_pages_[kRememberedUnmappedPages]; |
| 1748 | 1748 |
| 1749 // Total length of the strings we failed to flatten since the last GC. | |
| 1750 int unflattened_strings_length_; | |
| 1751 | |
| 1752 #define ROOT_ACCESSOR(type, name, camel_name) \ | 1749 #define ROOT_ACCESSOR(type, name, camel_name) \ |
| 1753 inline void set_##name(type* value); | 1750 inline void set_##name(type* value); |
| 1754 ROOT_LIST(ROOT_ACCESSOR) | 1751 ROOT_LIST(ROOT_ACCESSOR) |
| 1755 #undef ROOT_ACCESSOR | 1752 #undef ROOT_ACCESSOR |
| 1756 | 1753 |
| 1757 #ifdef DEBUG | 1754 #ifdef DEBUG |
| 1758 // If the --gc-interval flag is set to a positive value, this | 1755 // If the --gc-interval flag is set to a positive value, this |
| 1759 // variable holds the value indicating the number of allocations | 1756 // variable holds the value indicating the number of allocations |
| 1760 // remain until the next failure and garbage collection. | 1757 // remain until the next failure and garbage collection. |
| 1761 int allocation_timeout_; | 1758 int allocation_timeout_; |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2709 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2706 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2710 | 2707 |
| 2711 private: | 2708 private: |
| 2712 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2709 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2713 }; | 2710 }; |
| 2714 #endif // DEBUG | 2711 #endif // DEBUG |
| 2715 } | 2712 } |
| 2716 } // namespace v8::internal | 2713 } // namespace v8::internal |
| 2717 | 2714 |
| 2718 #endif // V8_HEAP_HEAP_H_ | 2715 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |