Changeset 127484 in webkit


Ignore:
Timestamp:
Sep 4, 2012, 12:35:54 PM (13 years ago)
Author:
[email protected]
Message:

Extend the coverage of the Custom Allocation Framework in WTF and in JavaScriptCore
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/JavaScriptCore:

  • 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 JavaScriptCore/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 JavaScriptCore/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.

Location:
trunk/Source
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r127479 r127484  
     12012-09-04  Zoltan Horvath  <[email protected]>
     2
     3        Extend the coverage of the Custom Allocation Framework in WTF and in JavaScriptCore
     4        https://bugs.webkit.org/show_bug.cgi?id=95737
     5
     6        Reviewed by Eric Seidel.
     7
     8        Add WTF_MAKE_FAST_ALLOCATED macro to the following class declarations because these are instantiated by operator new.
     9
     10        * wtf/CryptographicallyRandomNumber.cpp: CryptographicallyRandomNumber is instantiated at wtf/CryptographicallyRandomNumber.cpp:162.
     11
     12        * heap/MachineStackMarker.cpp:
     13        (MachineThreads::Thread): Thread is instantiated at heap/MachineStackMarker.cpp:196.
     14        * jit/ExecutableAllocatorFixedVMPool.cpp:
     15        (FixedVMPoolExecutableAllocator): FixedVMPoolExecutableAllocator is instantiated at jit/ExecutableAllocatorFixedVMPool.cpp:111
     16        * parser/SourceProviderCache.h:
     17        (SourceProviderCache): SourceProviderCache is instantiated at parser/SourceProvider.h:49.
     18        * parser/SourceProviderCacheItem.h:
     19        (SourceProviderCacheItem): SourceProviderCacheItem is instantiated at parser/Parser.cpp:843.
     20        * runtime/GCActivityCallback.h:
     21        (GCActivityCallback): GCActivityCallback is instantiated at runtime/GCActivityCallback.h:96.
     22        * tools/CodeProfile.h:
     23        (CodeProfile): CodeProfile is instantiated at JavaScriptCore/tools/CodeProfiling.cpp:140.
     24
    1252012-09-04  Mark Hahnenberg  <[email protected]>
    226
  • trunk/Source/JavaScriptCore/heap/MachineStackMarker.cpp

    r126476 r127484  
    108108
    109109class MachineThreads::Thread {
     110    WTF_MAKE_FAST_ALLOCATED;
    110111public:
    111112    Thread(const PlatformThread& platThread, void* base)
  • trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp

    r122166 r127484  
    4949
    5050class FixedVMPoolExecutableAllocator : public MetaAllocator {
     51    WTF_MAKE_FAST_ALLOCATED;
    5152public:
    5253    FixedVMPoolExecutableAllocator()
  • trunk/Source/JavaScriptCore/parser/SourceProviderCache.h

    r104318 r127484  
    3535
    3636class SourceProviderCache {
     37    WTF_MAKE_FAST_ALLOCATED;
    3738public:
    3839    SourceProviderCache() : m_contentByteSize(0) {}
  • trunk/Source/JavaScriptCore/parser/SourceProviderCacheItem.h

    r124729 r127484  
    3434
    3535class SourceProviderCacheItem {
     36    WTF_MAKE_FAST_ALLOCATED;
    3637public:
    3738    SourceProviderCacheItem(int closeBraceLine, int closeBracePos)
  • trunk/Source/JavaScriptCore/runtime/GCActivityCallback.h

    r121381 r127484  
    4343
    4444class GCActivityCallback : public HeapTimer {
     45    WTF_MAKE_FAST_ALLOCATED;
    4546public:
    4647    virtual void didAllocate(size_t) { }
  • trunk/Source/JavaScriptCore/tools/CodeProfile.h

    r106197 r127484  
    3434
    3535class CodeProfile {
     36    WTF_MAKE_FAST_ALLOCATED;
    3637public:
    3738    CodeProfile(const SourceCode& source, CodeProfile* parent)
  • trunk/Source/WTF/ChangeLog

    r127374 r127484  
     12012-09-04  Zoltan Horvath  <[email protected]>
     2
     3        Extend the coverage of the Custom Allocation Framework in WTF and in JavaScriptCore
     4        https://bugs.webkit.org/show_bug.cgi?id=95737
     5
     6        Reviewed by Eric Seidel.
     7
     8        Add WTF_MAKE_FAST_ALLOCATED macro to the following class declarations because these are instantiated by operator new.
     9
     10        * wtf/CryptographicallyRandomNumber.cpp: CryptographicallyRandomNumber is instantiated at wtf/CryptographicallyRandomNumber.cpp:162.
     11        * wtf/MediaTime.h: MediaTime is instantiated at wtf/MediaTime.cpp:288.
     12        * wtf/MetaAllocator.h:
     13        (MetaAllocatorTracker): MetaAllocatorTracker is instantiated at JavaScriptCore/tools/CodeProfiling.cpp:120.
     14        * wtf/ThreadingPthreads.cpp:
     15        (PthreadState): PthreadState is instantiated at wtf/ThreadingPthreads.cpp:165.
     16        * wtf/text/AtomicString.cpp:
     17        (AtomicStringTable): AtomicStringTable is instantiated at wtf/text/AtomicString.cpp:43.
     18
    1192012-09-01  Mark Lam  <[email protected]>
    220
  • trunk/Source/WTF/wtf/CryptographicallyRandomNumber.cpp

    r111778 r127484  
    5151
    5252class ARC4RandomNumberGenerator {
     53    WTF_MAKE_FAST_ALLOCATED;
    5354public:
    5455    ARC4RandomNumberGenerator();
  • trunk/Source/WTF/wtf/MediaTime.h

    • Property svn:executable set to *
    r123982 r127484  
    2727 */
    2828
     29#include "FastAllocBase.h"
     30
    2931#include <cmath>
    3032#include <limits>
     
    3537
    3638class WTF_EXPORT_PRIVATE MediaTime {
     39    WTF_MAKE_FAST_ALLOCATED;
    3740public:
    3841    enum {
  • trunk/Source/WTF/wtf/MetaAllocator.h

    r111778 r127484  
    4545
    4646class MetaAllocatorTracker {
     47    WTF_MAKE_FAST_ALLOCATED;
    4748public:
    4849    void notify(MetaAllocatorHandle*);
  • trunk/Source/WTF/wtf/ThreadingPthreads.cpp

    r126926 r127484  
    6363
    6464class PthreadState {
     65    WTF_MAKE_FAST_ALLOCATED;
    6566public:
    6667    enum JoinableState {
  • trunk/Source/WTF/wtf/text/AtomicString.cpp

    r125958 r127484  
    3838
    3939class AtomicStringTable {
     40    WTF_MAKE_FAST_ALLOCATED;
    4041public:
    4142    static AtomicStringTable* create()
Note: See TracChangeset for help on using the changeset viewer.