| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 void performIdleGC(double deadlineSeconds); | 332 void performIdleGC(double deadlineSeconds); |
| 333 void performIdleLazySweep(double deadlineSeconds); | 333 void performIdleLazySweep(double deadlineSeconds); |
| 334 | 334 |
| 335 void scheduleIdleGC(); | 335 void scheduleIdleGC(); |
| 336 void scheduleIdleLazySweep(); | 336 void scheduleIdleLazySweep(); |
| 337 void schedulePreciseGC(); | 337 void schedulePreciseGC(); |
| 338 void scheduleV8FollowupGCIfNeeded(V8GCType); | 338 void scheduleV8FollowupGCIfNeeded(V8GCType); |
| 339 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); | 339 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); |
| 340 void schedulePageNavigationGC(); | 340 void schedulePageNavigationGC(); |
| 341 void scheduleGCIfNeeded(); | 341 void scheduleGCIfNeeded(); |
| 342 void willStartV8GC(); |
| 342 void setGCState(GCState); | 343 void setGCState(GCState); |
| 343 GCState gcState() const; | 344 GCState gcState() const; |
| 344 bool isInGC() const { return gcState() == GCRunning; } | 345 bool isInGC() const { return gcState() == GCRunning; } |
| 345 bool isSweepingInProgress() const | 346 bool isSweepingInProgress() const |
| 346 { | 347 { |
| 347 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul
ed || gcState() == SweepingAndIdleGCScheduled; | 348 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul
ed || gcState() == SweepingAndIdleGCScheduled; |
| 348 } | 349 } |
| 349 | 350 |
| 350 // A GC runs in the following sequence. | 351 // A GC runs in the following sequence. |
| 351 // | 352 // |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 }; | 826 }; |
| 826 | 827 |
| 827 template<> class ThreadStateFor<AnyThread> { | 828 template<> class ThreadStateFor<AnyThread> { |
| 828 public: | 829 public: |
| 829 static ThreadState* state() { return ThreadState::current(); } | 830 static ThreadState* state() { return ThreadState::current(); } |
| 830 }; | 831 }; |
| 831 | 832 |
| 832 } // namespace blink | 833 } // namespace blink |
| 833 | 834 |
| 834 #endif // ThreadState_h | 835 #endif // ThreadState_h |
| OLD | NEW |