| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |