Chromium Code Reviews| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 554 return cell_space(); | 554 return cell_space(); |
| 555 case CODE_SPACE: | 555 case CODE_SPACE: |
| 556 return code_space(); | 556 return code_space(); |
| 557 case NEW_SPACE: | 557 case NEW_SPACE: |
| 558 case LO_SPACE: | 558 case LO_SPACE: |
| 559 UNREACHABLE(); | 559 UNREACHABLE(); |
| 560 } | 560 } |
| 561 return NULL; | 561 return NULL; |
| 562 } | 562 } |
| 563 | 563 |
| 564 // TODO(hpayer): remove, should be handled by GCTracer | |
|
Michael Starzinger
2013/01/29 12:13:47
Move all of these accessors down to where the othe
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
| |
| 565 void AddMarkingTime(double marking_time) { | |
| 566 marking_time_ += marking_time; | |
| 567 } | |
| 568 | |
| 569 double marking_time() const { | |
| 570 return marking_time_; | |
| 571 } | |
| 572 | |
| 573 // TODO(hpayer): remove, should be handled by GCTracer | |
| 574 void AddSweepingTime(double sweeping_time) { | |
| 575 sweeping_time_ += sweeping_time; | |
| 576 } | |
| 577 | |
| 578 double sweeping_time() const { | |
| 579 return sweeping_time_; | |
| 580 } | |
| 581 | |
| 564 bool always_allocate() { return always_allocate_scope_depth_ != 0; } | 582 bool always_allocate() { return always_allocate_scope_depth_ != 0; } |
| 565 Address always_allocate_scope_depth_address() { | 583 Address always_allocate_scope_depth_address() { |
| 566 return reinterpret_cast<Address>(&always_allocate_scope_depth_); | 584 return reinterpret_cast<Address>(&always_allocate_scope_depth_); |
| 567 } | 585 } |
| 568 bool linear_allocation() { | 586 bool linear_allocation() { |
| 569 return linear_allocation_scope_depth_ != 0; | 587 return linear_allocation_scope_depth_ != 0; |
| 570 } | 588 } |
| 571 | 589 |
| 572 Address* NewSpaceAllocationTopAddress() { | 590 Address* NewSpaceAllocationTopAddress() { |
| 573 return new_space_.allocation_top_address(); | 591 return new_space_.allocation_top_address(); |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1570 } | 1588 } |
| 1571 | 1589 |
| 1572 // Returns maximum GC pause. | 1590 // Returns maximum GC pause. |
| 1573 int get_max_gc_pause() { return max_gc_pause_; } | 1591 int get_max_gc_pause() { return max_gc_pause_; } |
| 1574 | 1592 |
| 1575 // Returns maximum size of objects alive after GC. | 1593 // Returns maximum size of objects alive after GC. |
| 1576 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } | 1594 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } |
| 1577 | 1595 |
| 1578 // Returns minimal interval between two subsequent collections. | 1596 // Returns minimal interval between two subsequent collections. |
| 1579 int get_min_in_mutator() { return min_in_mutator_; } | 1597 int get_min_in_mutator() { return min_in_mutator_; } |
| 1580 | 1598 |
|
Michael Starzinger
2013/01/29 12:13:47
... to here.
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
| |
| 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 // GC time spent in marking | |
|
Michael Starzinger
2013/01/29 12:13:47
s/GC time/Cumulative GC time/
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
| |
| 2181 double marking_time_; | |
| 2182 | |
| 2183 // GC time spent in sweeping | |
|
Michael Starzinger
2013/01/29 12:13:47
Likewise.
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
| |
| 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 |