Commit f0dd2d91 authored by morrita@google.com's avatar morrita@google.com

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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 18b6b0e5
......@@ -46,7 +46,7 @@ struct OpaqueJSString : public ThreadSafeRefCounted<OpaqueJSString> {
return adoptRef(new OpaqueJSString(characters, length));
}
static PassRefPtr<OpaqueJSString> create(const JSC::UString&);
JS_EXPORT_PRIVATE static PassRefPtr<OpaqueJSString> create(const JSC::UString&);
UChar* characters() { return this ? m_characters : 0; }
unsigned length() { return this ? m_length : 0; }
......
2012-01-12 Hajime Morrita <morrita@chromium.org>
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:
2012-01-12 MORITA Hajime <morrita@google.com>
[Chromium] JSExportMacros.h should be visible.
......@@ -94,7 +94,7 @@ namespace JSC {
Heap* m_heap;
public:
virtual ~CodeBlock();
JS_EXPORT_PRIVATE virtual ~CodeBlock();
int numParameters() const { return m_numParameters; }
void setNumParameters(int newValue);
......
......@@ -45,8 +45,8 @@ namespace JSC {
class SamplingFlags {
public:
static void start();
static void stop();
JS_EXPORT_PRIVATE static void start();
JS_EXPORT_PRIVATE static void stop();
#if ENABLE(SAMPLING_FLAGS)
static void setFlag(unsigned flag)
......@@ -89,7 +89,7 @@ namespace JSC {
#endif
private:
static uint32_t s_flags;
JS_EXPORTDATA static uint32_t s_flags;
#if ENABLE(SAMPLING_FLAGS)
static uint64_t s_flagCounts[33];
#endif
......@@ -174,7 +174,7 @@ namespace JSC {
class SamplingRegion {
public:
SamplingRegion(const char*) { }
void dump();
JS_EXPORT_PRIVATE void dump();
};
#endif // ENABLE(SAMPLING_REGIONS)
......@@ -220,8 +220,8 @@ namespace JSC {
static unsigned s_hertz;
static ThreadIdentifier s_samplingThread;
static void start(unsigned hertz=10000);
static void stop();
JS_EXPORT_PRIVATE static void start(unsigned hertz=10000);
JS_EXPORT_PRIVATE static void stop();
static void* threadStartFunc(void*);
};
......@@ -294,7 +294,7 @@ namespace JSC {
memset(m_opcodeSamplesInCTIFunctions, 0, sizeof(m_opcodeSamplesInCTIFunctions));
}
void setup();
JS_EXPORT_PRIVATE void setup();
void dump(ExecState*);
void notifyOfScope(JSGlobalData&, ScriptExecutable* scope);
......
......@@ -58,7 +58,7 @@ namespace JSC {
};
// This function exists only for backwards compatibility with existing WebScriptDebugger clients.
JSValue evaluateInGlobalCallFrame(const UString&, JSValue& exception, JSGlobalObject*);
JS_EXPORT_PRIVATE JSValue evaluateInGlobalCallFrame(const UString&, JSValue& exception, JSGlobalObject*);
} // namespace JSC
......
......@@ -52,7 +52,7 @@ namespace JSC {
static void defineGetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* getterFunction, unsigned attributes);
static void defineSetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* setterFunction, unsigned attributes);
static const ClassInfo s_info;
JS_EXPORTDATA static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype)
{
......@@ -62,10 +62,10 @@ namespace JSC {
protected:
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | OverridesVisitChildren | JSObject::StructureFlags;
void finishCreation(JSGlobalData&, JSObject* activation);
JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, JSObject* activation);
private:
DebuggerActivation(JSGlobalData&);
JS_EXPORT_PRIVATE DebuggerActivation(JSGlobalData&);
WriteBarrier<JSActivation> m_activation;
};
......
......@@ -50,7 +50,7 @@ namespace JSC {
JSGlobalObject* dynamicGlobalObject() const { return m_callFrame->dynamicGlobalObject(); }
ScopeChainNode* scopeChain() const { return m_callFrame->scopeChain(); }
const UString* functionName() const;
JS_EXPORT_PRIVATE const UString* functionName() const;
JS_EXPORT_PRIVATE UString calculatedFunctionName() const;
JS_EXPORT_PRIVATE Type type() const;
JS_EXPORT_PRIVATE JSObject* thisObject() const;
......
......@@ -72,7 +72,7 @@ private:
void* allocate(MarkedSpace::SizeClass&);
void* tryAllocate(MarkedSpace::SizeClass&);
void* allocateSlowCase(MarkedSpace::SizeClass&);
JS_EXPORT_PRIVATE void* allocateSlowCase(MarkedSpace::SizeClass&);
MarkedBlock* allocateBlock(size_t cellSize, AllocationEffort);
Heap* m_heap;
......
......@@ -40,7 +40,7 @@ class JSGlobalData;
class JSValue;
class SlotVisitor;
class WeakHandleOwner {
class JS_EXPORT_PRIVATE WeakHandleOwner {
public:
virtual ~WeakHandleOwner();
virtual bool isReachableFromOpaqueRoots(Handle<Unknown>, void* context, SlotVisitor&);
......@@ -65,7 +65,7 @@ public:
void visitWeakHandles(HeapRootVisitor&);
void finalizeWeakHandles();
void writeBarrier(HandleSlot, const JSValue&);
JS_EXPORT_PRIVATE void writeBarrier(HandleSlot, const JSValue&);
#if !ASSERT_DISABLED
bool hasWeakOwner(HandleSlot, WeakHandleOwner*);
......@@ -111,7 +111,7 @@ private:
static HandleSlot toHandle(Node*);
static Node* toNode(HandleSlot);
void grow();
JS_EXPORT_PRIVATE void grow();
#if ENABLE(GC_VALIDATION) || !ASSERT_DISABLED
bool isValidWeakNode(Node*);
......
......@@ -78,14 +78,14 @@ namespace JSC {
Heap(JSGlobalData*, HeapSize);
~Heap();
void destroy(); // JSGlobalData must call destroy() before ~Heap().
JS_EXPORT_PRIVATE void destroy(); // JSGlobalData must call destroy() before ~Heap().
JSGlobalData* globalData() const { return m_globalData; }
AllocationSpace& objectSpace() { return m_objectSpace; }
MachineThreads& machineThreads() { return m_machineThreads; }
GCActivityCallback* activityCallback();
void setActivityCallback(PassOwnPtr<GCActivityCallback>);
JS_EXPORT_PRIVATE GCActivityCallback* activityCallback();
JS_EXPORT_PRIVATE void setActivityCallback(PassOwnPtr<GCActivityCallback>);
// true if an allocation or collection is in progress
inline bool isBusy();
......@@ -94,26 +94,26 @@ namespace JSC {
void* allocate(size_t);
typedef void (*Finalizer)(JSCell*);
void addFinalizer(JSCell*, Finalizer);
JS_EXPORT_PRIVATE void addFinalizer(JSCell*, Finalizer);
void notifyIsSafeToCollect() { m_isSafeToCollect = true; }
void collectAllGarbage();
JS_EXPORT_PRIVATE void collectAllGarbage();
void reportExtraMemoryCost(size_t cost);
void protect(JSValue);
bool unprotect(JSValue); // True when the protect count drops to 0.
JS_EXPORT_PRIVATE void protect(JSValue);
JS_EXPORT_PRIVATE bool unprotect(JSValue); // True when the protect count drops to 0.
void jettisonDFGCodeBlock(PassOwnPtr<CodeBlock>);
size_t size();
size_t capacity();
size_t objectCount();
size_t globalObjectCount();
size_t protectedObjectCount();
size_t protectedGlobalObjectCount();
PassOwnPtr<TypeCountSet> protectedObjectTypeCounts();
PassOwnPtr<TypeCountSet> objectTypeCounts();
JS_EXPORT_PRIVATE size_t size();
JS_EXPORT_PRIVATE size_t capacity();
JS_EXPORT_PRIVATE size_t objectCount();
JS_EXPORT_PRIVATE size_t globalObjectCount();
JS_EXPORT_PRIVATE size_t protectedObjectCount();
JS_EXPORT_PRIVATE size_t protectedGlobalObjectCount();
JS_EXPORT_PRIVATE PassOwnPtr<TypeCountSet> protectedObjectTypeCounts();
JS_EXPORT_PRIVATE PassOwnPtr<TypeCountSet> objectTypeCounts();
void pushTempSortVector(Vector<ValueStringPair>*);
void popTempSortVector(Vector<ValueStringPair>*);
......@@ -141,8 +141,8 @@ namespace JSC {
virtual void finalize(Handle<Unknown>, void* context);
};
bool isValidAllocation(size_t);
void reportExtraMemoryCostSlowCase(size_t);
JS_EXPORT_PRIVATE bool isValidAllocation(size_t);
JS_EXPORT_PRIVATE void reportExtraMemoryCostSlowCase(size_t);
// Call this function before any operation that needs to know which cells
// in the heap are live. (For example, call this function before
......
......@@ -40,7 +40,7 @@ namespace JSC {
void gatherConservativeRoots(ConservativeRoots&, void* stackCurrent);
void makeUsableFromMultipleThreads();
void addCurrentThread(); // Only needs to be called by clients that can use the same heap from multiple threads.
JS_EXPORT_PRIVATE void addCurrentThread(); // Only needs to be called by clients that can use the same heap from multiple threads.
private:
void gatherFromCurrentThread(ConservativeRoots&, void* stackCurrent);
......
......@@ -111,7 +111,7 @@ namespace JSC {
private:
MarkStackSegment* m_topSegment;
void expand();
JS_EXPORT_PRIVATE void expand();
MarkStackSegmentAllocator& m_allocator;
......@@ -241,7 +241,7 @@ namespace JSC {
}
protected:
static void validate(JSCell*);
JS_EXPORT_PRIVATE static void validate(JSCell*);
void append(JSValue*);
void append(JSValue*, size_t count);
......@@ -250,7 +250,7 @@ namespace JSC {
void internalAppend(JSCell*);
void internalAppend(JSValue);
void mergeOpaqueRoots();
JS_EXPORT_PRIVATE void mergeOpaqueRoots();
void mergeOpaqueRootsIfNecessary()
{
......
......@@ -39,7 +39,7 @@ public:
~VTableSpectrum();
void countVPtr(void*);
void count(JSCell*);
JS_EXPORT_PRIVATE void count(JSCell*);
void dump(FILE* output, const char* comment);
};
......
......@@ -81,8 +81,8 @@ public:
}
#else
// These are necessary to work around not having conditional exports.
static char usesWithBarrierFromCpp;
static char usesWithoutBarrierFromCpp;
JS_EXPORTDATA static char usesWithBarrierFromCpp;
JS_EXPORTDATA static char usesWithoutBarrierFromCpp;
#endif // ENABLE(WRITE_BARRIER_PROFILING)
static void countWriteBarrier()
......
......@@ -181,7 +181,7 @@ namespace JSC {
StatementNode(int);
public:
void setLoc(int firstLine, int lastLine);
JS_EXPORT_PRIVATE void setLoc(int firstLine, int lastLine);
int firstLine() const { return lineNo(); }
int lastLine() const { return m_lastLine; }
......
......@@ -159,7 +159,7 @@ namespace JSC {
void removeLast();
bool isEmpty() const;
void reset();
JS_EXPORT_PRIVATE void reset();
IdentifierArena& identifierArena() { return *m_identifierArena; }
......
......@@ -44,11 +44,11 @@ namespace JSC {
double totalTime() const { return m_head->totalTime(); }
unsigned int uid() const { return m_uid; }
void forEach(void (ProfileNode::*)());
JS_EXPORT_PRIVATE void forEach(void (ProfileNode::*)());
void focus(const ProfileNode*);
void exclude(const ProfileNode*);
void restoreAll();
JS_EXPORT_PRIVATE void focus(const ProfileNode*);
JS_EXPORT_PRIVATE void exclude(const ProfileNode*);
JS_EXPORT_PRIVATE void restoreAll();
#ifndef NDEBUG
void debugPrintData() const;
......
......@@ -102,7 +102,7 @@ namespace JSC {
static void markLists(HeapRootVisitor&, ListSet&);
private:
void slowAppend(JSValue);
JS_EXPORT_PRIVATE void slowAppend(JSValue);
EncodedJSValue& slotFor(int item) const
{
......@@ -171,7 +171,7 @@ namespace JSC {
bool isEmpty() const { return !m_argCount; }
size_t size() const { return m_argCount; }
void getSlice(int startIndex, ArgList& result) const;
JS_EXPORT_PRIVATE void getSlice(int startIndex, ArgList& result) const;
private:
JSValue* m_args;
......
......@@ -57,7 +57,7 @@ namespace JSC {
} js;
};
JSValue call(ExecState*, JSValue functionObject, CallType, const CallData&, JSValue thisValue, const ArgList&);
JS_EXPORT_PRIVATE JSValue call(ExecState*, JSValue functionObject, CallType, const CallData&, JSValue thisValue, const ArgList&);
} // namespace JSC
......
......@@ -31,8 +31,8 @@ namespace JSC {
class ScopeChainNode;
class SourceCode;
bool checkSyntax(ExecState*, const SourceCode&, JSValue* exception = 0);
JSValue evaluate(ExecState*, ScopeChainNode*, const SourceCode&, JSValue thisValue = JSValue(), JSValue* exception = 0);
JS_EXPORT_PRIVATE bool checkSyntax(ExecState*, const SourceCode&, JSValue* exception = 0);
JS_EXPORT_PRIVATE JSValue evaluate(ExecState*, ScopeChainNode*, const SourceCode&, JSValue thisValue = JSValue(), JSValue* exception = 0);
} // namespace JSC
......
......@@ -56,7 +56,7 @@ namespace JSC {
} js;
};
JSObject* construct(ExecState*, JSValue constructor, ConstructType, const ConstructData&, const ArgList&);
JS_EXPORT_PRIVATE JSObject* construct(ExecState*, JSValue constructor, ConstructType, const ConstructData&, const ArgList&);
} // namespace JSC
......
......@@ -31,9 +31,9 @@ namespace JSC {
class DateInstance : public JSWrapperObject {
protected:
DateInstance(ExecState*, Structure*);
JS_EXPORT_PRIVATE DateInstance(ExecState*, Structure*);
void finishCreation(JSGlobalData&);
void finishCreation(JSGlobalData&, double);
JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, double);
static void destroy(JSCell*);
......
......@@ -46,12 +46,12 @@ namespace JSC {
JSObject* createTypeError(JSGlobalObject*, const UString&);
JSObject* createURIError(JSGlobalObject*, const UString&);
// ExecState wrappers.
JSObject* createError(ExecState*, const UString&);
JS_EXPORT_PRIVATE JSObject* createError(ExecState*, const UString&);
JSObject* createEvalError(ExecState*, const UString&);
JSObject* createRangeError(ExecState*, const UString&);
JSObject* createReferenceError(ExecState*, const UString&);
JSObject* createSyntaxError(ExecState*, const UString&);
JSObject* createTypeError(ExecState*, const UString&);
JS_EXPORT_PRIVATE JSObject* createRangeError(ExecState*, const UString&);
JS_EXPORT_PRIVATE JSObject* createReferenceError(ExecState*, const UString&);
JS_EXPORT_PRIVATE JSObject* createSyntaxError(ExecState*, const UString&);
JS_EXPORT_PRIVATE JSObject* createTypeError(ExecState*, const UString&);
JSObject* createURIError(ExecState*, const UString&);
// Methods to add
......@@ -61,12 +61,12 @@ namespace JSC {
JSObject* addErrorInfo(ExecState*, JSObject* error, int line, const SourceCode&);
// Methods to throw Errors.
JSValue throwError(ExecState*, JSValue);
JSObject* throwError(ExecState*, JSObject*);
JS_EXPORT_PRIVATE JSValue throwError(ExecState*, JSValue);
JS_EXPORT_PRIVATE JSObject* throwError(ExecState*, JSObject*);
// Convenience wrappers, create an throw an exception with a default message.
JSObject* throwTypeError(ExecState*);
JSObject* throwSyntaxError(ExecState*);
JS_EXPORT_PRIVATE JSObject* throwTypeError(ExecState*);
JS_EXPORT_PRIVATE JSObject* throwSyntaxError(ExecState*);
// Convenience wrappers, wrap result as an EncodedJSValue.
inline EncodedJSValue throwVMError(ExecState* exec, JSValue error) { return JSValue::encode(throwError(exec, error)); }
......
......@@ -33,15 +33,15 @@
namespace JSC {
JSObject* createInterruptedExecutionException(JSGlobalData*);
JS_EXPORT_PRIVATE JSObject* createInterruptedExecutionException(JSGlobalData*);
bool isInterruptedExecutionException(JSObject*);
bool isInterruptedExecutionException(JSValue);
JSObject* createTerminatedExecutionException(JSGlobalData*);
bool isTerminatedExecutionException(JSObject*);
bool isTerminatedExecutionException(JSValue);
JS_EXPORT_PRIVATE bool isTerminatedExecutionException(JSValue);
JSObject* createStackOverflowError(ExecState*);
JS_EXPORT_PRIVATE JSObject* createStackOverflowError(ExecState*);
JSObject* createStackOverflowError(JSGlobalObject*);
JSObject* createOutOfMemoryError(JSGlobalObject*);
JSObject* createUndefinedVariableError(ExecState*, const Identifier&);
......
......@@ -59,7 +59,7 @@ namespace JSC {
JSObject* constructFunction(ExecState*, JSGlobalObject*, const ArgList&, const Identifier& functionName, const UString& sourceURL, const WTF::TextPosition&);
JSObject* constructFunction(ExecState*, JSGlobalObject*, const ArgList&);
JSObject* constructFunctionSkippingEvalEnabledCheck(ExecState*, JSGlobalObject*, const ArgList&, const Identifier&, const UString&, const WTF::TextPosition&);
JS_EXPORT_PRIVATE JSObject* constructFunctionSkippingEvalEnabledCheck(ExecState*, JSGlobalObject*, const ArgList&, const Identifier&, const UString&, const WTF::TextPosition&);
} // namespace JSC
......
......@@ -56,14 +56,14 @@ namespace JSC {
static Identifier createLCharFromUChar(JSGlobalData* globalData, const UChar* s, int length) { return Identifier(globalData, add8(globalData, s, length)); }
static Identifier from(ExecState* exec, unsigned y);
static Identifier from(ExecState* exec, int y);
JS_EXPORT_PRIVATE static Identifier from(ExecState* exec, unsigned y);
JS_EXPORT_PRIVATE static Identifier from(ExecState* exec, int y);
static Identifier from(ExecState* exec, double y);
static Identifier from(JSGlobalData*, unsigned y);
static Identifier from(JSGlobalData*, int y);
static Identifier from(JSGlobalData*, double y);
static uint32_t toUInt32(const UString&, bool& ok);
JS_EXPORT_PRIVATE static uint32_t toUInt32(const UString&, bool& ok);
uint32_t toUInt32(bool& ok) const { return toUInt32(m_string, ok); }
unsigned toArrayIndex(bool& ok) const;
......@@ -84,7 +84,7 @@ namespace JSC {
static bool equal(const StringImpl*, const UChar*, unsigned length);
static bool equal(const StringImpl* a, const StringImpl* b) { return ::equal(a, b); }
static PassRefPtr<StringImpl> add(ExecState*, const char*); // Only to be used with string literals.
JS_EXPORT_PRIVATE static PassRefPtr<StringImpl> add(ExecState*, const char*); // Only to be used with string literals.
static PassRefPtr<StringImpl> add(JSGlobalData*, const char*); // Only to be used with string literals.
private:
......@@ -119,11 +119,11 @@ namespace JSC {
return addSlowCase(globalData, r);
}
static PassRefPtr<StringImpl> addSlowCase(ExecState*, StringImpl* r);
static PassRefPtr<StringImpl> addSlowCase(JSGlobalData*, StringImpl* r);
JS_EXPORT_PRIVATE static PassRefPtr<StringImpl> addSlowCase(ExecState*, StringImpl* r);
JS_EXPORT_PRIVATE static PassRefPtr<StringImpl> addSlowCase(JSGlobalData*, StringImpl* r);
static void checkCurrentIdentifierTable(ExecState*);
static void checkCurrentIdentifierTable(JSGlobalData*);
JS_EXPORT_PRIVATE static void checkCurrentIdentifierTable(ExecState*);
JS_EXPORT_PRIVATE static void checkCurrentIdentifierTable(JSGlobalData*);
};
template <> ALWAYS_INLINE bool Identifier::canUseSingleCharacterString(LChar)
......
......@@ -33,7 +33,7 @@ namespace JSC {
// This function must be called from the main thread. It is safe to call it repeatedly.
// Darwin is an exception to this rule: it is OK to call this function from any thread, even reentrantly.
void initializeThreading();
JS_EXPORT_PRIVATE void initializeThreading();
}
......
......@@ -37,7 +37,7 @@ namespace JSC {
static JS_EXPORTDATA const ClassInfo s_info;
const UString& name(ExecState*);
JS_EXPORT_PRIVATE const UString& name(ExecState*);