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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | |
537 private: | 533 private: |
538 enum SnapshotType { | 534 enum SnapshotType { |
539 HeapSnapshot, | 535 HeapSnapshot, |
540 FreelistSnapshot | 536 FreelistSnapshot |
541 }; | 537 }; |
542 | 538 |
543 ThreadState(bool perThreadHeapEnabled); | 539 ThreadState(bool perThreadHeapEnabled); |
544 ~ThreadState(); | 540 ~ThreadState(); |
545 | 541 |
546 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); | 542 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 709 |
714 template<> class ThreadStateFor<AnyThread> { | 710 template<> class ThreadStateFor<AnyThread> { |
715 STATIC_ONLY(ThreadStateFor); | 711 STATIC_ONLY(ThreadStateFor); |
716 public: | 712 public: |
717 static ThreadState* state() { return ThreadState::current(); } | 713 static ThreadState* state() { return ThreadState::current(); } |
718 }; | 714 }; |
719 | 715 |
720 } // namespace blink | 716 } // namespace blink |
721 | 717 |
722 #endif // ThreadState_h | 718 #endif // ThreadState_h |
OLD | NEW |