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

Side by Side Diff: third_party/WebKit/Source/platform/heap/ThreadState.h

Issue 1652103003: Oilpan: Remove synchronous completeSweep() from V8's minor GC prologue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void performIdleGC(double deadlineSeconds); 241 void performIdleGC(double deadlineSeconds);
242 void performIdleLazySweep(double deadlineSeconds); 242 void performIdleLazySweep(double deadlineSeconds);
243 243
244 void scheduleIdleGC(); 244 void scheduleIdleGC();
245 void scheduleIdleLazySweep(); 245 void scheduleIdleLazySweep();
246 void schedulePreciseGC(); 246 void schedulePreciseGC();
247 void scheduleV8FollowupGCIfNeeded(BlinkGC::V8GCType); 247 void scheduleV8FollowupGCIfNeeded(BlinkGC::V8GCType);
248 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); 248 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio);
249 void schedulePageNavigationGC(); 249 void schedulePageNavigationGC();
250 void scheduleGCIfNeeded(); 250 void scheduleGCIfNeeded();
251 void willStartV8GC(); 251 void willStartV8GC(BlinkGC::V8GCType);
252 void setGCState(GCState); 252 void setGCState(GCState);
253 GCState gcState() const { return m_gcState; } 253 GCState gcState() const { return m_gcState; }
254 bool isInGC() const { return gcState() == GCRunning; } 254 bool isInGC() const { return gcState() == GCRunning; }
255 bool isSweepingInProgress() const 255 bool isSweepingInProgress() const
256 { 256 {
257 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled; 257 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled;
258 } 258 }
259 259
260 // A GC runs in the following sequence. 260 // A GC runs in the following sequence.
261 // 261 //
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 695
696 template<> class ThreadStateFor<AnyThread> { 696 template<> class ThreadStateFor<AnyThread> {
697 STATIC_ONLY(ThreadStateFor); 697 STATIC_ONLY(ThreadStateFor);
698 public: 698 public:
699 static ThreadState* state() { return ThreadState::current(); } 699 static ThreadState* state() { return ThreadState::current(); }
700 }; 700 };
701 701
702 } // namespace blink 702 } // namespace blink
703 703
704 #endif // ThreadState_h 704 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698