Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: Source/platform/heap/ThreadState.h

Issue 1185573005: Oilpan: Fix return type of ThreadState::checkThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 return **s_threadSpecific; 306 return **s_threadSpecific;
307 #endif 307 #endif
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 bool checkThread() const 316 void checkThread() const { ASSERT(m_thread == currentThread()); }
317 {
318 ASSERT(m_thread == currentThread());
319 return true;
320 }
321 317
322 void didV8MajorGC(bool forceGC); 318 void didV8MajorGC(bool forceGC);
323 319
324 void performIdleGC(double deadlineSeconds); 320 void performIdleGC(double deadlineSeconds);
325 void performIdleLazySweep(double deadlineSeconds); 321 void performIdleLazySweep(double deadlineSeconds);
326 322
327 void scheduleIdleGC(); 323 void scheduleIdleGC();
328 void scheduleIdleLazySweep(); 324 void scheduleIdleLazySweep();
329 void schedulePreciseGC(); 325 void schedulePreciseGC();
330 void scheduleGCIfNeeded(); 326 void scheduleGCIfNeeded();
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 }; 773 };
778 774
779 template<> class ThreadStateFor<AnyThread> { 775 template<> class ThreadStateFor<AnyThread> {
780 public: 776 public:
781 static ThreadState* state() { return ThreadState::current(); } 777 static ThreadState* state() { return ThreadState::current(); }
782 }; 778 };
783 779
784 } // namespace blink 780 } // namespace blink
785 781
786 #endif // ThreadState_h 782 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698