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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h

Issue 2652923002: Devirtualize Visitor and remove inline visitor specialization. (Closed)
Patch Set: rebased Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/core/dom/StaticNodeList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ScriptPromiseProperty_h 5 #ifndef ScriptPromiseProperty_h
6 #define ScriptPromiseProperty_h 6 #define ScriptPromiseProperty_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromisePropertyBase.h" 9 #include "bindings/core/v8/ScriptPromisePropertyBase.h"
10 #include "bindings/core/v8/ToV8.h" 10 #include "bindings/core/v8/ToV8.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::reset() { 174 void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::reset() {
175 resetBase(); 175 resetBase();
176 m_resolved = ResolvedType(); 176 m_resolved = ResolvedType();
177 m_rejected = RejectedType(); 177 m_rejected = RejectedType();
178 m_resolvedWithUndefined = false; 178 m_resolvedWithUndefined = false;
179 } 179 }
180 180
181 template <typename HolderType, typename ResolvedType, typename RejectedType> 181 template <typename HolderType, typename ResolvedType, typename RejectedType>
182 void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::trace( 182 void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::trace(
183 Visitor* visitor) { 183 Visitor* visitor) {
184 traceImpl(visitor);
185 }
186 template <typename HolderType, typename ResolvedType, typename RejectedType>
187 void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::trace(
188 InlinedGlobalMarkingVisitor visitor) {
189 traceImpl(visitor);
190 }
191
192 template <typename HolderType, typename ResolvedType, typename RejectedType>
193 template <typename VisitorDispatcher>
194 void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::traceImpl(
195 VisitorDispatcher visitor) {
196 TraceIfNeeded<HolderType>::trace(visitor, m_holder); 184 TraceIfNeeded<HolderType>::trace(visitor, m_holder);
197 TraceIfNeeded<ResolvedType>::trace(visitor, m_resolved); 185 TraceIfNeeded<ResolvedType>::trace(visitor, m_resolved);
198 TraceIfNeeded<RejectedType>::trace(visitor, m_rejected); 186 TraceIfNeeded<RejectedType>::trace(visitor, m_rejected);
199 ScriptPromisePropertyBase::trace(visitor); 187 ScriptPromisePropertyBase::trace(visitor);
200 } 188 }
201 189
202 } // namespace blink 190 } // namespace blink
203 191
204 #endif // ScriptPromiseProperty_h 192 #endif // ScriptPromiseProperty_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StaticNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698