Title: [127484] trunk/Source
Revision
127484
Author
[email protected]
Date
2012-09-04 12:35:54 -0700 (Tue, 04 Sep 2012)

Log Message

Extend the coverage of the Custom Allocation Framework in WTF and in _javascript_Core
https://bugs.webkit.org/show_bug.cgi?id=95737

Reviewed by Eric Seidel.

Add WTF_MAKE_FAST_ALLOCATED macro to the following class declarations because these are instantiated by operator new.

Source/_javascript_Core:

* wtf/CryptographicallyRandomNumber.cpp: CryptographicallyRandomNumber is instantiated at wtf/CryptographicallyRandomNumber.cpp:162.

* heap/MachineStackMarker.cpp:
(MachineThreads::Thread): Thread is instantiated at heap/MachineStackMarker.cpp:196.
* jit/ExecutableAllocatorFixedVMPool.cpp:
(FixedVMPoolExecutableAllocator): FixedVMPoolExecutableAllocator is instantiated at jit/ExecutableAllocatorFixedVMPool.cpp:111
* parser/SourceProviderCache.h:
(SourceProviderCache): SourceProviderCache is instantiated at parser/SourceProvider.h:49.
* parser/SourceProviderCacheItem.h:
(SourceProviderCacheItem): SourceProviderCacheItem is instantiated at parser/Parser.cpp:843.
* runtime/GCActivityCallback.h:
(GCActivityCallback): GCActivityCallback is instantiated at runtime/GCActivityCallback.h:96.
* tools/CodeProfile.h:
(CodeProfile): CodeProfile is instantiated at _javascript_Core/tools/CodeProfiling.cpp:140.

Source/WTF:

* wtf/CryptographicallyRandomNumber.cpp: CryptographicallyRandomNumber is instantiated at wtf/CryptographicallyRandomNumber.cpp:162.
* wtf/MediaTime.h: MediaTime is instantiated at wtf/MediaTime.cpp:288.
* wtf/MetaAllocator.h:
(MetaAllocatorTracker): MetaAllocatorTracker is instantiated at _javascript_Core/tools/CodeProfiling.cpp:120.
* wtf/ThreadingPthreads.cpp:
(PthreadState): PthreadState is instantiated at wtf/ThreadingPthreads.cpp:165.
* wtf/text/AtomicString.cpp:
(AtomicStringTable): AtomicStringTable is instantiated at wtf/text/AtomicString.cpp:43.

Modified Paths

Property Changed

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (127483 => 127484)


--- trunk/Source/_javascript_Core/ChangeLog	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-09-04 19:35:54 UTC (rev 127484)
@@ -1,3 +1,27 @@
+2012-09-04  Zoltan Horvath  <[email protected]>
+
+        Extend the coverage of the Custom Allocation Framework in WTF and in _javascript_Core
+        https://bugs.webkit.org/show_bug.cgi?id=95737
+
+        Reviewed by Eric Seidel.
+
+        Add WTF_MAKE_FAST_ALLOCATED macro to the following class declarations because these are instantiated by operator new.
+
+        * wtf/CryptographicallyRandomNumber.cpp: CryptographicallyRandomNumber is instantiated at wtf/CryptographicallyRandomNumber.cpp:162.
+
+        * heap/MachineStackMarker.cpp:
+        (MachineThreads::Thread): Thread is instantiated at heap/MachineStackMarker.cpp:196.
+        * jit/ExecutableAllocatorFixedVMPool.cpp:
+        (FixedVMPoolExecutableAllocator): FixedVMPoolExecutableAllocator is instantiated at jit/ExecutableAllocatorFixedVMPool.cpp:111
+        * parser/SourceProviderCache.h:
+        (SourceProviderCache): SourceProviderCache is instantiated at parser/SourceProvider.h:49.
+        * parser/SourceProviderCacheItem.h:
+        (SourceProviderCacheItem): SourceProviderCacheItem is instantiated at parser/Parser.cpp:843.
+        * runtime/GCActivityCallback.h:
+        (GCActivityCallback): GCActivityCallback is instantiated at runtime/GCActivityCallback.h:96.
+        * tools/CodeProfile.h:
+        (CodeProfile): CodeProfile is instantiated at _javascript_Core/tools/CodeProfiling.cpp:140.
+
 2012-09-04  Mark Hahnenberg  <[email protected]>
 
         Remove uses of ClassInfo from SpeculativeJIT::compileObjectOrOtherLogicalNot

