| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 #if defined(LEAK_SANITIZER) | 534 #if defined(LEAK_SANITIZER) |
| 535 void enterStaticReferenceRegistrationDisabledScope(); | 535 void enterStaticReferenceRegistrationDisabledScope(); |
| 536 void leaveStaticReferenceRegistrationDisabledScope(); | 536 void leaveStaticReferenceRegistrationDisabledScope(); |
| 537 #endif | 537 #endif |
| 538 | 538 |
| 539 void resetHeapCounters(); | 539 void resetHeapCounters(); |
| 540 void increaseAllocatedObjectSize(size_t); | 540 void increaseAllocatedObjectSize(size_t); |
| 541 void decreaseAllocatedObjectSize(size_t); | 541 void decreaseAllocatedObjectSize(size_t); |
| 542 void increaseMarkedObjectSize(size_t); | 542 void increaseMarkedObjectSize(size_t); |
| 543 | 543 |
| 544 void callThreadShutdownHooks(); | |
| 545 | |
| 546 v8::Isolate* isolate() const { return m_isolate; } | 544 v8::Isolate* isolate() const { return m_isolate; } |
| 547 | 545 |
| 548 BlinkGC::StackState stackState() const { return m_stackState; } | 546 BlinkGC::StackState stackState() const { return m_stackState; } |
| 549 | 547 |
| 550 void collectGarbage(BlinkGC::StackState, BlinkGC::GCType, BlinkGC::GCReason); | 548 void collectGarbage(BlinkGC::StackState, BlinkGC::GCType, BlinkGC::GCReason); |
| 551 void collectGarbageForTerminatingThread(); | 549 void collectGarbageForTerminatingThread(); |
| 552 void collectAllGarbage(); | 550 void collectAllGarbage(); |
| 553 | 551 |
| 554 // Register the pre-finalizer for the |self| object. The class T must have | 552 // Register the pre-finalizer for the |self| object. The class T must have |
| 555 // USING_PRE_FINALIZER(). | 553 // USING_PRE_FINALIZER(). |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 class ThreadStateFor<AnyThread> { | 772 class ThreadStateFor<AnyThread> { |
| 775 STATIC_ONLY(ThreadStateFor); | 773 STATIC_ONLY(ThreadStateFor); |
| 776 | 774 |
| 777 public: | 775 public: |
| 778 static ThreadState* state() { return ThreadState::current(); } | 776 static ThreadState* state() { return ThreadState::current(); } |
| 779 }; | 777 }; |
| 780 | 778 |
| 781 } // namespace blink | 779 } // namespace blink |
| 782 | 780 |
| 783 #endif // ThreadState_h | 781 #endif // ThreadState_h |
| OLD | NEW |