Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: third_party/WebKit/Source/platform/heap/WrapperVisitor.h

Issue 2050463003: Check if Member owner thread matches pointer thread and current thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 WrapperVisitor_h 5 #ifndef WrapperVisitor_h
6 #define WrapperVisitor_h 6 #define WrapperVisitor_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 TraceTrait<T>::heapObjectHeader, 108 TraceTrait<T>::heapObjectHeader,
109 traceable); 109 traceable);
110 } 110 }
111 111
112 template<typename T> 112 template<typename T>
113 void traceWrappers(const Member<T>& t) const 113 void traceWrappers(const Member<T>& t) const
114 { 114 {
115 traceWrappers(t.get()); 115 traceWrappers(t.get());
116 } 116 }
117 117
118 template<typename T>
119 void traceWrappers(const WeakMember<T>& t) const
120 {
121 traceWrappers(t.get());
122 }
123
118 virtual void traceWrappers(const ScopedPersistent<v8::Value>* persistent) co nst = 0; 124 virtual void traceWrappers(const ScopedPersistent<v8::Value>* persistent) co nst = 0;
119 virtual void traceWrappers(const ScopedPersistent<v8::Object>* persistent) c onst = 0; 125 virtual void traceWrappers(const ScopedPersistent<v8::Object>* persistent) c onst = 0;
120 virtual void markWrapper(const v8::PersistentBase<v8::Object>* persistent) c onst = 0; 126 virtual void markWrapper(const v8::PersistentBase<v8::Object>* persistent) c onst = 0;
121 127
122 virtual void dispatchTraceWrappers(const ScriptWrappable*) const = 0; 128 virtual void dispatchTraceWrappers(const ScriptWrappable*) const = 0;
123 #define DECLARE_DISPATCH_TRACE_WRAPPERS(className) \ 129 #define DECLARE_DISPATCH_TRACE_WRAPPERS(className) \
124 virtual void dispatchTraceWrappers(const className*) const = 0; 130 virtual void dispatchTraceWrappers(const className*) const = 0;
125 131
126 WRAPPER_VISITOR_SPECIAL_CLASSES(DECLARE_DISPATCH_TRACE_WRAPPERS); 132 WRAPPER_VISITOR_SPECIAL_CLASSES(DECLARE_DISPATCH_TRACE_WRAPPERS);
127 133
128 #undef DECLARE_DISPATCH_TRACE_WRAPPERS 134 #undef DECLARE_DISPATCH_TRACE_WRAPPERS
129 virtual void dispatchTraceWrappers(const void*) const = 0; 135 virtual void dispatchTraceWrappers(const void*) const = 0;
130 136
131 virtual bool markWrapperHeader(HeapObjectHeader*) const = 0; 137 virtual bool markWrapperHeader(HeapObjectHeader*) const = 0;
132 virtual void markWrappersInAllWorlds(const ScriptWrappable*) const = 0; 138 virtual void markWrappersInAllWorlds(const ScriptWrappable*) const = 0;
133 virtual void markWrappersInAllWorlds(const void*) const = 0; 139 virtual void markWrappersInAllWorlds(const void*) const = 0;
134 virtual void pushToMarkingDeque( 140 virtual void pushToMarkingDeque(
135 void (*traceWrappersCallback)(const WrapperVisitor*, const void*), 141 void (*traceWrappersCallback)(const WrapperVisitor*, const void*),
136 HeapObjectHeader* (*heapObjectHeaderCallback)(const void*), 142 HeapObjectHeader* (*heapObjectHeaderCallback)(const void*),
137 const void*) const = 0; 143 const void*) const = 0;
138 }; 144 };
139 145
140 } // namespace blink 146 } // namespace blink
141 147
142 #endif // WrapperVisitor_h 148 #endif // WrapperVisitor_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698