Chromium Code Reviews| 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 521 | 521 |
| 522 void resetHeapCounters(); | 522 void resetHeapCounters(); |
| 523 void increaseAllocatedObjectSize(size_t); | 523 void increaseAllocatedObjectSize(size_t); |
| 524 void decreaseAllocatedObjectSize(size_t); | 524 void decreaseAllocatedObjectSize(size_t); |
| 525 void increaseMarkedObjectSize(size_t); | 525 void increaseMarkedObjectSize(size_t); |
| 526 | 526 |
| 527 void callThreadShutdownHooks(); | 527 void callThreadShutdownHooks(); |
| 528 | 528 |
| 529 v8::Isolate* isolate() const { return m_isolate; } | 529 v8::Isolate* isolate() const { return m_isolate; } |
| 530 | 530 |
| 531 void invalidateDeadObjectsInWrappersMarkingDeque() | |
|
haraken
2016/06/20 14:20:57
Is this method used somewhere?
Marcel Hlopko
2016/06/20 16:26:45
Removed.
| |
| 532 { | |
| 533 if (m_invalidateDeadObjectsInWrappersMarkingDeque) { | |
| 534 m_invalidateDeadObjectsInWrappersMarkingDeque(m_isolate); | |
| 535 } | |
| 536 } | |
| 537 | |
| 531 private: | 538 private: |
| 532 enum SnapshotType { | 539 enum SnapshotType { |
| 533 HeapSnapshot, | 540 HeapSnapshot, |
| 534 FreelistSnapshot | 541 FreelistSnapshot |
| 535 }; | 542 }; |
| 536 | 543 |
| 537 ThreadState(bool perThreadHeapEnabled); | 544 ThreadState(bool perThreadHeapEnabled); |
| 538 ~ThreadState(); | 545 ~ThreadState(); |
| 539 | 546 |
| 540 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); | 547 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 706 | 713 |
| 707 template<> class ThreadStateFor<AnyThread> { | 714 template<> class ThreadStateFor<AnyThread> { |
| 708 STATIC_ONLY(ThreadStateFor); | 715 STATIC_ONLY(ThreadStateFor); |
| 709 public: | 716 public: |
| 710 static ThreadState* state() { return ThreadState::current(); } | 717 static ThreadState* state() { return ThreadState::current(); } |
| 711 }; | 718 }; |
| 712 | 719 |
| 713 } // namespace blink | 720 } // namespace blink |
| 714 | 721 |
| 715 #endif // ThreadState_h | 722 #endif // ThreadState_h |
| OLD | NEW |