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

Side by Side Diff: Source/bindings/core/v8/ScriptPromiseResolver.cpp

Issue 954683002: InlinedVisitor: Migrate bindings to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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 #include "config.h" 5 #include "config.h"
6 #include "bindings/core/v8/ScriptPromiseResolver.h" 6 #include "bindings/core/v8/ScriptPromiseResolver.h"
7 7
8 #include "bindings/core/v8/V8RecursionScope.h" 8 #include "bindings/core/v8/V8RecursionScope.h"
9 #include "platform/LifecycleObserver.h" 9 #include "platform/LifecycleObserver.h"
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 // |this| may be deleted here, but it is safe to check |state| because 103 // |this| may be deleted here, but it is safe to check |state| because
104 // it doesn't depend on |this|. When |this| is deleted, |state| can't be 104 // it doesn't depend on |this|. When |this| is deleted, |state| can't be
105 // |Resolving| nor |Rejecting| and hence |this->deref()| can't be executed. 105 // |Resolving| nor |Rejecting| and hence |this->deref()| can't be executed.
106 if (state == Resolving || state == Rejecting) { 106 if (state == Resolving || state == Rejecting) {
107 // |ref| was called in |resolveOrReject|. 107 // |ref| was called in |resolveOrReject|.
108 deref(); 108 deref();
109 } 109 }
110 } 110 }
111 111
112 void ScriptPromiseResolver::trace(Visitor* visitor) 112 DEFINE_TRACE(ScriptPromiseResolver)
113 { 113 {
114 ActiveDOMObject::trace(visitor); 114 ActiveDOMObject::trace(visitor);
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698