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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 enum GCType { | 179 enum GCType { |
180 GCWithSweep, // Sweeping is completed in Heap::collectGarbage(). | 180 GCWithSweep, // Sweeping is completed in Heap::collectGarbage(). |
181 GCWithoutSweep, // Lazy sweeping is scheduled. | 181 GCWithoutSweep, // Lazy sweeping is scheduled. |
182 }; | 182 }; |
183 | 183 |
184 // See setGCState() for possible state transitions. | 184 // See setGCState() for possible state transitions. |
185 enum GCState { | 185 enum GCState { |
186 NoGCScheduled, | 186 NoGCScheduled, |
187 IdleGCScheduled, | 187 IdleGCScheduled, |
188 PreciseGCScheduled, | 188 PreciseGCScheduled, |
189 GCScheduledForTesting, | 189 FullGCScheduled, |
190 StoppingOtherThreads, | 190 StoppingOtherThreads, |
191 GCRunning, | 191 GCRunning, |
192 EagerSweepScheduled, | 192 EagerSweepScheduled, |
193 LazySweepScheduled, | 193 LazySweepScheduled, |
194 Sweeping, | 194 Sweeping, |
195 SweepingAndIdleGCScheduled, | 195 SweepingAndIdleGCScheduled, |
196 SweepingAndPreciseGCScheduled, | 196 SweepingAndPreciseGCScheduled, |
197 }; | 197 }; |
198 | 198 |
199 // The NoAllocationScope class is used in debug mode to catch unwanted | 199 // The NoAllocationScope class is used in debug mode to catch unwanted |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 }; | 736 }; |
737 | 737 |
738 template<> class ThreadStateFor<AnyThread> { | 738 template<> class ThreadStateFor<AnyThread> { |
739 public: | 739 public: |
740 static ThreadState* state() { return ThreadState::current(); } | 740 static ThreadState* state() { return ThreadState::current(); } |
741 }; | 741 }; |
742 | 742 |
743 } // namespace blink | 743 } // namespace blink |
744 | 744 |
745 #endif // ThreadState_h | 745 #endif // ThreadState_h |
OLD | NEW |