| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 { | 56 { |
| 57 // As this is global marking visitor, we need to mark all objects. | 57 // As this is global marking visitor, we need to mark all objects. |
| 58 return true; | 58 return true; |
| 59 } | 59 } |
| 60 | 60 |
| 61 inline Visitor::MarkingMode markingMode() const | 61 inline Visitor::MarkingMode markingMode() const |
| 62 { | 62 { |
| 63 return m_visitor->markingMode(); | 63 return m_visitor->markingMode(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 #if ENABLE(GC_PROFILING) | |
| 67 inline void recordObjectGraphEdge(const void* objectPointer) | |
| 68 { | |
| 69 m_visitor->recordObjectGraphEdge(objectPointer); | |
| 70 } | |
| 71 #endif | |
| 72 | |
| 73 private: | 66 private: |
| 74 static InlinedGlobalMarkingVisitor fromHelper(Helper* helper) | 67 static InlinedGlobalMarkingVisitor fromHelper(Helper* helper) |
| 75 { | 68 { |
| 76 return *static_cast<InlinedGlobalMarkingVisitor*>(helper); | 69 return *static_cast<InlinedGlobalMarkingVisitor*>(helper); |
| 77 } | 70 } |
| 78 | 71 |
| 79 Visitor* m_visitor; | 72 Visitor* m_visitor; |
| 80 }; | 73 }; |
| 81 | 74 |
| 82 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) | 75 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) |
| 83 { | 76 { |
| 84 } | 77 } |
| 85 | 78 |
| 86 } // namespace blink | 79 } // namespace blink |
| 87 | 80 |
| 88 #endif | 81 #endif |
| OLD | NEW |