| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 void leaveStaticReferenceRegistrationDisabledScope(); | 515 void leaveStaticReferenceRegistrationDisabledScope(); |
| 516 #endif | 516 #endif |
| 517 | 517 |
| 518 void resetHeapCounters(); | 518 void resetHeapCounters(); |
| 519 void increaseAllocatedObjectSize(size_t); | 519 void increaseAllocatedObjectSize(size_t); |
| 520 void decreaseAllocatedObjectSize(size_t); | 520 void decreaseAllocatedObjectSize(size_t); |
| 521 void increaseMarkedObjectSize(size_t); | 521 void increaseMarkedObjectSize(size_t); |
| 522 | 522 |
| 523 void callThreadShutdownHooks(); | 523 void callThreadShutdownHooks(); |
| 524 | 524 |
| 525 v8::Isolate* isolate() const { return m_isolate; } |
| 526 |
| 525 private: | 527 private: |
| 526 enum SnapshotType { | 528 enum SnapshotType { |
| 527 HeapSnapshot, | 529 HeapSnapshot, |
| 528 FreelistSnapshot | 530 FreelistSnapshot |
| 529 }; | 531 }; |
| 530 | 532 |
| 531 ThreadState(bool perThreadHeapEnabled); | 533 ThreadState(bool perThreadHeapEnabled); |
| 532 ~ThreadState(); | 534 ~ThreadState(); |
| 533 | 535 |
| 534 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); | 536 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 | 701 |
| 700 template<> class ThreadStateFor<AnyThread> { | 702 template<> class ThreadStateFor<AnyThread> { |
| 701 STATIC_ONLY(ThreadStateFor); | 703 STATIC_ONLY(ThreadStateFor); |
| 702 public: | 704 public: |
| 703 static ThreadState* state() { return ThreadState::current(); } | 705 static ThreadState* state() { return ThreadState::current(); } |
| 704 }; | 706 }; |
| 705 | 707 |
| 706 } // namespace blink | 708 } // namespace blink |
| 707 | 709 |
| 708 #endif // ThreadState_h | 710 #endif // ThreadState_h |
| OLD | NEW |