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

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

Issue 629903003: Check if there is still time before finalizing an incremental collection. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 // the code that belongs to the allocation site and derive the lifetime 1933 // the code that belongs to the allocation site and derive the lifetime
1934 // of the allocation site. 1934 // of the allocation site.
1935 unsigned int maximum_size_scavenges_; 1935 unsigned int maximum_size_scavenges_;
1936 1936
1937 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. 1937 // TODO(hpayer): Allocation site pretenuring may make this method obsolete.
1938 // Re-visit incremental marking heuristics. 1938 // Re-visit incremental marking heuristics.
1939 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } 1939 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; }
1940 1940
1941 void SelectScavengingVisitorsTable(); 1941 void SelectScavengingVisitorsTable();
1942 1942
1943 void AdvanceIdleIncrementalMarking(intptr_t step_size); 1943 void TryFinalizeIdleIncrementalMarking(
1944 size_t idle_time_in_ms, size_t size_of_objects,
1945 size_t mark_compact_speed_in_bytes_per_ms);
1944 1946
1945 bool WorthActivatingIncrementalMarking(); 1947 bool WorthActivatingIncrementalMarking();
1946 1948
1947 void ClearObjectStats(bool clear_last_time_stats = false); 1949 void ClearObjectStats(bool clear_last_time_stats = false);
1948 1950
1949 void set_weak_object_to_code_table(Object* value) { 1951 void set_weak_object_to_code_table(Object* value) {
1950 DCHECK(!InNewSpace(value)); 1952 DCHECK(!InNewSpace(value));
1951 weak_object_to_code_table_ = value; 1953 weak_object_to_code_table_ = value;
1952 } 1954 }
1953 1955
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2509 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2508 2510
2509 private: 2511 private:
2510 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2512 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2511 }; 2513 };
2512 #endif // DEBUG 2514 #endif // DEBUG
2513 } 2515 }
2514 } // namespace v8::internal 2516 } // namespace v8::internal
2515 2517
2516 #endif // V8_HEAP_HEAP_H_ 2518 #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