Modified: trunk/Source/_javascript_Core/heap/MachineStackMarker.cpp (127483 => 127484)


--- trunk/Source/_javascript_Core/heap/MachineStackMarker.cpp	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/heap/MachineStackMarker.cpp	2012-09-04 19:35:54 UTC (rev 127484)
@@ -107,6 +107,7 @@
 #endif
 
 class MachineThreads::Thread {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     Thread(const PlatformThread& platThread, void* base)
         : platformThread(platThread)

Modified: trunk/Source/_javascript_Core/jit/ExecutableAllocatorFixedVMPool.cpp (127483 => 127484)


--- trunk/Source/_javascript_Core/jit/ExecutableAllocatorFixedVMPool.cpp	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/jit/ExecutableAllocatorFixedVMPool.cpp	2012-09-04 19:35:54 UTC (rev 127484)
@@ -48,6 +48,7 @@
 uintptr_t startOfFixedExecutableMemoryPool;
 
 class FixedVMPoolExecutableAllocator : public MetaAllocator {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     FixedVMPoolExecutableAllocator()
         : MetaAllocator(jitAllocationGranule) // round up all allocations to 32 bytes

Modified: trunk/Source/_javascript_Core/parser/SourceProviderCache.h (127483 => 127484)


--- trunk/Source/_javascript_Core/parser/SourceProviderCache.h	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/parser/SourceProviderCache.h	2012-09-04 19:35:54 UTC (rev 127484)
@@ -34,6 +34,7 @@
 namespace JSC {
 
 class SourceProviderCache {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     SourceProviderCache() : m_contentByteSize(0) {}
     JS_EXPORT_PRIVATE ~SourceProviderCache();

Modified: trunk/Source/_javascript_Core/parser/SourceProviderCacheItem.h (127483 => 127484)


--- trunk/Source/_javascript_Core/parser/SourceProviderCacheItem.h	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/parser/SourceProviderCacheItem.h	2012-09-04 19:35:54 UTC (rev 127484)
@@ -33,6 +33,7 @@
 namespace JSC {
 
 class SourceProviderCacheItem {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     SourceProviderCacheItem(int closeBraceLine, int closeBracePos)
         : closeBraceLine(closeBraceLine) 

Modified: trunk/Source/_javascript_Core/runtime/GCActivityCallback.h (127483 => 127484)


--- trunk/Source/_javascript_Core/runtime/GCActivityCallback.h	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/runtime/GCActivityCallback.h	2012-09-04 19:35:54 UTC (rev 127484)
@@ -42,6 +42,7 @@
 class Heap;
 
 class GCActivityCallback : public HeapTimer {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     virtual void didAllocate(size_t) { }
     virtual void willCollect() { }

Modified: trunk/Source/_javascript_Core/tools/CodeProfile.h (127483 => 127484)


--- trunk/Source/_javascript_Core/tools/CodeProfile.h	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/_javascript_Core/tools/CodeProfile.h	2012-09-04 19:35:54 UTC (rev 127484)
@@ -33,6 +33,7 @@
 namespace JSC {
 
 class CodeProfile {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     CodeProfile(const SourceCode& source, CodeProfile* parent)
         : m_file(source.provider()->url().utf8())

Modified: trunk/Source/WTF/ChangeLog (127483 => 127484)


--- trunk/Source/WTF/ChangeLog	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/WTF/ChangeLog	2012-09-04 19:35:54 UTC (rev 127484)
@@ -1,3 +1,21 @@
+2012-09-04  Zoltan Horvath  <[email protected]>
+
+        Extend the coverage of the Custom Allocation Framework in WTF and in _javascript_Core
+        https://bugs.webkit.org/show_bug.cgi?id=95737
+
+        Reviewed by Eric Seidel.
+
+        Add WTF_MAKE_FAST_ALLOCATED macro to the following class declarations because these are instantiated by operator new.
+
+        * wtf/CryptographicallyRandomNumber.cpp: CryptographicallyRandomNumber is instantiated at wtf/CryptographicallyRandomNumber.cpp:162.
+        * wtf/MediaTime.h: MediaTime is instantiated at wtf/MediaTime.cpp:288.
+        * wtf/MetaAllocator.h:
+        (MetaAllocatorTracker): MetaAllocatorTracker is instantiated at _javascript_Core/tools/CodeProfiling.cpp:120.
+        * wtf/ThreadingPthreads.cpp:
+        (PthreadState): PthreadState is instantiated at wtf/ThreadingPthreads.cpp:165.
+        * wtf/text/AtomicString.cpp:
+        (AtomicStringTable): AtomicStringTable is instantiated at wtf/text/AtomicString.cpp:43.
+
 2012-09-01  Mark Lam  <[email protected]>
 
         LLInt C loop backend.

Modified: trunk/Source/WTF/wtf/CryptographicallyRandomNumber.cpp (127483 => 127484)


--- trunk/Source/WTF/wtf/CryptographicallyRandomNumber.cpp	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/WTF/wtf/CryptographicallyRandomNumber.cpp	2012-09-04 19:35:54 UTC (rev 127484)
@@ -50,6 +50,7 @@
 };
 
 class ARC4RandomNumberGenerator {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     ARC4RandomNumberGenerator();
 

Modified: trunk/Source/WTF/wtf/MediaTime.h (127483 => 127484)


--- trunk/Source/WTF/wtf/MediaTime.h	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/WTF/wtf/MediaTime.h	2012-09-04 19:35:54 UTC (rev 127484)
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "FastAllocBase.h"
+
 #include <cmath>
 #include <limits>
 #include <math.h>
@@ -34,6 +36,7 @@
 namespace WTF {
 
 class WTF_EXPORT_PRIVATE MediaTime {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     enum {
         Valid = 1 << 0,
Property changes on: trunk/Source/WTF/wtf/MediaTime.h
___________________________________________________________________

Added: svn:executable

Modified: trunk/Source/WTF/wtf/MetaAllocator.h (127483 => 127484)


--- trunk/Source/WTF/wtf/MetaAllocator.h	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/WTF/wtf/MetaAllocator.h	2012-09-04 19:35:54 UTC (rev 127484)
@@ -44,6 +44,7 @@
 #define ENABLE_META_ALLOCATOR_PROFILE 0
 
 class MetaAllocatorTracker {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     void notify(MetaAllocatorHandle*);
     void release(MetaAllocatorHandle*);

Modified: trunk/Source/WTF/wtf/ThreadingPthreads.cpp (127483 => 127484)


--- trunk/Source/WTF/wtf/ThreadingPthreads.cpp	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/WTF/wtf/ThreadingPthreads.cpp	2012-09-04 19:35:54 UTC (rev 127484)
@@ -62,6 +62,7 @@
 namespace WTF {
 
 class PthreadState {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     enum JoinableState {
         Joinable, // The default thread state. The thread can be joined on.

Modified: trunk/Source/WTF/wtf/text/AtomicString.cpp (127483 => 127484)


--- trunk/Source/WTF/wtf/text/AtomicString.cpp	2012-09-04 19:23:41 UTC (rev 127483)
+++ trunk/Source/WTF/wtf/text/AtomicString.cpp	2012-09-04 19:35:54 UTC (rev 127484)
@@ -37,6 +37,7 @@
 COMPILE_ASSERT(sizeof(AtomicString) == sizeof(String), atomic_string_and_string_must_be_same_size);
 
 class AtomicStringTable {
+    WTF_MAKE_FAST_ALLOCATED;
 public:
     static AtomicStringTable* create()
     {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to