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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 8 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
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 #include "bindings/core/v8/ScriptWrappableVisitor.h" 5 #include "bindings/core/v8/ScriptWrappableVisitor.h"
6 6
7 #include "bindings/core/v8/ActiveScriptWrappable.h" 7 #include "bindings/core/v8/ActiveScriptWrappable.h"
8 #include "bindings/core/v8/DOMWrapperWorld.h" 8 #include "bindings/core/v8/DOMWrapperWorld.h"
9 #include "bindings/core/v8/ScopedPersistent.h" 9 #include "bindings/core/v8/ScopedPersistent.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "bindings/core/v8/ScriptWrappableVisitorVerifier.h" 11 #include "bindings/core/v8/ScriptWrappableVisitorVerifier.h"
12 #include "bindings/core/v8/V8AbstractEventListener.h" 12 #include "bindings/core/v8/V8AbstractEventListener.h"
13 #include "bindings/core/v8/WrapperTypeInfo.h" 13 #include "bindings/core/v8/WrapperTypeInfo.h"
14 #include "core/dom/DocumentStyleSheetCollection.h" 14 #include "core/dom/DocumentStyleSheetCollection.h"
15 #include "core/dom/ElementRareData.h" 15 #include "core/dom/ElementRareData.h"
16 #include "core/dom/NodeListsNodeData.h" 16 #include "core/dom/NodeListsNodeData.h"
17 #include "core/dom/NodeRareData.h" 17 #include "core/dom/NodeRareData.h"
18 #include "core/dom/StyleEngine.h" 18 #include "core/dom/StyleEngine.h"
19 #include "core/dom/shadow/ElementShadow.h" 19 #include "core/dom/shadow/ElementShadow.h"
20 #include "core/html/imports/HTMLImportsController.h" 20 #include "core/html/imports/HTMLImportsController.h"
21 #include "platform/heap/HeapCompact.h" 21 #include "platform/heap/HeapCompact.h"
22 #include "platform/heap/HeapPage.h" 22 #include "platform/heap/HeapPage.h"
23 #include "platform/scheduler/child/web_scheduler.h"
23 #include "platform/wtf/AutoReset.h" 24 #include "platform/wtf/AutoReset.h"
24 #include "public/platform/Platform.h" 25 #include "public/platform/Platform.h"
25 #include "public/platform/WebScheduler.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 ScriptWrappableVisitor::~ScriptWrappableVisitor() {} 29 ScriptWrappableVisitor::~ScriptWrappableVisitor() {}
30 30
31 void ScriptWrappableVisitor::TracePrologue() { 31 void ScriptWrappableVisitor::TracePrologue() {
32 // This CHECK ensures that wrapper tracing is not started from scopes 32 // This CHECK ensures that wrapper tracing is not started from scopes
33 // that forbid GC execution, e.g., constructors. 33 // that forbid GC execution, e.g., constructors.
34 CHECK(ThreadState::Current()); 34 CHECK(ThreadState::Current());
35 CHECK(!ThreadState::Current()->IsWrapperTracingForbidden()); 35 CHECK(!ThreadState::Current()->IsWrapperTracingForbidden());
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 V8PerIsolateData::From(isolate)->GetScriptWrappableVisitor(); 305 V8PerIsolateData::From(isolate)->GetScriptWrappableVisitor();
306 if (script_wrappable_visitor) 306 if (script_wrappable_visitor)
307 script_wrappable_visitor->PerformCleanup(); 307 script_wrappable_visitor->PerformCleanup();
308 } 308 }
309 309
310 WrapperVisitor* ScriptWrappableVisitor::CurrentVisitor(v8::Isolate* isolate) { 310 WrapperVisitor* ScriptWrappableVisitor::CurrentVisitor(v8::Isolate* isolate) {
311 return V8PerIsolateData::From(isolate)->GetScriptWrappableVisitor(); 311 return V8PerIsolateData::From(isolate)->GetScriptWrappableVisitor();
312 } 312 }
313 313
314 } // namespace blink 314 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698