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 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1784 // Limit that triggers a global GC on the next (normally caused) GC. This | 1784 // Limit that triggers a global GC on the next (normally caused) GC. This |
1785 // is checked when we have already decided to do a GC to help determine | 1785 // is checked when we have already decided to do a GC to help determine |
1786 // which collector to invoke, before expanding a paged space in the old | 1786 // which collector to invoke, before expanding a paged space in the old |
1787 // generation and on every allocation in large object space. | 1787 // generation and on every allocation in large object space. |
1788 intptr_t old_generation_allocation_limit_; | 1788 intptr_t old_generation_allocation_limit_; |
1789 | 1789 |
1790 // Indicates that an allocation has failed in the old generation since the | 1790 // Indicates that an allocation has failed in the old generation since the |
1791 // last GC. | 1791 // last GC. |
1792 bool old_gen_exhausted_; | 1792 bool old_gen_exhausted_; |
1793 | 1793 |
| 1794 // Indicates that memory usage is more important than latency. |
| 1795 // TODO(ulan): Merge it with memory reducer once chromium:490559 is fixed. |
| 1796 bool optimize_for_memory_usage_; |
| 1797 |
1794 // Indicates that inline bump-pointer allocation has been globally disabled | 1798 // Indicates that inline bump-pointer allocation has been globally disabled |
1795 // for all spaces. This is used to disable allocations in generated code. | 1799 // for all spaces. This is used to disable allocations in generated code. |
1796 bool inline_allocation_disabled_; | 1800 bool inline_allocation_disabled_; |
1797 | 1801 |
1798 // Weak list heads, threaded through the objects. | 1802 // Weak list heads, threaded through the objects. |
1799 // List heads are initialized lazily and contain the undefined_value at start. | 1803 // List heads are initialized lazily and contain the undefined_value at start. |
1800 Object* native_contexts_list_; | 1804 Object* native_contexts_list_; |
1801 Object* allocation_sites_list_; | 1805 Object* allocation_sites_list_; |
1802 | 1806 |
1803 // List of encountered weak collections (JSWeakMap and JSWeakSet) during | 1807 // List of encountered weak collections (JSWeakMap and JSWeakSet) during |
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2871 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2868 | 2872 |
2869 private: | 2873 private: |
2870 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2874 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2871 }; | 2875 }; |
2872 #endif // DEBUG | 2876 #endif // DEBUG |
2873 } | 2877 } |
2874 } // namespace v8::internal | 2878 } // namespace v8::internal |
2875 | 2879 |
2876 #endif // V8_HEAP_HEAP_H_ | 2880 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |