| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef InlinedGlobalMarkingVisitor_h | 5 #ifndef InlinedGlobalMarkingVisitor_h |
| 6 #define InlinedGlobalMarkingVisitor_h | 6 #define InlinedGlobalMarkingVisitor_h |
| 7 | 7 |
| 8 #include "platform/heap/MarkingVisitorImpl.h" | 8 #include "platform/heap/MarkingVisitorImpl.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 m_visitor->recordObjectGraphEdge(objectPointer); | 64 m_visitor->recordObjectGraphEdge(objectPointer); |
| 65 } | 65 } |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 static InlinedGlobalMarkingVisitor fromHelper(Helper* helper) | 69 static InlinedGlobalMarkingVisitor fromHelper(Helper* helper) |
| 70 { | 70 { |
| 71 return *static_cast<InlinedGlobalMarkingVisitor*>(helper); | 71 return *static_cast<InlinedGlobalMarkingVisitor*>(helper); |
| 72 } | 72 } |
| 73 | 73 |
| 74 #if ENABLE(ASSERT) | |
| 75 inline void checkMarkingAllowed() { m_visitor->checkMarkingAllowed(); } | |
| 76 #endif | |
| 77 | |
| 78 Visitor* m_visitor; | 74 Visitor* m_visitor; |
| 79 }; | 75 }; |
| 80 | 76 |
| 81 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) | 77 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) |
| 82 { | 78 { |
| 83 } | 79 } |
| 84 | 80 |
| 85 } // namespace blink | 81 } // namespace blink |
| 86 | 82 |
| 87 #endif | 83 #endif |
| OLD | NEW |