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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } | 308 } |
309 | 309 |
310 static ThreadState* mainThreadState() | 310 static ThreadState* mainThreadState() |
311 { | 311 { |
312 return reinterpret_cast<ThreadState*>(s_mainThreadStateStorage); | 312 return reinterpret_cast<ThreadState*>(s_mainThreadStateStorage); |
313 } | 313 } |
314 | 314 |
315 bool isMainThread() const { return this == mainThreadState(); } | 315 bool isMainThread() const { return this == mainThreadState(); } |
316 void checkThread() const { ASSERT(m_thread == currentThread()); } | 316 void checkThread() const { ASSERT(m_thread == currentThread()); } |
317 | 317 |
318 void didV8MajorGC(bool forceGC); | 318 void didV8MajorGC(); |
319 | 319 |
320 void performIdleGC(double deadlineSeconds); | 320 void performIdleGC(double deadlineSeconds); |
321 void performIdleLazySweep(double deadlineSeconds); | 321 void performIdleLazySweep(double deadlineSeconds); |
322 | 322 |
323 void scheduleIdleGC(); | 323 void scheduleIdleGC(); |
324 void scheduleIdleLazySweep(); | 324 void scheduleIdleLazySweep(); |
325 void schedulePreciseGC(); | 325 void schedulePreciseGC(); |
326 void scheduleGCIfNeeded(); | 326 void scheduleGCIfNeeded(); |
327 void setGCState(GCState); | 327 void setGCState(GCState); |
328 GCState gcState() const; | 328 GCState gcState() const; |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 }; | 773 }; |
774 | 774 |
775 template<> class ThreadStateFor<AnyThread> { | 775 template<> class ThreadStateFor<AnyThread> { |
776 public: | 776 public: |
777 static ThreadState* state() { return ThreadState::current(); } | 777 static ThreadState* state() { return ThreadState::current(); } |
778 }; | 778 }; |
779 | 779 |
780 } // namespace blink | 780 } // namespace blink |
781 | 781 |
782 #endif // ThreadState_h | 782 #endif // ThreadState_h |
OLD | NEW |