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