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

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

Issue 1881983003: Move PartitionAlloc related things into wtf/allocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 /* 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "core/dom/shadow/ElementShadow.h" 45 #include "core/dom/shadow/ElementShadow.h"
46 #include "core/dom/shadow/ShadowRoot.h" 46 #include "core/dom/shadow/ShadowRoot.h"
47 #include "core/html/HTMLTemplateElement.h" 47 #include "core/html/HTMLTemplateElement.h"
48 #include "core/html/imports/HTMLImportsController.h" 48 #include "core/html/imports/HTMLImportsController.h"
49 #include "core/inspector/InspectorTraceEvents.h" 49 #include "core/inspector/InspectorTraceEvents.h"
50 #include "core/svg/SVGElement.h" 50 #include "core/svg/SVGElement.h"
51 #include "platform/Histogram.h" 51 #include "platform/Histogram.h"
52 #include "platform/TraceEvent.h" 52 #include "platform/TraceEvent.h"
53 #include "public/platform/BlameContext.h" 53 #include "public/platform/BlameContext.h"
54 #include "public/platform/Platform.h" 54 #include "public/platform/Platform.h"
55 #include "wtf/Partitions.h"
56 #include "wtf/Vector.h" 55 #include "wtf/Vector.h"
56 #include "wtf/allocator/Partitions.h"
57 #include <algorithm> 57 #include <algorithm>
58 58
59 namespace blink { 59 namespace blink {
60 60
61 // FIXME: This should use opaque GC roots. 61 // FIXME: This should use opaque GC roots.
62 static void addReferencesForNodeWithEventListeners(v8::Isolate* isolate, Node* n ode, const v8::Persistent<v8::Object>& wrapper) 62 static void addReferencesForNodeWithEventListeners(v8::Isolate* isolate, Node* n ode, const v8::Persistent<v8::Object>& wrapper)
63 { 63 {
64 ASSERT(node->hasEventListeners()); 64 ASSERT(node->hasEventListeners());
65 65
66 EventListenerIterator iterator(node); 66 EventListenerIterator iterator(node);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 DEFINE_THREAD_SAFE_STATIC_LOCAL(CustomCountHistogram, scanPendingActivityHis togram, new CustomCountHistogram("Blink.ScanPendingActivityDuration", 1, 1000, 5 0)); 480 DEFINE_THREAD_SAFE_STATIC_LOCAL(CustomCountHistogram, scanPendingActivityHis togram, new CustomCountHistogram("Blink.ScanPendingActivityDuration", 1, 1000, 5 0));
481 double startTime = WTF::currentTimeMS(); 481 double startTime = WTF::currentTimeMS();
482 v8::HandleScope scope(isolate); 482 v8::HandleScope scope(isolate);
483 PendingActivityVisitor visitor(isolate, executionContext); 483 PendingActivityVisitor visitor(isolate, executionContext);
484 toIsolate(executionContext)->VisitHandlesWithClassIds(&visitor); 484 toIsolate(executionContext)->VisitHandlesWithClassIds(&visitor);
485 scanPendingActivityHistogram.count(static_cast<int>(WTF::currentTimeMS() - s tartTime)); 485 scanPendingActivityHistogram.count(static_cast<int>(WTF::currentTimeMS() - s tartTime));
486 return visitor.pendingActivityFound(); 486 return visitor.pendingActivityFound();
487 } 487 }
488 488
489 } // namespace blink 489 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/CoreInitializer.cpp » ('j') | third_party/WebKit/Source/wtf/Allocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698