Ignore:
Timestamp:
Jan 12, 2012, 11:23:44 PM (13 years ago)
Author:
[email protected]
Message:

JavaScriptCore: Mark all exported symbols in the header file automatically.
https://bugs.webkit.org/show_bug.cgi?id=72855

Reviewed by Darin Adler.

Added WTF_EXPORT_PRIVATE and JS_EXPORT_PRIVATE based on JavaScriptCore.exp files.
The change is generated by a tool calledListExportables (https://github.com/omo/ListExportables)

  • API/OpaqueJSString.h:
  • bytecode/CodeBlock.h:
  • bytecode/SamplingTool.h:
  • debugger/Debugger.h:
  • debugger/DebuggerActivation.h:
  • debugger/DebuggerCallFrame.h:
  • heap/AllocationSpace.h:
  • heap/HandleHeap.h:
  • heap/Heap.h:
  • heap/MachineStackMarker.h:
  • heap/MarkStack.h:
  • heap/VTableSpectrum.h:
  • heap/WriteBarrierSupport.h:
  • parser/Nodes.h:
  • parser/ParserArena.h:
  • profiler/Profile.h:
  • runtime/ArgList.h:
  • runtime/CallData.h:
  • runtime/Completion.h:
  • runtime/ConstructData.h:
  • runtime/DateInstance.h:
  • runtime/Error.h:
  • runtime/ExceptionHelpers.h:
  • runtime/FunctionConstructor.h:
  • runtime/Identifier.h:
  • runtime/InitializeThreading.h:
  • runtime/InternalFunction.h:
  • runtime/JSArray.h:
  • runtime/JSByteArray.h:
  • runtime/JSCell.h:
  • runtime/JSFunction.h:
  • runtime/JSGlobalData.cpp:
  • runtime/JSGlobalData.h:
  • runtime/JSGlobalObject.h:
  • runtime/JSGlobalThis.h:
  • runtime/JSLock.h:
  • runtime/JSObject.h:
  • runtime/JSString.h:
  • runtime/JSValue.h:
  • runtime/JSVariableObject.h:
  • runtime/Lookup.h:
  • runtime/MemoryStatistics.h:
  • runtime/ObjectPrototype.h:
  • runtime/Options.h:
  • runtime/PropertyDescriptor.h:
  • runtime/PropertyNameArray.h:
  • runtime/PropertySlot.h:
  • runtime/RegExp.h:
  • runtime/RegExpObject.h:
  • runtime/SamplingCounter.h:
  • runtime/SmallStrings.h:
  • runtime/StringObject.h:
  • runtime/Structure.h:
  • runtime/TimeoutChecker.h:
  • runtime/UString.h:
  • runtime/WriteBarrier.h:
  • wtf/ArrayBufferView.h:
  • wtf/ByteArray.h:
  • wtf/CryptographicallyRandomNumber.h:
  • wtf/CurrentTime.h:
  • wtf/DateMath.h:
  • wtf/DecimalNumber.h:
  • wtf/FastMalloc.cpp:
  • wtf/FastMalloc.h:
  • wtf/MD5.h:
  • wtf/MainThread.h:
  • wtf/MetaAllocator.h:
  • wtf/MetaAllocatorHandle.h:
  • wtf/OSAllocator.h:
  • wtf/PageBlock.h:
  • wtf/RandomNumber.h:
  • wtf/RefCountedLeakCounter.h:
  • wtf/SHA1.h:
  • wtf/Threading.cpp:
  • wtf/Threading.h:
  • wtf/ThreadingPrimitives.h:
  • wtf/WTFThreadData.h:
  • wtf/dtoa.h:
  • wtf/text/AtomicString.h:
  • wtf/text/CString.h:
  • wtf/text/StringBuilder.h:
  • wtf/text/StringImpl.h:
  • wtf/text/WTFString.h:
  • wtf/unicode/Collator.h:
  • wtf/unicode/UTF8.h:
  • yarr/Yarr.h:
  • yarr/YarrPattern.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Heap.h

    r100556 r104900  
    7979        Heap(JSGlobalData*, HeapSize);
    8080        ~Heap();
    81         void destroy(); // JSGlobalData must call destroy() before ~Heap().
     81        JS_EXPORT_PRIVATE void destroy(); // JSGlobalData must call destroy() before ~Heap().
    8282
    8383        JSGlobalData* globalData() const { return m_globalData; }
     
    8585        MachineThreads& machineThreads() { return m_machineThreads; }
    8686
    87         GCActivityCallback* activityCallback();
    88         void setActivityCallback(PassOwnPtr<GCActivityCallback>);
     87        JS_EXPORT_PRIVATE GCActivityCallback* activityCallback();
     88        JS_EXPORT_PRIVATE void setActivityCallback(PassOwnPtr<GCActivityCallback>);
    8989
    9090        // true if an allocation or collection is in progress
     
    9595
    9696        typedef void (*Finalizer)(JSCell*);
    97         void addFinalizer(JSCell*, Finalizer);
     97        JS_EXPORT_PRIVATE void addFinalizer(JSCell*, Finalizer);
    9898
    9999        void notifyIsSafeToCollect() { m_isSafeToCollect = true; }
    100         void collectAllGarbage();
     100        JS_EXPORT_PRIVATE void collectAllGarbage();
    101101
    102102        void reportExtraMemoryCost(size_t cost);
    103103
    104         void protect(JSValue);
    105         bool unprotect(JSValue); // True when the protect count drops to 0.
     104        JS_EXPORT_PRIVATE void protect(JSValue);
     105        JS_EXPORT_PRIVATE bool unprotect(JSValue); // True when the protect count drops to 0.
    106106       
    107107        void jettisonDFGCodeBlock(PassOwnPtr<CodeBlock>);
    108108
    109         size_t size();
    110         size_t capacity();
    111         size_t objectCount();
    112         size_t globalObjectCount();
    113         size_t protectedObjectCount();
    114         size_t protectedGlobalObjectCount();
    115         PassOwnPtr<TypeCountSet> protectedObjectTypeCounts();
    116         PassOwnPtr<TypeCountSet> objectTypeCounts();
     109        JS_EXPORT_PRIVATE size_t size();
     110        JS_EXPORT_PRIVATE size_t capacity();
     111        JS_EXPORT_PRIVATE size_t objectCount();
     112        JS_EXPORT_PRIVATE size_t globalObjectCount();
     113        JS_EXPORT_PRIVATE size_t protectedObjectCount();
     114        JS_EXPORT_PRIVATE size_t protectedGlobalObjectCount();
     115        JS_EXPORT_PRIVATE PassOwnPtr<TypeCountSet> protectedObjectTypeCounts();
     116        JS_EXPORT_PRIVATE PassOwnPtr<TypeCountSet> objectTypeCounts();
    117117
    118118        void pushTempSortVector(Vector<ValueStringPair>*);
     
    142142        };
    143143
    144         bool isValidAllocation(size_t);
    145         void reportExtraMemoryCostSlowCase(size_t);
     144        JS_EXPORT_PRIVATE bool isValidAllocation(size_t);
     145        JS_EXPORT_PRIVATE void reportExtraMemoryCostSlowCase(size_t);
    146146
    147147        // Call this function before any operation that needs to know which cells
Note: See TracChangeset for help on using the changeset viewer.