OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 | 1571 |
1572 // Returns maximum GC pause. | 1572 // Returns maximum GC pause. |
1573 int get_max_gc_pause() { return max_gc_pause_; } | 1573 int get_max_gc_pause() { return max_gc_pause_; } |
1574 | 1574 |
1575 // Returns maximum size of objects alive after GC. | 1575 // Returns maximum size of objects alive after GC. |
1576 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } | 1576 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } |
1577 | 1577 |
1578 // Returns minimal interval between two subsequent collections. | 1578 // Returns minimal interval between two subsequent collections. |
1579 int get_min_in_mutator() { return min_in_mutator_; } | 1579 int get_min_in_mutator() { return min_in_mutator_; } |
1580 | 1580 |
| 1581 // TODO(hpayer): remove, should be handled by GCTracer |
| 1582 void AddMarkingTime(double marking_time) { |
| 1583 marking_time_ += marking_time; |
| 1584 } |
| 1585 |
| 1586 double marking_time() const { |
| 1587 return marking_time_; |
| 1588 } |
| 1589 |
| 1590 // TODO(hpayer): remove, should be handled by GCTracer |
| 1591 void AddSweepingTime(double sweeping_time) { |
| 1592 sweeping_time_ += sweeping_time; |
| 1593 } |
| 1594 |
| 1595 double sweeping_time() const { |
| 1596 return sweeping_time_; |
| 1597 } |
| 1598 |
1581 MarkCompactCollector* mark_compact_collector() { | 1599 MarkCompactCollector* mark_compact_collector() { |
1582 return &mark_compact_collector_; | 1600 return &mark_compact_collector_; |
1583 } | 1601 } |
1584 | 1602 |
1585 StoreBuffer* store_buffer() { | 1603 StoreBuffer* store_buffer() { |
1586 return &store_buffer_; | 1604 return &store_buffer_; |
1587 } | 1605 } |
1588 | 1606 |
1589 Marking* marking() { | 1607 Marking* marking() { |
1590 return &marking_; | 1608 return &marking_; |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 inline void InitializeFunction( | 2033 inline void InitializeFunction( |
2016 JSFunction* function, | 2034 JSFunction* function, |
2017 SharedFunctionInfo* shared, | 2035 SharedFunctionInfo* shared, |
2018 Object* prototype); | 2036 Object* prototype); |
2019 | 2037 |
2020 // Total RegExp code ever generated | 2038 // Total RegExp code ever generated |
2021 double total_regexp_code_generated_; | 2039 double total_regexp_code_generated_; |
2022 | 2040 |
2023 GCTracer* tracer_; | 2041 GCTracer* tracer_; |
2024 | 2042 |
2025 | |
2026 // Allocates a small number to string cache. | 2043 // Allocates a small number to string cache. |
2027 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); | 2044 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); |
2028 // Creates and installs the full-sized number string cache. | 2045 // Creates and installs the full-sized number string cache. |
2029 void AllocateFullSizeNumberStringCache(); | 2046 void AllocateFullSizeNumberStringCache(); |
2030 // Get the length of the number to string cache based on the max semispace | 2047 // Get the length of the number to string cache based on the max semispace |
2031 // size. | 2048 // size. |
2032 int FullSizeNumberStringCacheLength(); | 2049 int FullSizeNumberStringCacheLength(); |
2033 // Flush the number to string cache. | 2050 // Flush the number to string cache. |
2034 void FlushNumberStringCache(); | 2051 void FlushNumberStringCache(); |
2035 | 2052 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2153 intptr_t max_alive_after_gc_; | 2170 intptr_t max_alive_after_gc_; |
2154 | 2171 |
2155 // Minimal interval between two subsequent collections. | 2172 // Minimal interval between two subsequent collections. |
2156 int min_in_mutator_; | 2173 int min_in_mutator_; |
2157 | 2174 |
2158 // Size of objects alive after last GC. | 2175 // Size of objects alive after last GC. |
2159 intptr_t alive_after_last_gc_; | 2176 intptr_t alive_after_last_gc_; |
2160 | 2177 |
2161 double last_gc_end_timestamp_; | 2178 double last_gc_end_timestamp_; |
2162 | 2179 |
| 2180 // Cumulative GC time spent in marking |
| 2181 double marking_time_; |
| 2182 |
| 2183 // Cumulative GC time spent in sweeping |
| 2184 double sweeping_time_; |
| 2185 |
2163 MarkCompactCollector mark_compact_collector_; | 2186 MarkCompactCollector mark_compact_collector_; |
2164 | 2187 |
2165 StoreBuffer store_buffer_; | 2188 StoreBuffer store_buffer_; |
2166 | 2189 |
2167 Marking marking_; | 2190 Marking marking_; |
2168 | 2191 |
2169 IncrementalMarking incremental_marking_; | 2192 IncrementalMarking incremental_marking_; |
2170 | 2193 |
2171 int number_idle_notifications_; | 2194 int number_idle_notifications_; |
2172 unsigned int last_idle_notification_gc_count_; | 2195 unsigned int last_idle_notification_gc_count_; |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2879 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2902 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2880 | 2903 |
2881 private: | 2904 private: |
2882 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2905 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2883 }; | 2906 }; |
2884 #endif // DEBUG || LIVE_OBJECT_LIST | 2907 #endif // DEBUG || LIVE_OBJECT_LIST |
2885 | 2908 |
2886 } } // namespace v8::internal | 2909 } } // namespace v8::internal |
2887 | 2910 |
2888 #endif // V8_HEAP_H_ | 2911 #endif // V8_HEAP_H_ |
OLD | NEW |