| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ScriptWrappableVisitor_h | 5 #ifndef ScriptWrappableVisitor_h |
| 6 #define ScriptWrappableVisitor_h | 6 #define ScriptWrappableVisitor_h |
| 7 | 7 |
| 8 #include <v8.h> |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 10 #include "platform/RuntimeEnabledFeatures.h" | 11 #include "platform/RuntimeEnabledFeatures.h" |
| 11 #include "platform/heap/HeapPage.h" | 12 #include "platform/heap/HeapPage.h" |
| 12 #include "platform/heap/WrapperVisitor.h" | 13 #include "platform/heap/WrapperVisitor.h" |
| 13 #include "wtf/Deque.h" | 14 #include "wtf/Deque.h" |
| 14 #include "wtf/Vector.h" | 15 #include "wtf/Vector.h" |
| 15 #include <v8.h> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class HeapObjectHeader; | 19 class HeapObjectHeader; |
| 20 template <typename T> | 20 template <typename T> |
| 21 class Member; | 21 class Member; |
| 22 template <typename T> | 22 template <typename T> |
| 23 class TraceWrapperV8Reference; | 23 class TraceWrapperV8Reference; |
| 24 | 24 |
| 25 class WrapperMarkingData { | 25 class WrapperMarkingData { |
| 26 public: | 26 public: |
| 27 | |
| 28 WrapperMarkingData(void (*traceWrappersCallback)(const WrapperVisitor*, | 27 WrapperMarkingData(void (*traceWrappersCallback)(const WrapperVisitor*, |
| 29 const void*), | 28 const void*), |
| 30 HeapObjectHeader* (*heapObjectHeaderCallback)(const void*), | 29 HeapObjectHeader* (*heapObjectHeaderCallback)(const void*), |
| 31 const void* object) | 30 const void* object) |
| 32 : m_traceWrappersCallback(traceWrappersCallback), | 31 : m_traceWrappersCallback(traceWrappersCallback), |
| 33 m_heapObjectHeaderCallback(heapObjectHeaderCallback), | 32 m_heapObjectHeaderCallback(heapObjectHeaderCallback), |
| 34 m_rawObjectPointer(object) { | 33 m_rawObjectPointer(object) { |
| 35 DCHECK(m_traceWrappersCallback); | 34 DCHECK(m_traceWrappersCallback); |
| 36 DCHECK(m_heapObjectHeaderCallback); | 35 DCHECK(m_heapObjectHeaderCallback); |
| 37 DCHECK(m_rawObjectPointer); | 36 DCHECK(m_rawObjectPointer); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // - oilpan objects cannot move | 234 // - oilpan objects cannot move |
| 236 // - objects this headers belong to are invalidated by the oilpan GC in | 235 // - objects this headers belong to are invalidated by the oilpan GC in |
| 237 // invalidateDeadObjectsInMarkingDeque. | 236 // invalidateDeadObjectsInMarkingDeque. |
| 238 mutable WTF::Vector<HeapObjectHeader*> m_headersToUnmark; | 237 mutable WTF::Vector<HeapObjectHeader*> m_headersToUnmark; |
| 239 v8::Isolate* m_isolate; | 238 v8::Isolate* m_isolate; |
| 240 }; | 239 }; |
| 241 | 240 |
| 242 } // namespace blink | 241 } // namespace blink |
| 243 | 242 |
| 244 #endif // ScriptWrappableVisitor_h | 243 #endif // ScriptWrappableVisitor_h |
| OLD | NEW |