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

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

Issue 496873004: Reland part of r23285 "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: Diff between this CL and r23285 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 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 unsigned int maximum_size_scavenges_; 1922 unsigned int maximum_size_scavenges_;
1923 1923
1924 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. 1924 // TODO(hpayer): Allocation site pretenuring may make this method obsolete.
1925 // Re-visit incremental marking heuristics. 1925 // Re-visit incremental marking heuristics.
1926 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } 1926 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; }
1927 1927
1928 void SelectScavengingVisitorsTable(); 1928 void SelectScavengingVisitorsTable();
1929 1929
1930 void AdvanceIdleIncrementalMarking(intptr_t step_size); 1930 void AdvanceIdleIncrementalMarking(intptr_t step_size);
1931 1931
1932 bool WorthActivatingIncrementalMarking();
1933
1932 void ClearObjectStats(bool clear_last_time_stats = false); 1934 void ClearObjectStats(bool clear_last_time_stats = false);
1933 1935
1934 void set_weak_object_to_code_table(Object* value) { 1936 void set_weak_object_to_code_table(Object* value) {
1935 DCHECK(!InNewSpace(value)); 1937 DCHECK(!InNewSpace(value));
1936 weak_object_to_code_table_ = value; 1938 weak_object_to_code_table_ = value;
1937 } 1939 }
1938 1940
1939 Object** weak_object_to_code_table_address() { 1941 Object** weak_object_to_code_table_address() {
1940 return &weak_object_to_code_table_; 1942 return &weak_object_to_code_table_;
1941 } 1943 }
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2493 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2492 2494
2493 private: 2495 private:
2494 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2496 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2495 }; 2497 };
2496 #endif // DEBUG 2498 #endif // DEBUG
2497 } 2499 }
2498 } // namespace v8::internal 2500 } // namespace v8::internal
2499 2501
2500 #endif // V8_HEAP_HEAP_H_ 2502 #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