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

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

Issue 2307003002: Move collectGarbage* methods to ThreadState (Closed)
Patch Set: fix Created 4 years, 3 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
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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 523
524 void resetHeapCounters(); 524 void resetHeapCounters();
525 void increaseAllocatedObjectSize(size_t); 525 void increaseAllocatedObjectSize(size_t);
526 void decreaseAllocatedObjectSize(size_t); 526 void decreaseAllocatedObjectSize(size_t);
527 void increaseMarkedObjectSize(size_t); 527 void increaseMarkedObjectSize(size_t);
528 528
529 void callThreadShutdownHooks(); 529 void callThreadShutdownHooks();
530 530
531 v8::Isolate* isolate() const { return m_isolate; } 531 v8::Isolate* isolate() const { return m_isolate; }
532 532
533 void collectGarbage(BlinkGC::StackState, BlinkGC::GCType, BlinkGC::GCReason) ;
534 void collectGarbageForTerminatingThread();
535 void collectAllGarbage();
536
533 private: 537 private:
534 enum SnapshotType { 538 enum SnapshotType {
535 HeapSnapshot, 539 HeapSnapshot,
536 FreelistSnapshot 540 FreelistSnapshot
537 }; 541 };
538 542
539 ThreadState(bool perThreadHeapEnabled); 543 ThreadState(bool perThreadHeapEnabled);
540 ~ThreadState(); 544 ~ThreadState();
541 545
542 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); 546 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 713
710 template<> class ThreadStateFor<AnyThread> { 714 template<> class ThreadStateFor<AnyThread> {
711 STATIC_ONLY(ThreadStateFor); 715 STATIC_ONLY(ThreadStateFor);
712 public: 716 public:
713 static ThreadState* state() { return ThreadState::current(); } 717 static ThreadState* state() { return ThreadState::current(); }
714 }; 718 };
715 719
716 } // namespace blink 720 } // namespace blink
717 721
718 #endif // ThreadState_h 722 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/RunAllTests.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698