| 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 size_t m_arenaAges[BlinkGC::NumberOfArenas]; | 644 size_t m_arenaAges[BlinkGC::NumberOfArenas]; |
| 645 size_t m_currentArenaAges; | 645 size_t m_currentArenaAges; |
| 646 | 646 |
| 647 bool m_perThreadHeapEnabled; | 647 bool m_perThreadHeapEnabled; |
| 648 bool m_isTerminating; | 648 bool m_isTerminating; |
| 649 GarbageCollectedMixinConstructorMarker* m_gcMixinMarker; | 649 GarbageCollectedMixinConstructorMarker* m_gcMixinMarker; |
| 650 | 650 |
| 651 bool m_shouldFlushHeapDoesNotContainCache; | 651 bool m_shouldFlushHeapDoesNotContainCache; |
| 652 GCState m_gcState; | 652 GCState m_gcState; |
| 653 | 653 |
| 654 CallbackStack* m_threadLocalWeakCallbackStack; | 654 std::unique_ptr<CallbackStack> m_threadLocalWeakCallbackStack; |
| 655 | 655 |
| 656 // Pre-finalizers are called in the reverse order in which they are | 656 // Pre-finalizers are called in the reverse order in which they are |
| 657 // registered by the constructors (including constructors of Mixin objects) | 657 // registered by the constructors (including constructors of Mixin objects) |
| 658 // for an object, by processing the m_orderedPreFinalizers back-to-front. | 658 // for an object, by processing the m_orderedPreFinalizers back-to-front. |
| 659 ListHashSet<PreFinalizer> m_orderedPreFinalizers; | 659 ListHashSet<PreFinalizer> m_orderedPreFinalizers; |
| 660 | 660 |
| 661 v8::Isolate* m_isolate; | 661 v8::Isolate* m_isolate; |
| 662 void (*m_traceDOMWrappers)(v8::Isolate*, Visitor*); | 662 void (*m_traceDOMWrappers)(v8::Isolate*, Visitor*); |
| 663 void (*m_invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*); | 663 void (*m_invalidateDeadObjectsInWrappersMarkingDeque)(v8::Isolate*); |
| 664 | 664 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 706 |
| 707 template<> class ThreadStateFor<AnyThread> { | 707 template<> class ThreadStateFor<AnyThread> { |
| 708 STATIC_ONLY(ThreadStateFor); | 708 STATIC_ONLY(ThreadStateFor); |
| 709 public: | 709 public: |
| 710 static ThreadState* state() { return ThreadState::current(); } | 710 static ThreadState* state() { return ThreadState::current(); } |
| 711 }; | 711 }; |
| 712 | 712 |
| 713 } // namespace blink | 713 } // namespace blink |
| 714 | 714 |
| 715 #endif // ThreadState_h | 715 #endif // ThreadState_h |
| OLD | NEW |