OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "bindings/core/v8/V8GCController.h" | 31 #include "bindings/core/v8/V8GCController.h" |
32 | 32 |
33 #include <algorithm> | 33 #include <algorithm> |
34 #include <unordered_map> | 34 #include <unordered_map> |
35 #include <unordered_set> | 35 #include <unordered_set> |
36 #include "bindings/core/v8/RetainedDOMInfo.h" | 36 #include "bindings/core/v8/RetainedDOMInfo.h" |
37 #include "bindings/core/v8/V8AbstractEventListener.h" | 37 #include "bindings/core/v8/V8AbstractEventListener.h" |
38 #include "bindings/core/v8/V8BindingForCore.h" | 38 #include "bindings/core/v8/V8BindingForCore.h" |
39 #include "bindings/core/v8/V8Node.h" | 39 #include "bindings/core/v8/V8Node.h" |
40 #include "bindings/core/v8/V8ScriptRunner.h" | 40 #include "bindings/core/v8/V8ScriptRunner.h" |
41 #include "bindings/core/v8/WrapperTypeInfo.h" | |
42 #include "core/dom/Attr.h" | 41 #include "core/dom/Attr.h" |
43 #include "core/dom/Element.h" | 42 #include "core/dom/Element.h" |
44 #include "core/dom/Node.h" | 43 #include "core/dom/Node.h" |
45 #include "core/html/imports/HTMLImportsController.h" | 44 #include "core/html/imports/HTMLImportsController.h" |
46 #include "core/inspector/InspectorTraceEvents.h" | 45 #include "core/inspector/InspectorTraceEvents.h" |
47 #include "platform/Histogram.h" | 46 #include "platform/Histogram.h" |
48 #include "platform/RuntimeEnabledFeatures.h" | 47 #include "platform/RuntimeEnabledFeatures.h" |
49 #include "platform/bindings/ActiveScriptWrappable.h" | 48 #include "platform/bindings/ActiveScriptWrappable.h" |
50 #include "platform/bindings/ScriptWrappableVisitor.h" | 49 #include "platform/bindings/ScriptWrappableVisitor.h" |
| 50 #include "platform/bindings/WrapperTypeInfo.h" |
51 #include "platform/instrumentation/tracing/TraceEvent.h" | 51 #include "platform/instrumentation/tracing/TraceEvent.h" |
52 #include "platform/wtf/Vector.h" | 52 #include "platform/wtf/Vector.h" |
53 #include "platform/wtf/allocator/Partitions.h" | 53 #include "platform/wtf/allocator/Partitions.h" |
54 #include "public/platform/BlameContext.h" | 54 #include "public/platform/BlameContext.h" |
55 #include "public/platform/Platform.h" | 55 #include "public/platform/Platform.h" |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 Node* V8GCController::OpaqueRootForGC(v8::Isolate*, Node* node) { | 59 Node* V8GCController::OpaqueRootForGC(v8::Isolate*, Node* node) { |
60 DCHECK(node); | 60 DCHECK(node); |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 double start_time = WTF::CurrentTimeMS(); | 553 double start_time = WTF::CurrentTimeMS(); |
554 v8::HandleScope scope(isolate); | 554 v8::HandleScope scope(isolate); |
555 PendingActivityVisitor visitor(isolate, execution_context); | 555 PendingActivityVisitor visitor(isolate, execution_context); |
556 ToIsolate(execution_context)->VisitHandlesWithClassIds(&visitor); | 556 ToIsolate(execution_context)->VisitHandlesWithClassIds(&visitor); |
557 scan_pending_activity_histogram.Count( | 557 scan_pending_activity_histogram.Count( |
558 static_cast<int>(WTF::CurrentTimeMS() - start_time)); | 558 static_cast<int>(WTF::CurrentTimeMS() - start_time)); |
559 return visitor.PendingActivityFound(); | 559 return visitor.PendingActivityFound(); |
560 } | 560 } |
561 | 561 |
562 } // namespace blink | 562 } // namespace blink |
OLD | NEW |