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

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

Issue 1213313004: Start incremental marking in long idle notification for background tab (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 5 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
« no previous file with comments | « no previous file | 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 #include <map> 9 #include <map>
10 10
(...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2272 2272
2273 GCIdleTimeHandler::HeapState ComputeHeapState(); 2273 GCIdleTimeHandler::HeapState ComputeHeapState();
2274 2274
2275 bool PerformIdleTimeAction(GCIdleTimeAction action, 2275 bool PerformIdleTimeAction(GCIdleTimeAction action,
2276 GCIdleTimeHandler::HeapState heap_state, 2276 GCIdleTimeHandler::HeapState heap_state,
2277 double deadline_in_ms); 2277 double deadline_in_ms);
2278 2278
2279 void IdleNotificationEpilogue(GCIdleTimeAction action, 2279 void IdleNotificationEpilogue(GCIdleTimeAction action,
2280 GCIdleTimeHandler::HeapState heap_state, 2280 GCIdleTimeHandler::HeapState heap_state,
2281 double start_ms, double deadline_in_ms); 2281 double start_ms, double deadline_in_ms);
2282 void CheckAndNotifyBackgroundIdleNotification(double idle_time_in_ms,
2283 double now_ms);
2282 2284
2283 void ClearObjectStats(bool clear_last_time_stats = false); 2285 void ClearObjectStats(bool clear_last_time_stats = false);
2284 2286
2285 inline void UpdateAllocationsHash(HeapObject* object); 2287 inline void UpdateAllocationsHash(HeapObject* object);
2286 inline void UpdateAllocationsHash(uint32_t value); 2288 inline void UpdateAllocationsHash(uint32_t value);
2287 inline void PrintAlloctionsHash(); 2289 inline void PrintAlloctionsHash();
2288 2290
2289 void AddToRingBuffer(const char* string); 2291 void AddToRingBuffer(const char* string);
2290 void GetFromRingBuffer(char* buffer); 2292 void GetFromRingBuffer(char* buffer);
2291 2293
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2867 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2866 2868
2867 private: 2869 private:
2868 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2870 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2869 }; 2871 };
2870 #endif // DEBUG 2872 #endif // DEBUG
2871 } 2873 }
2872 } // namespace v8::internal 2874 } // namespace v8::internal
2873 2875
2874 #endif // V8_HEAP_HEAP_H_ 2876 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698