Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 #if ENABLE(ASSERT) | 321 #if ENABLE(ASSERT) |
| 322 bool checkThread() const { return m_thread == currentThread(); } | 322 bool checkThread() const { return m_thread == currentThread(); } |
| 323 #endif | 323 #endif |
| 324 | 324 |
| 325 void performIdleGC(double deadlineSeconds); | 325 void performIdleGC(double deadlineSeconds); |
| 326 void performIdleLazySweep(double deadlineSeconds); | 326 void performIdleLazySweep(double deadlineSeconds); |
| 327 | 327 |
| 328 void scheduleIdleGC(); | 328 void scheduleIdleGC(); |
| 329 void scheduleIdleLazySweep(); | 329 void scheduleIdleLazySweep(); |
| 330 void schedulePreciseGC(); | 330 void schedulePreciseGC(); |
| 331 void scheduleV8FollowupGCIfNeeded(); | 331 void scheduleV8FollowupGCIfNeeded(bool shouldScheduleIdleGC); |
|
keishi
2015/09/10 12:53:39
nit: maybe enum is better https://www.chromium.org
haraken
2015/09/10 13:09:11
Done.
| |
| 332 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); | 332 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); |
| 333 void schedulePageNavigationGC(); | 333 void schedulePageNavigationGC(); |
| 334 void scheduleGCIfNeeded(); | 334 void scheduleGCIfNeeded(); |
| 335 void setGCState(GCState); | 335 void setGCState(GCState); |
| 336 GCState gcState() const; | 336 GCState gcState() const; |
| 337 bool isInGC() const { return gcState() == GCRunning; } | 337 bool isInGC() const { return gcState() == GCRunning; } |
| 338 bool isSweepingInProgress() const | 338 bool isSweepingInProgress() const |
| 339 { | 339 { |
| 340 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled; | 340 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled; |
| 341 } | 341 } |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 826 }; | 826 }; |
| 827 | 827 |
| 828 template<> class ThreadStateFor<AnyThread> { | 828 template<> class ThreadStateFor<AnyThread> { |
| 829 public: | 829 public: |
| 830 static ThreadState* state() { return ThreadState::current(); } | 830 static ThreadState* state() { return ThreadState::current(); } |
| 831 }; | 831 }; |
| 832 | 832 |
| 833 } // namespace blink | 833 } // namespace blink |
| 834 | 834 |
| 835 #endif // ThreadState_h | 835 #endif // ThreadState_h |
| OLD | NEW |