Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: src/heap/heap.h

Issue 492263002: Start incremental marking in idle time handler only if it is worthwhile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 unsigned int maximum_size_scavenges_; 1925 unsigned int maximum_size_scavenges_;
1926 1926
1927 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. 1927 // TODO(hpayer): Allocation site pretenuring may make this method obsolete.
1928 // Re-visit incremental marking heuristics. 1928 // Re-visit incremental marking heuristics.
1929 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } 1929 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; }
1930 1930
1931 void SelectScavengingVisitorsTable(); 1931 void SelectScavengingVisitorsTable();
1932 1932
1933 void AdvanceIdleIncrementalMarking(intptr_t step_size); 1933 void AdvanceIdleIncrementalMarking(intptr_t step_size);
1934 1934
1935 bool WorthActivatingIncrementalMarking();
1936
1935 void ClearObjectStats(bool clear_last_time_stats = false); 1937 void ClearObjectStats(bool clear_last_time_stats = false);
1936 1938
1937 void set_weak_object_to_code_table(Object* value) { 1939 void set_weak_object_to_code_table(Object* value) {
1938 DCHECK(!InNewSpace(value)); 1940 DCHECK(!InNewSpace(value));
1939 weak_object_to_code_table_ = value; 1941 weak_object_to_code_table_ = value;
1940 } 1942 }
1941 1943
1942 Object** weak_object_to_code_table_address() { 1944 Object** weak_object_to_code_table_address() {
1943 return &weak_object_to_code_table_; 1945 return &weak_object_to_code_table_;
1944 } 1946 }
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2494 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2496 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2495 2497
2496 private: 2498 private:
2497 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2499 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2498 }; 2500 };
2499 #endif // DEBUG 2501 #endif // DEBUG
2500 } 2502 }
2501 } // namespace v8::internal 2503 } // namespace v8::internal
2502 2504
2503 #endif // V8_HEAP_HEAP_H_ 2505 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698