Mark a few heap-allocated service worker types as WTF_MAKE_FAST_ALLOCATED
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Nov 2017 21:16:22 +0000 (21:16 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Nov 2017 21:16:22 +0000 (21:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180212

Reviewed by Geoffrey Garen.

Mark a few heap-allocated service worker types as WTF_MAKE_FAST_ALLOCATED for performance.

* workers/service/server/SWOriginStore.h:
* workers/service/server/SWServer.h:
* workers/service/server/SWServerJobQueue.h:
* workers/service/server/SWServerRegistration.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225344 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/workers/service/server/SWOriginStore.h
Source/WebCore/workers/service/server/SWServer.h
Source/WebCore/workers/service/server/SWServerJobQueue.h
Source/WebCore/workers/service/server/SWServerRegistration.h

index 7a92802..1788583 100644 (file)
@@ -1,3 +1,17 @@
+2017-11-30  Chris Dumez  <cdumez@apple.com>
+
+        Mark a few heap-allocated service worker types as WTF_MAKE_FAST_ALLOCATED
+        https://bugs.webkit.org/show_bug.cgi?id=180212
+
+        Reviewed by Geoffrey Garen.
+
+        Mark a few heap-allocated service worker types as WTF_MAKE_FAST_ALLOCATED for performance.
+
+        * workers/service/server/SWOriginStore.h:
+        * workers/service/server/SWServer.h:
+        * workers/service/server/SWServerJobQueue.h:
+        * workers/service/server/SWServerRegistration.h:
+
 2017-11-30  Brady Eidson  <beidson@apple.com>
 
         Make WorkerThread lifetime much more predictable.
index 9f3bff0..a93aa3f 100644 (file)
@@ -34,6 +34,7 @@ namespace WebCore {
 class SecurityOrigin;
 
 class SWOriginStore {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     virtual ~SWOriginStore() = default;
 
index 5f338f6..b8ede17 100644 (file)
@@ -60,9 +60,11 @@ struct ServiceWorkerFetchResult;
 struct ServiceWorkerRegistrationData;
 
 class SWServer {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     class Connection {
-    friend class SWServer;
+        WTF_MAKE_FAST_ALLOCATED;
+        friend class SWServer;
     public:
         WEBCORE_EXPORT virtual ~Connection();
 
index fbcd98a..23ba07a 100644 (file)
@@ -35,6 +35,7 @@
 namespace WebCore {
 
 class SWServerJobQueue {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     explicit SWServerJobQueue(SWServer&, const ServiceWorkerRegistrationKey&);
     SWServerJobQueue(const SWServerRegistration&) = delete;
index 31f6aee..8a10af3 100644 (file)
@@ -44,6 +44,7 @@ struct ExceptionData;
 struct ServiceWorkerFetchResult;
 
 class SWServerRegistration {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     SWServerRegistration(SWServer&, const ServiceWorkerRegistrationKey&, ServiceWorkerUpdateViaCache, const URL& scopeURL, const URL& scriptURL);
     ~SWServerRegistration();