Changeset 104900 in webkit
- Timestamp:
- Jan 12, 2012 11:23:44 PM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 88 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/OpaqueJSString.h
r98316 r104900 47 47 } 48 48 49 static PassRefPtr<OpaqueJSString> create(const JSC::UString&);49 JS_EXPORT_PRIVATE static PassRefPtr<OpaqueJSString> create(const JSC::UString&); 50 50 51 51 UChar* characters() { return this ? m_characters : 0; } -
trunk/Source/JavaScriptCore/ChangeLog
r104899 r104900 1 2012-01-12 Hajime Morrita <morrita@chromium.org> 2 3 JavaScriptCore: Mark all exported symbols in the header file automatically. 4 https://bugs.webkit.org/show_bug.cgi?id=72855 5 6 Reviewed by Darin Adler. 7 8 Added WTF_EXPORT_PRIVATE and JS_EXPORT_PRIVATE based on JavaScriptCore.exp files. 9 The change is generated by a tool calledListExportables (https://github.com/omo/ListExportables) 10 11 * API/OpaqueJSString.h: 12 * bytecode/CodeBlock.h: 13 * bytecode/SamplingTool.h: 14 * debugger/Debugger.h: 15 * debugger/DebuggerActivation.h: 16 * debugger/DebuggerCallFrame.h: 17 * heap/AllocationSpace.h: 18 * heap/HandleHeap.h: 19 * heap/Heap.h: 20 * heap/MachineStackMarker.h: 21 * heap/MarkStack.h: 22 * heap/VTableSpectrum.h: 23 * heap/WriteBarrierSupport.h: 24 * parser/Nodes.h: 25 * parser/ParserArena.h: 26 * profiler/Profile.h: 27 * runtime/ArgList.h: 28 * runtime/CallData.h: 29 * runtime/Completion.h: 30 * runtime/ConstructData.h: 31 * runtime/DateInstance.h: 32 * runtime/Error.h: 33 * runtime/ExceptionHelpers.h: 34 * runtime/FunctionConstructor.h: 35 * runtime/Identifier.h: 36 * runtime/InitializeThreading.h: 37 * runtime/InternalFunction.h: 38 * runtime/JSArray.h: 39 * runtime/JSByteArray.h: 40 * runtime/JSCell.h: 41 * runtime/JSFunction.h: 42 * runtime/JSGlobalData.cpp: 43 * runtime/JSGlobalData.h: 44 * runtime/JSGlobalObject.h: 45 * runtime/JSGlobalThis.h: 46 * runtime/JSLock.h: 47 * runtime/JSObject.h: 48 * runtime/JSString.h: 49 * runtime/JSValue.h: 50 * runtime/JSVariableObject.h: 51 * runtime/Lookup.h: 52 * runtime/MemoryStatistics.h: 53 * runtime/ObjectPrototype.h: 54 * runtime/Options.h: 55 * runtime/PropertyDescriptor.h: 56 * runtime/PropertyNameArray.h: 57 * runtime/PropertySlot.h: 58 * runtime/RegExp.h: 59 * runtime/RegExpObject.h: 60 * runtime/SamplingCounter.h: 61 * runtime/SmallStrings.h: 62 * runtime/StringObject.h: 63 * runtime/Structure.h: 64 * runtime/TimeoutChecker.h: 65 * runtime/UString.h: 66 * runtime/WriteBarrier.h: 67 * wtf/ArrayBufferView.h: 68 * wtf/ByteArray.h: 69 * wtf/CryptographicallyRandomNumber.h: 70 * wtf/CurrentTime.h: 71 * wtf/DateMath.h: 72 * wtf/DecimalNumber.h: 73 * wtf/FastMalloc.cpp: 74 * wtf/FastMalloc.h: 75 * wtf/MD5.h: 76 * wtf/MainThread.h: 77 * wtf/MetaAllocator.h: 78 * wtf/MetaAllocatorHandle.h: 79 * wtf/OSAllocator.h: 80 * wtf/PageBlock.h: 81 * wtf/RandomNumber.h: 82 * wtf/RefCountedLeakCounter.h: 83 * wtf/SHA1.h: 84 * wtf/Threading.cpp: 85 * wtf/Threading.h: 86 * wtf/ThreadingPrimitives.h: 87 * wtf/WTFThreadData.h: 88 * wtf/dtoa.h: 89 * wtf/text/AtomicString.h: 90 * wtf/text/CString.h: 91 * wtf/text/StringBuilder.h: 92 * wtf/text/StringImpl.h: 93 * wtf/text/WTFString.h: 94 * wtf/unicode/Collator.h: 95 * wtf/unicode/UTF8.h: 96 * yarr/Yarr.h: 97 * yarr/YarrPattern.h: 98 1 99 2012-01-12 MORITA Hajime <morrita@google.com> 2 100 -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r104787 r104900 95 95 96 96 public: 97 virtual ~CodeBlock();97 JS_EXPORT_PRIVATE virtual ~CodeBlock(); 98 98 99 99 int numParameters() const { return m_numParameters; } -
trunk/Source/JavaScriptCore/bytecode/SamplingTool.h
r101946 r104900 46 46 class SamplingFlags { 47 47 public: 48 static void start();49 static void stop();48 JS_EXPORT_PRIVATE static void start(); 49 JS_EXPORT_PRIVATE static void stop(); 50 50 51 51 #if ENABLE(SAMPLING_FLAGS) … … 90 90 #endif 91 91 private: 92 static uint32_t s_flags;92 JS_EXPORTDATA static uint32_t s_flags; 93 93 #if ENABLE(SAMPLING_FLAGS) 94 94 static uint64_t s_flagCounts[33]; … … 175 175 public: 176 176 SamplingRegion(const char*) { } 177 void dump();177 JS_EXPORT_PRIVATE void dump(); 178 178 }; 179 179 #endif // ENABLE(SAMPLING_REGIONS) … … 221 221 static ThreadIdentifier s_samplingThread; 222 222 223 static void start(unsigned hertz=10000);224 static void stop();223 JS_EXPORT_PRIVATE static void start(unsigned hertz=10000); 224 JS_EXPORT_PRIVATE static void stop(); 225 225 226 226 static void* threadStartFunc(void*); … … 295 295 } 296 296 297 void setup();297 JS_EXPORT_PRIVATE void setup(); 298 298 void dump(ExecState*); 299 299 -
trunk/Source/JavaScriptCore/debugger/Debugger.h
r88370 r104900 59 59 60 60 // This function exists only for backwards compatibility with existing WebScriptDebugger clients. 61 JS Value evaluateInGlobalCallFrame(const UString&, JSValue& exception, JSGlobalObject*);61 JS_EXPORT_PRIVATE JSValue evaluateInGlobalCallFrame(const UString&, JSValue& exception, JSGlobalObject*); 62 62 63 63 } // namespace JSC -
trunk/Source/JavaScriptCore/debugger/DebuggerActivation.h
r104899 r104900 53 53 static void defineSetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* setterFunction, unsigned attributes); 54 54 55 static const ClassInfo s_info;55 JS_EXPORTDATA static const ClassInfo s_info; 56 56 57 57 static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype) … … 63 63 static const unsigned StructureFlags = OverridesGetOwnPropertySlot | OverridesVisitChildren | JSObject::StructureFlags; 64 64 65 void finishCreation(JSGlobalData&, JSObject* activation);65 JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, JSObject* activation); 66 66 67 67 private: 68 DebuggerActivation(JSGlobalData&);68 JS_EXPORT_PRIVATE DebuggerActivation(JSGlobalData&); 69 69 WriteBarrier<JSActivation> m_activation; 70 70 }; -
trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.h
r95901 r104900 51 51 JSGlobalObject* dynamicGlobalObject() const { return m_callFrame->dynamicGlobalObject(); } 52 52 ScopeChainNode* scopeChain() const { return m_callFrame->scopeChain(); } 53 const UString* functionName() const;53 JS_EXPORT_PRIVATE const UString* functionName() const; 54 54 JS_EXPORT_PRIVATE UString calculatedFunctionName() const; 55 55 JS_EXPORT_PRIVATE Type type() const; -
trunk/Source/JavaScriptCore/heap/AllocationSpace.h
r96373 r104900 73 73 void* allocate(MarkedSpace::SizeClass&); 74 74 void* tryAllocate(MarkedSpace::SizeClass&); 75 void* allocateSlowCase(MarkedSpace::SizeClass&);75 JS_EXPORT_PRIVATE void* allocateSlowCase(MarkedSpace::SizeClass&); 76 76 MarkedBlock* allocateBlock(size_t cellSize, AllocationEffort); 77 77 -
trunk/Source/JavaScriptCore/heap/HandleHeap.h
r103243 r104900 41 41 class SlotVisitor; 42 42 43 class WeakHandleOwner {43 class JS_EXPORT_PRIVATE WeakHandleOwner { 44 44 public: 45 45 virtual ~WeakHandleOwner(); … … 66 66 void finalizeWeakHandles(); 67 67 68 void writeBarrier(HandleSlot, const JSValue&);68 JS_EXPORT_PRIVATE void writeBarrier(HandleSlot, const JSValue&); 69 69 70 70 #if !ASSERT_DISABLED … … 112 112 static Node* toNode(HandleSlot); 113 113 114 void grow();114 JS_EXPORT_PRIVATE void grow(); 115 115 116 116 #if ENABLE(GC_VALIDATION) || !ASSERT_DISABLED -
trunk/Source/JavaScriptCore/heap/Heap.h
r100556 r104900 79 79 Heap(JSGlobalData*, HeapSize); 80 80 ~Heap(); 81 void destroy(); // JSGlobalData must call destroy() before ~Heap().81 JS_EXPORT_PRIVATE void destroy(); // JSGlobalData must call destroy() before ~Heap(). 82 82 83 83 JSGlobalData* globalData() const { return m_globalData; } … … 85 85 MachineThreads& machineThreads() { return m_machineThreads; } 86 86 87 GCActivityCallback* activityCallback();88 void setActivityCallback(PassOwnPtr<GCActivityCallback>);87 JS_EXPORT_PRIVATE GCActivityCallback* activityCallback(); 88 JS_EXPORT_PRIVATE void setActivityCallback(PassOwnPtr<GCActivityCallback>); 89 89 90 90 // true if an allocation or collection is in progress … … 95 95 96 96 typedef void (*Finalizer)(JSCell*); 97 void addFinalizer(JSCell*, Finalizer);97 JS_EXPORT_PRIVATE void addFinalizer(JSCell*, Finalizer); 98 98 99 99 void notifyIsSafeToCollect() { m_isSafeToCollect = true; } 100 void collectAllGarbage();100 JS_EXPORT_PRIVATE void collectAllGarbage(); 101 101 102 102 void reportExtraMemoryCost(size_t cost); 103 103 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. 106 106 107 107 void jettisonDFGCodeBlock(PassOwnPtr<CodeBlock>); 108 108 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(); 117 117 118 118 void pushTempSortVector(Vector<ValueStringPair>*); … … 142 142 }; 143 143 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); 146 146 147 147 // Call this function before any operation that needs to know which cells -
trunk/Source/JavaScriptCore/heap/MachineStackMarker.h
r95510 r104900 41 41 42 42 void makeUsableFromMultipleThreads(); 43 void addCurrentThread(); // Only needs to be called by clients that can use the same heap from multiple threads.43 JS_EXPORT_PRIVATE void addCurrentThread(); // Only needs to be called by clients that can use the same heap from multiple threads. 44 44 45 45 private: -
trunk/Source/JavaScriptCore/heap/MarkStack.h
r103083 r104900 112 112 MarkStackSegment* m_topSegment; 113 113 114 void expand();114 JS_EXPORT_PRIVATE void expand(); 115 115 116 116 MarkStackSegmentAllocator& m_allocator; … … 242 242 243 243 protected: 244 static void validate(JSCell*);244 JS_EXPORT_PRIVATE static void validate(JSCell*); 245 245 246 246 void append(JSValue*); … … 251 251 void internalAppend(JSValue); 252 252 253 void mergeOpaqueRoots();253 JS_EXPORT_PRIVATE void mergeOpaqueRoots(); 254 254 255 255 void mergeOpaqueRootsIfNecessary() -
trunk/Source/JavaScriptCore/heap/VTableSpectrum.h
r99382 r104900 40 40 41 41 void countVPtr(void*); 42 void count(JSCell*);42 JS_EXPORT_PRIVATE void count(JSCell*); 43 43 44 44 void dump(FILE* output, const char* comment); -
trunk/Source/JavaScriptCore/heap/WriteBarrierSupport.h
r95901 r104900 82 82 #else 83 83 // These are necessary to work around not having conditional exports. 84 static char usesWithBarrierFromCpp;85 static char usesWithoutBarrierFromCpp;84 JS_EXPORTDATA static char usesWithBarrierFromCpp; 85 JS_EXPORTDATA static char usesWithoutBarrierFromCpp; 86 86 #endif // ENABLE(WRITE_BARRIER_PROFILING) 87 87 -
trunk/Source/JavaScriptCore/parser/Nodes.h
r98887 r104900 182 182 183 183 public: 184 void setLoc(int firstLine, int lastLine);184 JS_EXPORT_PRIVATE void setLoc(int firstLine, int lastLine); 185 185 int firstLine() const { return lineNo(); } 186 186 int lastLine() const { return m_lastLine; } -
trunk/Source/JavaScriptCore/parser/ParserArena.h
r99436 r104900 160 160 161 161 bool isEmpty() const; 162 void reset();162 JS_EXPORT_PRIVATE void reset(); 163 163 164 164 IdentifierArena& identifierArena() { return *m_identifierArena; } -
trunk/Source/JavaScriptCore/profiler/Profile.h
r95901 r104900 45 45 unsigned int uid() const { return m_uid; } 46 46 47 void forEach(void (ProfileNode::*)());47 JS_EXPORT_PRIVATE void forEach(void (ProfileNode::*)()); 48 48 49 void focus(const ProfileNode*);50 void exclude(const ProfileNode*);51 void restoreAll();49 JS_EXPORT_PRIVATE void focus(const ProfileNode*); 50 JS_EXPORT_PRIVATE void exclude(const ProfileNode*); 51 JS_EXPORT_PRIVATE void restoreAll(); 52 52 53 53 #ifndef NDEBUG -
trunk/Source/JavaScriptCore/runtime/ArgList.h
r102728 r104900 103 103 104 104 private: 105 void slowAppend(JSValue);105 JS_EXPORT_PRIVATE void slowAppend(JSValue); 106 106 107 107 EncodedJSValue& slotFor(int item) const … … 172 172 size_t size() const { return m_argCount; } 173 173 174 void getSlice(int startIndex, ArgList& result) const;174 JS_EXPORT_PRIVATE void getSlice(int startIndex, ArgList& result) const; 175 175 176 176 private: -
trunk/Source/JavaScriptCore/runtime/CallData.h
r95901 r104900 58 58 }; 59 59 60 JS Value call(ExecState*, JSValue functionObject, CallType, const CallData&, JSValue thisValue, const ArgList&);60 JS_EXPORT_PRIVATE JSValue call(ExecState*, JSValue functionObject, CallType, const CallData&, JSValue thisValue, const ArgList&); 61 61 62 62 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/Completion.h
r94811 r104900 32 32 class SourceCode; 33 33 34 bool checkSyntax(ExecState*, const SourceCode&, JSValue* exception = 0);35 JS Value evaluate(ExecState*, ScopeChainNode*, const SourceCode&, JSValue thisValue = JSValue(), JSValue* exception = 0);34 JS_EXPORT_PRIVATE bool checkSyntax(ExecState*, const SourceCode&, JSValue* exception = 0); 35 JS_EXPORT_PRIVATE JSValue evaluate(ExecState*, ScopeChainNode*, const SourceCode&, JSValue thisValue = JSValue(), JSValue* exception = 0); 36 36 37 37 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/ConstructData.h
r95901 r104900 57 57 }; 58 58 59 JS Object* construct(ExecState*, JSValue constructor, ConstructType, const ConstructData&, const ArgList&);59 JS_EXPORT_PRIVATE JSObject* construct(ExecState*, JSValue constructor, ConstructType, const ConstructData&, const ArgList&); 60 60 61 61 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/DateInstance.h
r103243 r104900 32 32 class DateInstance : public JSWrapperObject { 33 33 protected: 34 DateInstance(ExecState*, Structure*);34 JS_EXPORT_PRIVATE DateInstance(ExecState*, Structure*); 35 35 void finishCreation(JSGlobalData&); 36 void finishCreation(JSGlobalData&, double);36 JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, double); 37 37 38 38 static void destroy(JSCell*); -
trunk/Source/JavaScriptCore/runtime/Error.h
r103958 r104900 47 47 JSObject* createURIError(JSGlobalObject*, const UString&); 48 48 // ExecState wrappers. 49 JS Object* createError(ExecState*, const UString&);49 JS_EXPORT_PRIVATE JSObject* createError(ExecState*, const UString&); 50 50 JSObject* createEvalError(ExecState*, const UString&); 51 JS Object* createRangeError(ExecState*, const UString&);52 JS Object* createReferenceError(ExecState*, const UString&);53 JS Object* createSyntaxError(ExecState*, const UString&);54 JS Object* createTypeError(ExecState*, const UString&);51 JS_EXPORT_PRIVATE JSObject* createRangeError(ExecState*, const UString&); 52 JS_EXPORT_PRIVATE JSObject* createReferenceError(ExecState*, const UString&); 53 JS_EXPORT_PRIVATE JSObject* createSyntaxError(ExecState*, const UString&); 54 JS_EXPORT_PRIVATE JSObject* createTypeError(ExecState*, const UString&); 55 55 JSObject* createURIError(ExecState*, const UString&); 56 56 … … 62 62 63 63 // Methods to throw Errors. 64 JS Value throwError(ExecState*, JSValue);65 JS Object* throwError(ExecState*, JSObject*);64 JS_EXPORT_PRIVATE JSValue throwError(ExecState*, JSValue); 65 JS_EXPORT_PRIVATE JSObject* throwError(ExecState*, JSObject*); 66 66 67 67 // Convenience wrappers, create an throw an exception with a default message. 68 JS Object* throwTypeError(ExecState*);69 JS Object* throwSyntaxError(ExecState*);68 JS_EXPORT_PRIVATE JSObject* throwTypeError(ExecState*); 69 JS_EXPORT_PRIVATE JSObject* throwSyntaxError(ExecState*); 70 70 71 71 // Convenience wrappers, wrap result as an EncodedJSValue. -
trunk/Source/JavaScriptCore/runtime/ExceptionHelpers.h
r103243 r104900 34 34 namespace JSC { 35 35 36 JS Object* createInterruptedExecutionException(JSGlobalData*);36 JS_EXPORT_PRIVATE JSObject* createInterruptedExecutionException(JSGlobalData*); 37 37 bool isInterruptedExecutionException(JSObject*); 38 38 bool isInterruptedExecutionException(JSValue); … … 40 40 JSObject* createTerminatedExecutionException(JSGlobalData*); 41 41 bool isTerminatedExecutionException(JSObject*); 42 bool isTerminatedExecutionException(JSValue);42 JS_EXPORT_PRIVATE bool isTerminatedExecutionException(JSValue); 43 43 44 JS Object* createStackOverflowError(ExecState*);44 JS_EXPORT_PRIVATE JSObject* createStackOverflowError(ExecState*); 45 45 JSObject* createStackOverflowError(JSGlobalObject*); 46 46 JSObject* createOutOfMemoryError(JSGlobalObject*); -
trunk/Source/JavaScriptCore/runtime/FunctionConstructor.h
r103243 r104900 60 60 JSObject* constructFunction(ExecState*, JSGlobalObject*, const ArgList&); 61 61 62 JS Object* constructFunctionSkippingEvalEnabledCheck(ExecState*, JSGlobalObject*, const ArgList&, const Identifier&, const UString&, const WTF::TextPosition&);62 JS_EXPORT_PRIVATE JSObject* constructFunctionSkippingEvalEnabledCheck(ExecState*, JSGlobalObject*, const ArgList&, const Identifier&, const UString&, const WTF::TextPosition&); 63 63 64 64 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/Identifier.h
r100510 r104900 57 57 static Identifier createLCharFromUChar(JSGlobalData* globalData, const UChar* s, int length) { return Identifier(globalData, add8(globalData, s, length)); } 58 58 59 static Identifier from(ExecState* exec, unsigned y);60 static Identifier from(ExecState* exec, int y);59 JS_EXPORT_PRIVATE static Identifier from(ExecState* exec, unsigned y); 60 JS_EXPORT_PRIVATE static Identifier from(ExecState* exec, int y); 61 61 static Identifier from(ExecState* exec, double y); 62 62 static Identifier from(JSGlobalData*, unsigned y); … … 64 64 static Identifier from(JSGlobalData*, double y); 65 65 66 static uint32_t toUInt32(const UString&, bool& ok);66 JS_EXPORT_PRIVATE static uint32_t toUInt32(const UString&, bool& ok); 67 67 uint32_t toUInt32(bool& ok) const { return toUInt32(m_string, ok); } 68 68 unsigned toArrayIndex(bool& ok) const; … … 85 85 static bool equal(const StringImpl* a, const StringImpl* b) { return ::equal(a, b); } 86 86 87 static PassRefPtr<StringImpl> add(ExecState*, const char*); // Only to be used with string literals.87 JS_EXPORT_PRIVATE static PassRefPtr<StringImpl> add(ExecState*, const char*); // Only to be used with string literals. 88 88 static PassRefPtr<StringImpl> add(JSGlobalData*, const char*); // Only to be used with string literals. 89 89 … … 120 120 } 121 121 122 static PassRefPtr<StringImpl> addSlowCase(ExecState*, StringImpl* r);123 static PassRefPtr<StringImpl> addSlowCase(JSGlobalData*, StringImpl* r);124 125 static void checkCurrentIdentifierTable(ExecState*);126 static void checkCurrentIdentifierTable(JSGlobalData*);122 JS_EXPORT_PRIVATE static PassRefPtr<StringImpl> addSlowCase(ExecState*, StringImpl* r); 123 JS_EXPORT_PRIVATE static PassRefPtr<StringImpl> addSlowCase(JSGlobalData*, StringImpl* r); 124 125 JS_EXPORT_PRIVATE static void checkCurrentIdentifierTable(ExecState*); 126 JS_EXPORT_PRIVATE static void checkCurrentIdentifierTable(JSGlobalData*); 127 127 }; 128 128 -
trunk/Source/JavaScriptCore/runtime/InitializeThreading.h
r44224 r104900 34 34 // This function must be called from the main thread. It is safe to call it repeatedly. 35 35 // Darwin is an exception to this rule: it is OK to call this function from any thread, even reentrantly. 36 void initializeThreading();36 JS_EXPORT_PRIVATE void initializeThreading(); 37 37 38 38 } -
trunk/Source/JavaScriptCore/runtime/InternalFunction.h
r103083 r104900 38 38 static JS_EXPORTDATA const ClassInfo s_info; 39 39 40 const UString& name(ExecState*);40 JS_EXPORT_PRIVATE const UString& name(ExecState*); 41 41 const UString displayName(ExecState*); 42 42 const UString calculatedDisplayName(ExecState*); … … 50 50 static const unsigned StructureFlags = ImplementsHasInstance | JSObject::StructureFlags; 51 51 52 InternalFunction(JSGlobalObject*, Structure*);52 JS_EXPORT_PRIVATE InternalFunction(JSGlobalObject*, Structure*); 53 53 54 void finishCreation(JSGlobalData&, const Identifier& name);54 JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, const Identifier& name); 55 55 56 56 static CallType getCallData(JSCell*, CallData&); -
trunk/Source/JavaScriptCore/runtime/JSArray.h
r104604 r104900 128 128 129 129 protected: 130 explicit JSArray(JSGlobalData&, Structure*);131 132 void finishCreation(JSGlobalData&, unsigned initialLength = 0);133 JS Array* tryFinishCreationUninitialized(JSGlobalData&, unsigned initialLength);130 JS_EXPORT_PRIVATE explicit JSArray(JSGlobalData&, Structure*); 131 132 JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, unsigned initialLength = 0); 133 JS_EXPORT_PRIVATE JSArray* tryFinishCreationUninitialized(JSGlobalData&, unsigned initialLength); 134 134 135 135 public: 136 136 typedef JSNonFinalObject Base; 137 137 138 ~JSArray();139 static void destroy(JSCell*);138 JS_EXPORT_PRIVATE ~JSArray(); 139 JS_EXPORT_PRIVATE static void destroy(JSCell*); 140 140 141 141 static JSArray* create(JSGlobalData& globalData, Structure* structure, unsigned initialLength = 0) … … 157 157 } 158 158 159 static bool defineOwnProperty(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&, bool throwException);159 JS_EXPORT_PRIVATE static bool defineOwnProperty(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&, bool throwException); 160 160 161 161 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 162 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&);162 JS_EXPORT_PRIVATE static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 163 163 static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&); 164 164 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue); … … 255 255 } 256 256 257 static void visitChildren(JSCell*, SlotVisitor&);257 JS_EXPORT_PRIVATE static void visitChildren(JSCell*, SlotVisitor&); 258 258 259 259 protected: … … 265 265 static void getOwnPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode); 266 266 267 void* subclassData() const;268 void setSubclassData(void*);267 JS_EXPORT_PRIVATE void* subclassData() const; 268 JS_EXPORT_PRIVATE void setSubclassData(void*); 269 269 270 270 private: -
trunk/Source/JavaScriptCore/runtime/JSByteArray.h
r103243 r104900 77 77 78 78 private: 79 JS ByteArray(ExecState*, Structure*, ByteArray* storage);79 JS_EXPORT_PRIVATE JSByteArray(ExecState*, Structure*, ByteArray* storage); 80 80 81 81 public: … … 87 87 } 88 88 89 static Structure* createStructure(JSGlobalData&, JSGlobalObject*, JSValue prototype, const JSC::ClassInfo* = &s_info);89 JS_EXPORT_PRIVATE static Structure* createStructure(JSGlobalData&, JSGlobalObject*, JSValue prototype, const JSC::ClassInfo* = &s_info); 90 90 91 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);92 static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);93 static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);94 static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);95 static void putByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::JSValue);91 JS_EXPORT_PRIVATE static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); 92 JS_EXPORT_PRIVATE static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&); 93 JS_EXPORT_PRIVATE static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&); 94 JS_EXPORT_PRIVATE static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&); 95 JS_EXPORT_PRIVATE static void putByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::JSValue); 96 96 97 static void getOwnPropertyNames(JSC::JSObject*, JSC::ExecState*, JSC::PropertyNameArray&, EnumerationMode);97 JS_EXPORT_PRIVATE static void getOwnPropertyNames(JSC::JSObject*, JSC::ExecState*, JSC::PropertyNameArray&, EnumerationMode); 98 98 99 99 static JS_EXPORTDATA const ClassInfo s_info; … … 104 104 105 105 ~JSByteArray(); 106 static void destroy(JSCell*);106 JS_EXPORT_PRIVATE static void destroy(JSCell*); 107 107 108 108 static size_t offsetOfStorage() { return OBJECT_OFFSETOF(JSByteArray, m_storage); } -
trunk/Source/JavaScriptCore/runtime/JSCell.h
r104899 r104900 68 68 protected: 69 69 JSCell(JSGlobalData&, Structure*); 70 static void destroy(JSCell*);70 JS_EXPORT_PRIVATE static void destroy(JSCell*); 71 71 72 72 public: … … 83 83 84 84 // Extracting the value. 85 bool getString(ExecState* exec, UString&) const;86 UString getString(ExecState* exec) const; // null string if not a string87 JS Object* getObject(); // NULL if not an object85 JS_EXPORT_PRIVATE bool getString(ExecState* exec, UString&) const; 86 JS_EXPORT_PRIVATE UString getString(ExecState* exec) const; // null string if not a string 87 JS_EXPORT_PRIVATE JSObject* getObject(); // NULL if not an object 88 88 const JSObject* getObject() const; // NULL if not an object 89 89 90 static CallType getCallData(JSCell*, CallData&);91 static ConstructType getConstructData(JSCell*, ConstructData&);90 JS_EXPORT_PRIVATE static CallType getCallData(JSCell*, CallData&); 91 JS_EXPORT_PRIVATE static ConstructType getConstructData(JSCell*, ConstructData&); 92 92 93 93 // Basic conversions. 94 JS Value toPrimitive(ExecState*, PreferredPrimitiveType) const;94 JS_EXPORT_PRIVATE JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const; 95 95 bool getPrimitiveNumber(ExecState*, double& number, JSValue&) const; 96 96 bool toBoolean(ExecState*) const; 97 double toNumber(ExecState*) const;98 UString toString(ExecState*) const;99 JS Object* toObject(ExecState*, JSGlobalObject*) const;97 JS_EXPORT_PRIVATE double toNumber(ExecState*) const; 98 JS_EXPORT_PRIVATE UString toString(ExecState*) const; 99 JS_EXPORT_PRIVATE JSObject* toObject(ExecState*, JSGlobalObject*) const; 100 100 101 101 static void visitChildren(JSCell*, SlotVisitor&); -
trunk/Source/JavaScriptCore/runtime/JSFunction.h
r103958 r104900 41 41 } 42 42 43 EncodedJSValue JSC_HOST_CALL callHostFunctionAsConstructor(ExecState*);43 JS_EXPORT_PRIVATE EncodedJSValue JSC_HOST_CALL callHostFunctionAsConstructor(ExecState*); 44 44 45 45 class JSFunction : public JSNonFinalObject { … … 52 52 typedef JSNonFinalObject Base; 53 53 54 static JSFunction* create(ExecState*, JSGlobalObject*, int length, const Identifier& name, NativeFunction nativeFunction, NativeFunction nativeConstructor = callHostFunctionAsConstructor);54 JS_EXPORT_PRIVATE static JSFunction* create(ExecState*, JSGlobalObject*, int length, const Identifier& name, NativeFunction nativeFunction, NativeFunction nativeConstructor = callHostFunctionAsConstructor); 55 55 static JSFunction* create(ExecState*, JSGlobalObject*, int length, const Identifier& name, NativeExecutable* nativeExecutable); 56 56 … … 65 65 static void destroy(JSCell*); 66 66 67 const UString& name(ExecState*);67 JS_EXPORT_PRIVATE const UString& name(ExecState*); 68 68 const UString displayName(ExecState*); 69 69 const UString calculatedDisplayName(ExecState*); … … 95 95 FunctionExecutable* jsExecutable() const; 96 96 97 const SourceCode* sourceCode() const;97 JS_EXPORT_PRIVATE const SourceCode* sourceCode() const; 98 98 99 99 static JS_EXPORTDATA const ClassInfo s_info; … … 124 124 const static unsigned StructureFlags = OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesVisitChildren | OverridesGetPropertyNames | JSObject::StructureFlags; 125 125 126 JS Function(ExecState*, JSGlobalObject*, Structure*);126 JS_EXPORT_PRIVATE JSFunction(ExecState*, JSGlobalObject*, Structure*); 127 127 JSFunction(ExecState*, FunctionExecutable*, ScopeChainNode*); 128 128 … … 141 141 142 142 private: 143 bool isHostFunctionNonInline() const;143 JS_EXPORT_PRIVATE bool isHostFunctionNonInline() const; 144 144 145 145 static JSValue argumentsGetter(ExecState*, JSValue, const Identifier&); -
trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp
r103364 r104900 102 102 extern const HashTable numberConstructorTable; 103 103 extern const HashTable numberPrototypeTable; 104 extern const HashTable objectConstructorTable;104 JS_EXPORTDATA extern const HashTable objectConstructorTable; 105 105 extern const HashTable objectPrototypeTable; 106 106 extern const HashTable regExpTable; -
trunk/Source/JavaScriptCore/runtime/JSGlobalData.h
r104415 r104900 135 135 136 136 struct ClientData { 137 virtual ~ClientData() = 0;137 JS_EXPORT_PRIVATE virtual ~ClientData() = 0; 138 138 }; 139 139 … … 141 141 bool usingAPI() { return globalDataType != Default; } 142 142 static bool sharedInstanceExists(); 143 static JSGlobalData& sharedInstance();144 145 static PassRefPtr<JSGlobalData> create(ThreadStackType, HeapSize = SmallHeap);146 static PassRefPtr<JSGlobalData> createLeaked(ThreadStackType, HeapSize = SmallHeap);143 JS_EXPORT_PRIVATE static JSGlobalData& sharedInstance(); 144 145 JS_EXPORT_PRIVATE static PassRefPtr<JSGlobalData> create(ThreadStackType, HeapSize = SmallHeap); 146 JS_EXPORT_PRIVATE static PassRefPtr<JSGlobalData> createLeaked(ThreadStackType, HeapSize = SmallHeap); 147 147 static PassRefPtr<JSGlobalData> createContextGroup(ThreadStackType, HeapSize = SmallHeap); 148 ~JSGlobalData();148 JS_EXPORT_PRIVATE ~JSGlobalData(); 149 149 150 150 void makeUsableFromMultipleThreads() { heap.machineThreads().makeUsableFromMultipleThreads(); } … … 309 309 CachedTranscendentalFunction<sin> cachedSin; 310 310 311 void resetDateCache();312 313 void startSampling();314 void stopSampling();315 void dumpSampleData(ExecState* exec);311 JS_EXPORT_PRIVATE void resetDateCache(); 312 313 JS_EXPORT_PRIVATE void startSampling(); 314 JS_EXPORT_PRIVATE void stopSampling(); 315 JS_EXPORT_PRIVATE void dumpSampleData(ExecState* exec); 316 316 void recompileAllJSFunctions(); 317 317 RegExpCache* regExpCache() { return m_regExpCache; } … … 319 319 void addRegExpToTrace(PassRefPtr<RegExp> regExp); 320 320 #endif 321 void dumpRegExpTrace();322 void clearBuiltinStructures();321 JS_EXPORT_PRIVATE void dumpRegExpTrace(); 322 JS_EXPORT_PRIVATE void clearBuiltinStructures(); 323 323 324 324 bool isCollectorBusy() { return heap.isBusy(); } 325 void releaseExecutableMemory();325 JS_EXPORT_PRIVATE void releaseExecutableMemory(); 326 326 327 327 #if ENABLE(GC_VALIDATION) -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
r104899 r104900 193 193 194 194 public: 195 ~JSGlobalObject();196 static void destroy(JSCell*);197 198 static void visitChildren(JSCell*, SlotVisitor&);199 200 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);201 static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);195 JS_EXPORT_PRIVATE ~JSGlobalObject(); 196 JS_EXPORT_PRIVATE static void destroy(JSCell*); 197 198 JS_EXPORT_PRIVATE static void visitChildren(JSCell*, SlotVisitor&); 199 200 JS_EXPORT_PRIVATE static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 201 JS_EXPORT_PRIVATE static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&); 202 202 bool hasOwnPropertyForWrite(ExecState*, const Identifier&); 203 static void put(JSCell*, ExecState*, const Identifier&, JSValue, PutPropertySlot&);204 205 static void putDirectVirtual(JSObject*, ExecState*, const Identifier& propertyName, JSValue, unsigned attributes);206 207 static void defineGetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* getterFunc, unsigned attributes);208 static void defineSetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* setterFunc, unsigned attributes);203 JS_EXPORT_PRIVATE static void put(JSCell*, ExecState*, const Identifier&, JSValue, PutPropertySlot&); 204 205 JS_EXPORT_PRIVATE static void putDirectVirtual(JSObject*, ExecState*, const Identifier& propertyName, JSValue, unsigned attributes); 206 207 JS_EXPORT_PRIVATE static void defineGetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* getterFunc, unsigned attributes); 208 JS_EXPORT_PRIVATE static void defineSetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* setterFunc, unsigned attributes); 209 209 210 210 // We use this in the code generator as we perform symbol table … … 284 284 ScopeChainNode* globalScopeChain() { return m_globalScopeChain.get(); } 285 285 286 ExecState* globalExec();286 JS_EXPORT_PRIVATE ExecState* globalExec(); 287 287 288 288 static bool shouldInterruptScript(const JSGlobalObject*) { return true; } … … 333 333 unsigned attributes; 334 334 }; 335 void addStaticGlobals(GlobalPropertyInfo*, int count);335 JS_EXPORT_PRIVATE void addStaticGlobals(GlobalPropertyInfo*, int count); 336 336 337 337 private: 338 338 // FIXME: Fold reset into init. 339 void init(JSObject* thisValue);339 JS_EXPORT_PRIVATE void init(JSObject* thisValue); 340 340 void reset(JSValue prototype); 341 341 … … 343 343 344 344 void setRegisters(WriteBarrier<Unknown>* registers, PassOwnArrayPtr<WriteBarrier<Unknown> > registerArray, size_t count); 345 static void clearRareData(JSCell*);345 JS_EXPORT_PRIVATE static void clearRareData(JSCell*); 346 346 }; 347 347 … … 489 489 WTF_MAKE_NONCOPYABLE(DynamicGlobalObjectScope); 490 490 public: 491 DynamicGlobalObjectScope(JSGlobalData&, JSGlobalObject*);491 JS_EXPORT_PRIVATE DynamicGlobalObjectScope(JSGlobalData&, JSGlobalObject*); 492 492 493 493 ~DynamicGlobalObjectScope() -
trunk/Source/JavaScriptCore/runtime/JSGlobalThis.h
r103243 r104900 64 64 static const unsigned StructureFlags = OverridesVisitChildren | Base::StructureFlags; 65 65 66 static void visitChildren(JSCell*, SlotVisitor&);66 JS_EXPORT_PRIVATE static void visitChildren(JSCell*, SlotVisitor&); 67 67 68 68 WriteBarrier<JSGlobalObject> m_unwrappedObject; -
trunk/Source/JavaScriptCore/runtime/JSLock.h
r76248 r104900 57 57 WTF_MAKE_NONCOPYABLE(JSLock); 58 58 public: 59 JS Lock(ExecState*);59 JS_EXPORT_PRIVATE JSLock(ExecState*); 60 60 JSLock(JSGlobalData*); 61 61 … … 81 81 } 82 82 83 static void lock(JSLockBehavior);84 static void unlock(JSLockBehavior);83 JS_EXPORT_PRIVATE static void lock(JSLockBehavior); 84 JS_EXPORT_PRIVATE static void unlock(JSLockBehavior); 85 85 static void lock(ExecState*); 86 86 static void unlock(ExecState*); 87 87 88 static intptr_t lockCount();89 static bool currentThreadIsHoldingLock();88 JS_EXPORT_PRIVATE static intptr_t lockCount(); 89 JS_EXPORT_PRIVATE static bool currentThreadIsHoldingLock(); 90 90 91 91 JSLockBehavior m_lockBehavior; … … 94 94 WTF_MAKE_NONCOPYABLE(DropAllLocks); 95 95 public: 96 DropAllLocks(ExecState* exec);97 DropAllLocks(JSLockBehavior);98 ~DropAllLocks();96 JS_EXPORT_PRIVATE DropAllLocks(ExecState* exec); 97 JS_EXPORT_PRIVATE DropAllLocks(JSLockBehavior); 98 JS_EXPORT_PRIVATE ~DropAllLocks(); 99 99 100 100 private: -
trunk/Source/JavaScriptCore/runtime/JSObject.h
r104899 r104900 56 56 struct HashTable; 57 57 58 JS Object* throwTypeError(ExecState*, const UString&);58 JS_EXPORT_PRIVATE JSObject* throwTypeError(ExecState*, const UString&); 59 59 extern JS_EXPORTDATA const char* StrictModeReadonlyPropertyWriteError; 60 60 … … 75 75 friend class JSCell; 76 76 friend class MarkedBlock; 77 friend bool setUpStaticFunctionSlot(ExecState* exec, const HashEntry* entry, JSObject* thisObj, const Identifier& propertyName, PropertySlot& slot);77 JS_EXPORT_PRIVATE friend bool setUpStaticFunctionSlot(ExecState* exec, const HashEntry* entry, JSObject* thisObj, const Identifier& propertyName, PropertySlot& slot); 78 78 79 79 enum PutMode { … … 85 85 typedef JSCell Base; 86 86 87 static void destroy(JSCell*);88 89 static void visitChildren(JSCell*, SlotVisitor&);90 91 static UString className(const JSObject*);87 JS_EXPORT_PRIVATE static void destroy(JSCell*); 88 89 JS_EXPORT_PRIVATE static void visitChildren(JSCell*, SlotVisitor&); 90 91 JS_EXPORT_PRIVATE static UString className(const JSObject*); 92 92 93 93 static void finalize(JSCell*); … … 104 104 bool getPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 105 105 bool getPropertySlot(ExecState*, unsigned propertyName, PropertySlot&); 106 bool getPropertyDescriptor(ExecState*, const Identifier& propertyName, PropertyDescriptor&);106 JS_EXPORT_PRIVATE bool getPropertyDescriptor(ExecState*, const Identifier& propertyName, PropertyDescriptor&); 107 107 108 108 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier& propertyName, PropertySlot&); 109 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&);110 static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);111 112 static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);113 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue);109 JS_EXPORT_PRIVATE static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 110 JS_EXPORT_PRIVATE static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&); 111 112 JS_EXPORT_PRIVATE static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); 113 JS_EXPORT_PRIVATE static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue); 114 114 115 115 // putDirect is effectively an unchecked vesion of 'defineOwnProperty': … … 117 117 // - accessors are not called. 118 118 // - attributes will be respected (after the call the property will exist with the given attributes) 119 static void putDirectVirtual(JSObject*, ExecState*, const Identifier& propertyName, JSValue, unsigned attributes);119 JS_EXPORT_PRIVATE static void putDirectVirtual(JSObject*, ExecState*, const Identifier& propertyName, JSValue, unsigned attributes); 120 120 void putDirect(JSGlobalData&, const Identifier& propertyName, JSValue, unsigned attributes = 0); 121 121 void putDirect(JSGlobalData&, const Identifier& propertyName, JSValue, PutPropertySlot&); … … 124 124 bool propertyIsEnumerable(ExecState*, const Identifier& propertyName) const; 125 125 126 bool hasProperty(ExecState*, const Identifier& propertyName) const;127 bool hasProperty(ExecState*, unsigned propertyName) const;126 JS_EXPORT_PRIVATE bool hasProperty(ExecState*, const Identifier& propertyName) const; 127 JS_EXPORT_PRIVATE bool hasProperty(ExecState*, unsigned propertyName) const; 128 128 bool hasOwnProperty(ExecState*, const Identifier& propertyName) const; 129 129 130 static bool deleteProperty(JSCell*, ExecState*, const Identifier& propertyName);131 static bool deletePropertyByIndex(JSCell*, ExecState*, unsigned propertyName);132 133 static JSValue defaultValue(const JSObject*, ExecState*, PreferredPrimitiveType);134 135 static bool hasInstance(JSObject*, ExecState*, JSValue, JSValue prototypeProperty);136 137 static void getOwnPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode);138 static void getPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode);130 JS_EXPORT_PRIVATE static bool deleteProperty(JSCell*, ExecState*, const Identifier& propertyName); 131 JS_EXPORT_PRIVATE static bool deletePropertyByIndex(JSCell*, ExecState*, unsigned propertyName); 132 133 JS_EXPORT_PRIVATE static JSValue defaultValue(const JSObject*, ExecState*, PreferredPrimitiveType); 134 135 JS_EXPORT_PRIVATE static bool hasInstance(JSObject*, ExecState*, JSValue, JSValue prototypeProperty); 136 137 JS_EXPORT_PRIVATE static void getOwnPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode); 138 JS_EXPORT_PRIVATE static void getPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode); 139 139 140 140 JSValue toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const; 141 bool toBoolean(ExecState*) const;141 JS_EXPORT_PRIVATE bool toBoolean(ExecState*) const; 142 142 bool getPrimitiveNumber(ExecState*, double& number, JSValue&) const; 143 double toNumber(ExecState*) const;144 UString toString(ExecState*) const;143 JS_EXPORT_PRIVATE double toNumber(ExecState*) const; 144 JS_EXPORT_PRIVATE UString toString(ExecState*) const; 145 145 146 146 // NOTE: JSObject and its subclasses must be able to gracefully handle ExecState* = 0, 147 147 // because this call may come from inside the compiler. 148 static JSObject* toThisObject(JSCell*, ExecState*);148 JS_EXPORT_PRIVATE static JSObject* toThisObject(JSCell*, ExecState*); 149 149 JSObject* unwrappedObject(); 150 150 … … 194 194 void putUndefinedAtDirectOffset(size_t offset) { propertyStorage()[offset].setUndefined(); } 195 195 196 void fillGetterPropertySlot(PropertySlot&, WriteBarrierBase<Unknown>* location);196 JS_EXPORT_PRIVATE void fillGetterPropertySlot(PropertySlot&, WriteBarrierBase<Unknown>* location); 197 197 void initializeGetterSetterProperty(ExecState*, const Identifier&, GetterSetter*, unsigned attributes); 198 198 199 static void defineGetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* getterFunction, unsigned attributes = 0);200 static void defineSetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* setterFunction, unsigned attributes = 0);201 JS Value lookupGetter(ExecState*, const Identifier& propertyName);202 JS Value lookupSetter(ExecState*, const Identifier& propertyName);203 static bool defineOwnProperty(JSObject*, ExecState*, const Identifier& propertyName, PropertyDescriptor&, bool shouldThrow);199 JS_EXPORT_PRIVATE static void defineGetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* getterFunction, unsigned attributes = 0); 200 JS_EXPORT_PRIVATE static void defineSetter(JSObject*, ExecState*, const Identifier& propertyName, JSObject* setterFunction, unsigned attributes = 0); 201 JS_EXPORT_PRIVATE JSValue lookupGetter(ExecState*, const Identifier& propertyName); 202 JS_EXPORT_PRIVATE JSValue lookupSetter(ExecState*, const Identifier& propertyName); 203 JS_EXPORT_PRIVATE static bool defineOwnProperty(JSObject*, ExecState*, const Identifier& propertyName, PropertyDescriptor&, bool shouldThrow); 204 204 205 205 bool isGlobalObject() const; … … 211 211 void seal(JSGlobalData&); 212 212 void freeze(JSGlobalData&); 213 void preventExtensions(JSGlobalData&);213 JS_EXPORT_PRIVATE void preventExtensions(JSGlobalData&); 214 214 bool isSealed(JSGlobalData& globalData) { return structure()->isSealed(globalData); } 215 215 bool isFrozen(JSGlobalData& globalData) { return structure()->isFrozen(globalData); } … … 219 219 void reifyStaticFunctionsForDelete(ExecState* exec); 220 220 221 void allocatePropertyStorage(JSGlobalData&, size_t oldSize, size_t newSize);221 JS_EXPORT_PRIVATE void allocatePropertyStorage(JSGlobalData&, size_t oldSize, size_t newSize); 222 222 bool isUsingInlineStorage() const { return static_cast<const void*>(m_propertyStorage.get()) == static_cast<const void*>(this + 1); } 223 223 … … 330 330 } 331 331 332 static void destroy(JSCell*);332 JS_EXPORT_PRIVATE static void destroy(JSCell*); 333 333 334 334 protected: -
trunk/Source/JavaScriptCore/runtime/JSString.h
r104744 r104900 215 215 216 216 JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const; 217 bool toBoolean(ExecState*) const;217 JS_EXPORT_PRIVATE bool toBoolean(ExecState*) const; 218 218 bool getPrimitiveNumber(ExecState*, double& number, JSValue&) const; 219 219 JSObject* toObject(ExecState*, JSGlobalObject*) const; … … 242 242 243 243 private: 244 void resolveRope(ExecState*) const;244 JS_EXPORT_PRIVATE void resolveRope(ExecState*) const; 245 245 void resolveRopeSlowCase8(LChar*) const; 246 246 void resolveRopeSlowCase(UChar*) const; -
trunk/Source/JavaScriptCore/runtime/JSValue.h
r104886 r104900 94 94 95 95 // This implements ToInt32, defined in ECMA-262 9.5. 96 int32_t toInt32(double);96 JS_EXPORT_PRIVATE int32_t toInt32(double); 97 97 98 98 // This implements ToUInt32, defined in ECMA-262 9.6. … … 204 204 205 205 // Integer conversions. 206 double toInteger(ExecState*) const;206 JS_EXPORT_PRIVATE double toInteger(ExecState*) const; 207 207 double toIntegerPreserveNaN(ExecState*) const; 208 208 int32_t toInt32(ExecState*) const; … … 232 232 bool isCell() const; 233 233 JSCell* asCell() const; 234 bool isValidCallee();234 JS_EXPORT_PRIVATE bool isValidCallee(); 235 235 236 236 #ifndef NDEBUG … … 245 245 246 246 inline const JSValue asValue() const { return *this; } 247 double toNumberSlowCase(ExecState*) const;248 JS Object* toObjectSlowCase(ExecState*, JSGlobalObject*) const;249 JS Object* toThisObjectSlowCase(ExecState*) const;250 251 JS Object* synthesizePrototype(ExecState*) const;247 JS_EXPORT_PRIVATE double toNumberSlowCase(ExecState*) const; 248 JS_EXPORT_PRIVATE JSObject* toObjectSlowCase(ExecState*, JSGlobalObject*) const; 249 JS_EXPORT_PRIVATE JSObject* toThisObjectSlowCase(ExecState*) const; 250 251 JS_EXPORT_PRIVATE JSObject* synthesizePrototype(ExecState*) const; 252 252 JSObject* synthesizeObject(ExecState*) const; 253 253 -
trunk/Source/JavaScriptCore/runtime/JSVariableObject.h
r104899 r104900 49 49 SymbolTable& symbolTable() const { return *m_symbolTable; } 50 50 51 static void destroy(JSCell*);51 JS_EXPORT_PRIVATE static void destroy(JSCell*); 52 52 53 53 static NO_RETURN_DUE_TO_ASSERT void putDirectVirtual(JSObject*, ExecState*, const Identifier&, JSValue, unsigned attributes); 54 54 55 static bool deleteProperty(JSCell*, ExecState*, const Identifier&);56 static void getOwnPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode);55 JS_EXPORT_PRIVATE static bool deleteProperty(JSCell*, ExecState*, const Identifier&); 56 JS_EXPORT_PRIVATE static void getOwnPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode); 57 57 58 58 bool isDynamicScope(bool& requiresDynamicChecks) const; … … 89 89 90 90 bool symbolTableGet(const Identifier&, PropertySlot&); 91 bool symbolTableGet(const Identifier&, PropertyDescriptor&);91 JS_EXPORT_PRIVATE bool symbolTableGet(const Identifier&, PropertyDescriptor&); 92 92 bool symbolTableGet(const Identifier&, PropertySlot&, bool& slotIsWriteable); 93 93 bool symbolTablePut(ExecState*, const Identifier&, JSValue, bool shouldThrow); -
trunk/Source/JavaScriptCore/runtime/Lookup.h
r103697 r104900 127 127 } 128 128 129 void deleteTable() const;129 JS_EXPORT_PRIVATE void deleteTable() const; 130 130 131 131 // Find an entry in the table, and return the entry. … … 219 219 220 220 // Convert the hash table keys to identifiers. 221 void createTable(JSGlobalData*) const;221 JS_EXPORT_PRIVATE void createTable(JSGlobalData*) const; 222 222 }; 223 223 224 bool setUpStaticFunctionSlot(ExecState*, const HashEntry*, JSObject* thisObject, const Identifier& propertyName, PropertySlot&);224 JS_EXPORT_PRIVATE bool setUpStaticFunctionSlot(ExecState*, const HashEntry*, JSObject* thisObject, const Identifier& propertyName, PropertySlot&); 225 225 226 226 /** -
trunk/Source/JavaScriptCore/runtime/MemoryStatistics.h
r95901 r104900 38 38 }; 39 39 40 GlobalMemoryStatistics globalMemoryStatistics();40 JS_EXPORT_PRIVATE GlobalMemoryStatistics globalMemoryStatistics(); 41 41 42 42 } -
trunk/Source/JavaScriptCore/runtime/ObjectPrototype.h
r103243 r104900 60 60 }; 61 61 62 EncodedJSValue JSC_HOST_CALL objectProtoFuncToString(ExecState*);62 JS_EXPORT_PRIVATE EncodedJSValue JSC_HOST_CALL objectProtoFuncToString(ExecState*); 63 63 64 64 } // namespace JSC -
trunk/Source/JavaScriptCore/runtime/Options.h
r103286 r104900 74 74 extern unsigned maximumNumberOfSharedSegments; 75 75 extern unsigned sharedStackWakeupThreshold; 76 extern unsigned numberOfGCMarkers;77 extern unsigned opaqueRootMergeThreshold;76 JS_EXPORTDATA extern unsigned numberOfGCMarkers; 77 JS_EXPORTDATA extern unsigned opaqueRootMergeThreshold; 78 78 79 79 void initializeOptions(); -
trunk/Source/JavaScriptCore/runtime/PropertyDescriptor.h
r104836 r104900 42 42 { 43 43 } 44 bool writable() const;45 bool enumerable() const;46 bool configurable() const;47 bool isDataDescriptor() const;44 JS_EXPORT_PRIVATE bool writable() const; 45 JS_EXPORT_PRIVATE bool enumerable() const; 46 JS_EXPORT_PRIVATE bool configurable() const; 47 JS_EXPORT_PRIVATE bool isDataDescriptor() const; 48 48 bool isGenericDescriptor() const; 49 bool isAccessorDescriptor() const;49 JS_EXPORT_PRIVATE bool isAccessorDescriptor() const; 50 50 unsigned attributes() const { return m_attributes; } 51 51 JSValue value() const { return m_value; } 52 JS Value getter() const;53 JS Value setter() const;52 JS_EXPORT_PRIVATE JSValue getter() const; 53 JS_EXPORT_PRIVATE JSValue setter() const; 54 54 JSObject* getterObject() const; 55 55 JSObject* setterObject() const; 56 void setUndefined();57 void setDescriptor(JSValue value, unsigned attributes);56 JS_EXPORT_PRIVATE void setUndefined(); 57 JS_EXPORT_PRIVATE void setDescriptor(JSValue value, unsigned attributes); 58 58 void setAccessorDescriptor(GetterSetter* accessor, unsigned attributes); 59 void setWritable(bool);60 void setEnumerable(bool);61 void setConfigurable(bool);59 JS_EXPORT_PRIVATE void setWritable(bool); 60 JS_EXPORT_PRIVATE void setEnumerable(bool); 61 JS_EXPORT_PRIVATE void setConfigurable(bool); 62 62 void setValue(JSValue value) { m_value = value; } 63 void setSetter(JSValue);64 void setGetter(JSValue);63 JS_EXPORT_PRIVATE void setSetter(JSValue); 64 JS_EXPORT_PRIVATE void setGetter(JSValue); 65 65 bool isEmpty() const { return !(m_value || m_getter || m_setter || m_seenAttributes); } 66 66 bool writablePresent() const { return m_seenAttributes & WritablePresent; } … … 75 75 76 76 private: 77 static unsigned defaultAttributes;77 JS_EXPORTDATA static unsigned defaultAttributes; 78 78 bool operator==(const PropertyDescriptor&){ return false; } 79 79 enum { WritablePresent = 1, EnumerablePresent = 2, ConfigurablePresent = 4}; -
trunk/Source/JavaScriptCore/runtime/PropertyNameArray.h
r65104 r104900 70 70 71 71 void add(const Identifier& identifier) { add(identifier.impl()); } 72 void add(StringImpl*);72 JS_EXPORT_PRIVATE void add(StringImpl*); 73 73 void addKnownUnique(StringImpl* identifier) { m_data->propertyNameVector().append(Identifier(m_globalData, identifier)); } 74 74 -
trunk/Source/JavaScriptCore/runtime/PropertySlot.h
r91095 r104900 219 219 } 220 220 private: 221 JS Value functionGetter(ExecState*) const;221 JS_EXPORT_PRIVATE JSValue functionGetter(ExecState*) const; 222 222 223 223 GetValueFunc m_getValue; -
trunk/Source/JavaScriptCore/runtime/RegExp.h
r103083 r104900 36 36 class JSGlobalData; 37 37 38 RegExpFlags regExpFlags(const UString&);38 JS_EXPORT_PRIVATE RegExpFlags regExpFlags(const UString&); 39 39 40 40 class RegExp : public JSCell { … … 42 42 typedef JSCell Base; 43 43 44 static RegExp* create(JSGlobalData&, const UString& pattern, RegExpFlags);44 JS_EXPORT_PRIVATE static RegExp* create(JSGlobalData&, const UString& pattern, RegExpFlags); 45 45 static void destroy(JSCell*); 46 46 … … 54 54 const char* errorMessage() const { return m_constructionError; } 55 55 56 int match(JSGlobalData&, const UString&, int startOffset, Vector<int, 32>* ovector = 0);56 JS_EXPORT_PRIVATE int match(JSGlobalData&, const UString&, int startOffset, Vector<int, 32>* ovector = 0); 57 57 unsigned numSubpatterns() const { return m_numSubpatterns; } 58 58 -
trunk/Source/JavaScriptCore/runtime/RegExpObject.h
r103243 r104900 76 76 77 77 protected: 78 RegExpObject(JSGlobalObject*, Structure*, RegExp*);79 void finishCreation(JSGlobalObject*);78 JS_EXPORT_PRIVATE RegExpObject(JSGlobalObject*, Structure*, RegExp*); 79 JS_EXPORT_PRIVATE void finishCreation(JSGlobalObject*); 80 80 static void destroy(JSCell*); 81 81 -
trunk/Source/JavaScriptCore/runtime/SamplingCounter.h
r95901 r104900 47 47 } 48 48 49 static void dump();49 JS_EXPORT_PRIVATE static void dump(); 50 50 51 51 int64_t* addressOfCounter() { return &m_counter; } … … 75 75 // Null object used to detect end of static chain. 76 76 static AbstractSamplingCounter s_abstractSamplingCounterChainEnd; 77 static AbstractSamplingCounter* s_abstractSamplingCounterChain;77 JS_EXPORTDATA static AbstractSamplingCounter* s_abstractSamplingCounterChain; 78 78 static bool s_completed; 79 79 }; -
trunk/Source/JavaScriptCore/runtime/SmallStrings.h
r89077 r104900 61 61 } 62 62 63 StringImpl* singleCharacterStringRep(unsigned char character);63 JS_EXPORT_PRIVATE StringImpl* singleCharacterStringRep(unsigned char character); 64 64 65 65 void finalizeSmallStrings(); … … 73 73 static const unsigned singleCharacterStringCount = maxSingleCharacterString + 1; 74 74 75 void createEmptyString(JSGlobalData*);76 void createSingleCharacterString(JSGlobalData*, unsigned char);75 JS_EXPORT_PRIVATE void createEmptyString(JSGlobalData*); 76 JS_EXPORT_PRIVATE void createSingleCharacterString(JSGlobalData*, unsigned char); 77 77 78 78 JSString* m_emptyString; -
trunk/Source/JavaScriptCore/runtime/StringObject.h
r103243 r104900 65 65 66 66 protected: 67 void finishCreation(JSGlobalData&, JSString*);67 JS_EXPORT_PRIVATE void finishCreation(JSGlobalData&, JSString*); 68 68 static const unsigned StructureFlags = OverridesGetOwnPropertySlot | OverridesGetPropertyNames | JSWrapperObject::StructureFlags; 69 StringObject(JSGlobalData&, Structure*);69 JS_EXPORT_PRIVATE StringObject(JSGlobalData&, Structure*); 70 70 }; 71 71 -
trunk/Source/JavaScriptCore/runtime/Structure.h
r104871 r104900 85 85 static void dumpStatistics(); 86 86 87 static Structure* addPropertyTransition(JSGlobalData&, Structure*, const Identifier& propertyName, unsigned attributes, JSCell* specificValue, size_t& offset);88 static Structure* addPropertyTransitionToExistingStructure(Structure*, const Identifier& propertyName, unsigned attributes, JSCell* specificValue, size_t& offset);87 JS_EXPORT_PRIVATE static Structure* addPropertyTransition(JSGlobalData&, Structure*, const Identifier& propertyName, unsigned attributes, JSCell* specificValue, size_t& offset); 88 JS_EXPORT_PRIVATE static Structure* addPropertyTransitionToExistingStructure(Structure*, const Identifier& propertyName, unsigned attributes, JSCell* specificValue, size_t& offset); 89 89 static Structure* removePropertyTransition(JSGlobalData&, Structure*, const Identifier& propertyName, size_t& offset); 90 static Structure* changePrototypeTransition(JSGlobalData&, Structure*, JSValue prototype);91 static Structure* despecifyFunctionTransition(JSGlobalData&, Structure*, const Identifier&);90 JS_EXPORT_PRIVATE static Structure* changePrototypeTransition(JSGlobalData&, Structure*, JSValue prototype); 91 JS_EXPORT_PRIVATE static Structure* despecifyFunctionTransition(JSGlobalData&, Structure*, const Identifier&); 92 92 static Structure* attributeChangeTransition(JSGlobalData&, Structure*, const Identifier& propertyName, unsigned attributes); 93 93 static Structure* toCacheableDictionaryTransition(JSGlobalData&, Structure*); … … 107 107 108 108 // These should be used with caution. 109 size_t addPropertyWithoutTransition(JSGlobalData&, const Identifier& propertyName, unsigned attributes, JSCell* specificValue);109 JS_EXPORT_PRIVATE size_t addPropertyWithoutTransition(JSGlobalData&, const Identifier& propertyName, unsigned attributes, JSCell* specificValue); 110 110 size_t removePropertyWithoutTransition(JSGlobalData&, const Identifier& propertyName); 111 111 void setPrototypeWithoutTransition(JSGlobalData& globalData, JSValue prototype) { m_prototype.set(globalData, this, prototype); } … … 137 137 size_t get(JSGlobalData&, const Identifier& propertyName); 138 138 size_t get(JSGlobalData&, const UString& name); 139 size_t get(JSGlobalData&, StringImpl* propertyName, unsigned& attributes, JSCell*& specificValue);139 JS_EXPORT_PRIVATE size_t get(JSGlobalData&, StringImpl* propertyName, unsigned& attributes, JSCell*& specificValue); 140 140 size_t get(JSGlobalData& globalData, const Identifier& propertyName, unsigned& attributes, JSCell*& specificValue) 141 141 { … … 152 152 bool isEmpty() const { return m_propertyTable ? m_propertyTable->isEmpty() : m_offset == noOffset; } 153 153 154 void despecifyDictionaryFunction(JSGlobalData&, const Identifier& propertyName);154 JS_EXPORT_PRIVATE void despecifyDictionaryFunction(JSGlobalData&, const Identifier& propertyName); 155 155 void disableSpecificFunctionTracking() { m_specificFunctionThrashCount = maxSpecificFunctionThrashCount; } 156 156 … … 197 197 198 198 private: 199 Structure(JSGlobalData&, JSGlobalObject*, JSValue prototype, const TypeInfo&, const ClassInfo*);199 JS_EXPORT_PRIVATE Structure(JSGlobalData&, JSGlobalObject*, JSValue prototype, const TypeInfo&, const ClassInfo*); 200 200 Structure(JSGlobalData&); 201 201 Structure(JSGlobalData&, const Structure*); … … 227 227 PassOwnPtr<PropertyTable> copyPropertyTable(JSGlobalData&, Structure* owner); 228 228 PassOwnPtr<PropertyTable> copyPropertyTableForPinning(JSGlobalData&, Structure* owner); 229 void materializePropertyMap(JSGlobalData&);229 JS_EXPORT_PRIVATE void materializePropertyMap(JSGlobalData&); 230 230 void materializePropertyMapIfNecessary(JSGlobalData& globalData) 231 231 { -
trunk/Source/JavaScriptCore/runtime/TimeoutChecker.h
r95901 r104900 58 58 } 59 59 60 void reset();60 JS_EXPORT_PRIVATE void reset(); 61 61 62 bool didTimeOut(ExecState*);62 JS_EXPORT_PRIVATE bool didTimeOut(ExecState*); 63 63 64 64 private: -
trunk/Source/JavaScriptCore/runtime/UString.h
r101147 r104900 34 34 35 35 // Construct a string with UTF-16 data. 36 UString(const UChar* characters, unsigned length);36 JS_EXPORT_PRIVATE UString(const UChar* characters, unsigned length); 37 37 38 38 // Construct a string with UTF-16 data, from a null-terminated source. 39 UString(const UChar*);39 JS_EXPORT_PRIVATE UString(const UChar*); 40 40 41 41 // Construct a string with latin1 data. 42 42 UString(const LChar* characters, unsigned length); 43 UString(const char* characters, unsigned length);43 JS_EXPORT_PRIVATE UString(const char* characters, unsigned length); 44 44 45 45 // Construct a string with latin1 data, from a null-terminated source. 46 46 UString(const LChar* characters); 47 UString(const char* characters);47 JS_EXPORT_PRIVATE UString(const char* characters); 48 48 49 49 // Construct a string referencing an existing StringImpl. … … 100 100 bool is8Bit() const { return m_impl->is8Bit(); } 101 101 102 CString ascii() const;102 JS_EXPORT_PRIVATE CString ascii() const; 103 103 CString latin1() const; 104 CString utf8(bool strict = false) const;104 JS_EXPORT_PRIVATE CString utf8(bool strict = false) const; 105 105 106 106 UChar operator[](unsigned index) const … … 113 113 } 114 114 115 static UString number(int);116 static UString number(unsigned);117 static UString number(long);115 JS_EXPORT_PRIVATE static UString number(int); 116 JS_EXPORT_PRIVATE static UString number(unsigned); 117 JS_EXPORT_PRIVATE static UString number(long); 118 118 static UString number(long long); 119 static UString number(double);119 JS_EXPORT_PRIVATE static UString number(double); 120 120 121 121 // Find a single character or string, also with match function & latin1 forms. … … 133 133 { return m_impl ? m_impl->reverseFind(str.impl(), start) : notFound; } 134 134 135 UString substringSharingImpl(unsigned pos, unsigned len = UINT_MAX) const;135 JS_EXPORT_PRIVATE UString substringSharingImpl(unsigned pos, unsigned len = UINT_MAX) const; 136 136 137 137 private: … … 190 190 } 191 191 192 bool operator<(const UString& s1, const UString& s2);193 bool operator>(const UString& s1, const UString& s2);194 195 bool operator==(const UString& s1, const char* s2);192 JS_EXPORT_PRIVATE bool operator<(const UString& s1, const UString& s2); 193 JS_EXPORT_PRIVATE bool operator>(const UString& s1, const UString& s2); 194 195 JS_EXPORT_PRIVATE bool operator==(const UString& s1, const char* s2); 196 196 197 197 inline bool operator!=(const UString& s1, const char* s2) -
trunk/Source/JavaScriptCore/runtime/WriteBarrier.h
r97642 r104900 41 41 template<> class WriteBarrierBase<JSValue>; 42 42 43 void slowValidateCell(JSCell*);44 void slowValidateCell(JSGlobalObject*);43 JS_EXPORT_PRIVATE void slowValidateCell(JSCell*); 44 JS_EXPORT_PRIVATE void slowValidateCell(JSGlobalObject*); 45 45 46 46 #if ENABLE(GC_VALIDATION) -
trunk/Source/JavaScriptCore/wtf/ArrayBufferView.h
r101295 r104900 66 66 virtual unsigned byteLength() const = 0; 67 67 68 virtual ~ArrayBufferView();68 WTF_EXPORT_PRIVATE virtual ~ArrayBufferView(); 69 69 70 70 protected: 71 ArrayBufferView(PassRefPtr<ArrayBuffer>, unsigned byteOffset);71 WTF_EXPORT_PRIVATE ArrayBufferView(PassRefPtr<ArrayBuffer>, unsigned byteOffset); 72 72 73 73 inline bool setImpl(ArrayBufferView*, unsigned byteOffset); … … 119 119 } 120 120 121 virtual void neuter();121 WTF_EXPORT_PRIVATE virtual void neuter(); 122 122 123 123 // This is the address of the ArrayBuffer's storage, plus the byte offset. -
trunk/Source/JavaScriptCore/wtf/ByteArray.h
r104471 r104900 84 84 } 85 85 86 static PassRefPtr<ByteArray> create(size_t size);86 WTF_EXPORT_PRIVATE static PassRefPtr<ByteArray> create(size_t size); 87 87 88 88 static size_t offsetOfSize() { return OBJECT_OFFSETOF(ByteArray, m_size); } -
trunk/Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.h
r95901 r104900 32 32 33 33 #if USE(OS_RANDOMNESS) 34 uint32_t cryptographicallyRandomNumber();35 void cryptographicallyRandomValues(void* buffer, size_t length);34 WTF_EXPORT_PRIVATE uint32_t cryptographicallyRandomNumber(); 35 WTF_EXPORT_PRIVATE void cryptographicallyRandomValues(void* buffer, size_t length); 36 36 #endif 37 37 -
trunk/Source/JavaScriptCore/wtf/CurrentTime.h
r88199 r104900 40 40 // Precision varies depending on platform but is usually as good or better 41 41 // than a millisecond. 42 double currentTime();42 WTF_EXPORT_PRIVATE double currentTime(); 43 43 44 44 // Same thing, in milliseconds. … … 61 61 // Provides a monotonically increasing time in seconds since an arbitrary point in the past. 62 62 // On unsupported platforms, this function only guarantees the result will be non-decreasing. 63 double monotonicallyIncreasingTime();63 WTF_EXPORT_PRIVATE double monotonicallyIncreasingTime(); 64 64 65 65 } // namespace WTF -
trunk/Source/JavaScriptCore/wtf/DateMath.h
r100205 r104900 62 62 // Not really math related, but this is currently the only shared place to put these. 63 63 double parseES5DateFromNullTerminatedCharacters(const char* dateString); 64 double parseDateFromNullTerminatedCharacters(const char* dateString);64 WTF_EXPORT_PRIVATE double parseDateFromNullTerminatedCharacters(const char* dateString); 65 65 double parseDateFromNullTerminatedCharacters(const char* dateString, bool& haveTZ, int& offset); 66 66 double timeClip(double); … … 90 90 91 91 // Returns the number of days from 1970-01-01 to the specified date. 92 double dateToDaysFrom1970(int year, int month, int day);93 int msToYear(double ms);92 WTF_EXPORT_PRIVATE double dateToDaysFrom1970(int year, int month, int day); 93 WTF_EXPORT_PRIVATE int msToYear(double ms); 94 94 double msToDays(double ms); 95 95 int msToMinutes(double ms); 96 96 int msToHours(double ms); 97 int dayInYear(double ms, int year);98 int monthFromDayInYear(int dayInYear, bool leapYear);99 int dayInMonthFromDayInYear(int dayInYear, bool leapYear);97 WTF_EXPORT_PRIVATE int dayInYear(double ms, int year); 98 WTF_EXPORT_PRIVATE int monthFromDayInYear(int dayInYear, bool leapYear); 99 WTF_EXPORT_PRIVATE int dayInMonthFromDayInYear(int dayInYear, bool leapYear); 100 100 101 101 // Returns offset milliseconds for UTC and DST. 102 int32_t calculateUTCOffset();103 double calculateDSTOffset(double ms, double utcOffset);102 WTF_EXPORT_PRIVATE int32_t calculateUTCOffset(); 103 WTF_EXPORT_PRIVATE double calculateDSTOffset(double ms, double utcOffset); 104 104 105 105 } // namespace WTF -
trunk/Source/JavaScriptCore/wtf/DecimalNumber.h
r95901 r104900 82 82 } 83 83 84 unsigned bufferLengthForStringDecimal() const;85 unsigned bufferLengthForStringExponential() const;84 WTF_EXPORT_PRIVATE unsigned bufferLengthForStringDecimal() const; 85 WTF_EXPORT_PRIVATE unsigned bufferLengthForStringExponential() const; 86 86 87 unsigned toStringDecimal(UChar* buffer, unsigned bufferLength) const;88 unsigned toStringExponential(UChar* buffer, unsigned bufferLength) const;87 WTF_EXPORT_PRIVATE unsigned toStringDecimal(UChar* buffer, unsigned bufferLength) const; 88 WTF_EXPORT_PRIVATE unsigned toStringExponential(UChar* buffer, unsigned bufferLength) const; 89 89 90 90 bool sign() const { return m_sign; } -
trunk/Source/JavaScriptCore/wtf/FastMalloc.cpp
r100152 r104900 183 183 namespace Internal { 184 184 #if !ENABLE(WTF_MALLOC_VALIDATION) 185 void fastMallocMatchFailed(void*);185 WTF_EXPORT_PRIVATE void fastMallocMatchFailed(void*); 186 186 #else 187 187 COMPILE_ASSERT(((sizeof(ValidationHeader) % sizeof(AllocAlignmentInteger)) == 0), ValidationHeader_must_produce_correct_alignment); … … 401 401 // This symbol is present in the JavaScriptCore exports file even when FastMalloc is disabled. 402 402 // It will never be used in this case, so it's type and value are less interesting than its presence. 403 extern "C" const int jscore_fastmalloc_introspection = 0;403 extern "C" WTF_EXPORT_PRIVATE const int jscore_fastmalloc_introspection = 0; 404 404 #endif 405 405 -
trunk/Source/JavaScriptCore/wtf/FastMalloc.h
r95555 r104900 30 30 31 31 // These functions call CRASH() if an allocation fails. 32 void* fastMalloc(size_t);33 void* fastZeroedMalloc(size_t);34 void* fastCalloc(size_t numElements, size_t elementSize);35 void* fastRealloc(void*, size_t);36 char* fastStrDup(const char*);37 size_t fastMallocSize(const void*);32 WTF_EXPORT_PRIVATE void* fastMalloc(size_t); 33 WTF_EXPORT_PRIVATE void* fastZeroedMalloc(size_t); 34 WTF_EXPORT_PRIVATE void* fastCalloc(size_t numElements, size_t elementSize); 35 WTF_EXPORT_PRIVATE void* fastRealloc(void*, size_t); 36 WTF_EXPORT_PRIVATE char* fastStrDup(const char*); 37 WTF_EXPORT_PRIVATE size_t fastMallocSize(const void*); 38 38 39 39 struct TryMallocReturnValue { … … 69 69 } 70 70 71 TryMallocReturnValue tryFastMalloc(size_t n);71 WTF_EXPORT_PRIVATE TryMallocReturnValue tryFastMalloc(size_t n); 72 72 TryMallocReturnValue tryFastZeroedMalloc(size_t n); 73 TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size);74 TryMallocReturnValue tryFastRealloc(void* p, size_t n);75 76 void fastFree(void*);73 WTF_EXPORT_PRIVATE TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size); 74 WTF_EXPORT_PRIVATE TryMallocReturnValue tryFastRealloc(void* p, size_t n); 75 76 WTF_EXPORT_PRIVATE void fastFree(void*); 77 77 78 78 #ifndef NDEBUG … … 81 81 #endif 82 82 83 void releaseFastMallocFreeMemory();83 WTF_EXPORT_PRIVATE void releaseFastMallocFreeMemory(); 84 84 85 85 struct FastMallocStatistics { … … 88 88 size_t freeListBytes; 89 89 }; 90 FastMallocStatistics fastMallocStatistics();90 WTF_EXPORT_PRIVATE FastMallocStatistics fastMallocStatistics(); 91 91 92 92 // This defines a type which holds an unsigned integer and is the same -
trunk/Source/JavaScriptCore/wtf/MD5.h
r95901 r104900 38 38 class MD5 { 39 39 public: 40 MD5();40 WTF_EXPORT_PRIVATE MD5(); 41 41 42 42 void addBytes(const Vector<uint8_t>& input) … … 44 44 addBytes(input.data(), input.size()); 45 45 } 46 void addBytes(const uint8_t* input, size_t length);46 WTF_EXPORT_PRIVATE void addBytes(const uint8_t* input, size_t length); 47 47 48 48 // checksum has a side effect of resetting the state of the object. 49 void checksum(Vector<uint8_t, 16>&);49 WTF_EXPORT_PRIVATE void checksum(Vector<uint8_t, 16>&); 50 50 51 51 private: -
trunk/Source/JavaScriptCore/wtf/MainThread.h
r102797 r104900 41 41 42 42 // Must be called from the main thread. 43 void initializeMainThread();43 WTF_EXPORT_PRIVATE void initializeMainThread(); 44 44 45 void callOnMainThread(MainThreadFunction*, void* context);46 void callOnMainThreadAndWait(MainThreadFunction*, void* context);47 void cancelCallOnMainThread(MainThreadFunction*, void* context);45 WTF_EXPORT_PRIVATE void callOnMainThread(MainThreadFunction*, void* context); 46 WTF_EXPORT_PRIVATE void callOnMainThreadAndWait(MainThreadFunction*, void* context); 47 WTF_EXPORT_PRIVATE void cancelCallOnMainThread(MainThreadFunction*, void* context); 48 48 49 49 template<typename> class Function; 50 void callOnMainThread(const Function<void ()>&);50 WTF_EXPORT_PRIVATE void callOnMainThread(const Function<void ()>&); 51 51 52 void setMainThreadCallbacksPaused(bool paused);52 WTF_EXPORT_PRIVATE void setMainThreadCallbacksPaused(bool paused); 53 53 54 bool isMainThread();54 WTF_EXPORT_PRIVATE bool isMainThread(); 55 55 #if ENABLE(PARALLEL_GC) 56 56 void registerGCThread(); 57 bool isMainThreadOrGCThread();57 WTF_EXPORT_PRIVATE bool isMainThreadOrGCThread(); 58 58 #elif PLATFORM(MAC) 59 59 bool isMainThreadOrGCThread(); … … 71 71 // to the process's main thread, and not necessarily the thread that calls this 72 72 // function. It should only be used as a legacy aid for Mac WebKit. 73 void initializeMainThreadToProcessMainThread();73 WTF_EXPORT_PRIVATE void initializeMainThreadToProcessMainThread(); 74 74 void initializeMainThreadToProcessMainThreadPlatform(); 75 75 #endif -
trunk/Source/JavaScriptCore/wtf/MetaAllocator.h
r95901 r104900 48 48 public: 49 49 50 MetaAllocator(size_t allocationGranule);50 WTF_EXPORT_PRIVATE MetaAllocator(size_t allocationGranule); 51 51 52 52 virtual ~MetaAllocator(); 53 53 54 PassRefPtr<MetaAllocatorHandle> allocate(size_t sizeInBytes);54 WTF_EXPORT_PRIVATE PassRefPtr<MetaAllocatorHandle> allocate(size_t sizeInBytes); 55 55 56 56 // Non-atomic methods for getting allocator statistics. … … 70 70 // the constructor if you wish to operate the allocator within a 71 71 // fixed pool. 72 void addFreshFreeSpace(void* start, size_t sizeInBytes);72 WTF_EXPORT_PRIVATE void addFreshFreeSpace(void* start, size_t sizeInBytes); 73 73 74 74 // This is meant only for implementing tests. Never call this in release 75 75 // builds. 76 size_t debugFreeSpaceSize();76 WTF_EXPORT_PRIVATE size_t debugFreeSpaceSize(); 77 77 78 78 #if ENABLE(META_ALLOCATOR_PROFILE) … … 128 128 129 129 FreeSpaceNode* allocFreeSpaceNode(); 130 void freeFreeSpaceNode(FreeSpaceNode*);130 WTF_EXPORT_PRIVATE void freeFreeSpaceNode(FreeSpaceNode*); 131 131 132 132 size_t m_allocationGranule; -
trunk/Source/JavaScriptCore/wtf/MetaAllocatorHandle.h
r99382 r104900 51 51 52 52 public: 53 ~MetaAllocatorHandle();53 WTF_EXPORT_PRIVATE ~MetaAllocatorHandle(); 54 54 55 55 static PassRefPtr<MetaAllocatorHandle> createSelfManagedHandle(void* start, size_t sizeInBytes) … … 73 73 } 74 74 75 void shrink(size_t newSizeInBytes);75 WTF_EXPORT_PRIVATE void shrink(size_t newSizeInBytes); 76 76 77 77 bool isManaged() -
trunk/Source/JavaScriptCore/wtf/OSAllocator.h
r97557 r104900 47 47 // the memory must all currently be in a decommitted state. 48 48 static void* reserveUncommitted(size_t, Usage = UnknownUsage, bool writable = true, bool executable = false, bool includesGuardPages = false); 49 static void releaseDecommitted(void*, size_t);49 WTF_EXPORT_PRIVATE static void releaseDecommitted(void*, size_t); 50 50 51 51 // These methods are symmetric; they commit or decommit a region of VM (uncommitted VM should … … 58 58 // decommitAndRelease should be called on a region of VM allocated by a single reservation, 59 59 // the memory must all currently be in a committed state. 60 static void* reserveAndCommit(size_t, Usage = UnknownUsage, bool writable = true, bool executable = false, bool includesGuardPages = false);60 WTF_EXPORT_PRIVATE static void* reserveAndCommit(size_t, Usage = UnknownUsage, bool writable = true, bool executable = false, bool includesGuardPages = false); 61 61 static void decommitAndRelease(void* base, size_t size); 62 62 -
trunk/Source/JavaScriptCore/wtf/PageBlock.h
r95901 r104900 29 29 namespace WTF { 30 30 31 size_t pageSize();31 WTF_EXPORT_PRIVATE size_t pageSize(); 32 32 inline bool isPageAligned(void* address) { return !(reinterpret_cast<intptr_t>(address) & (pageSize() - 1)); } 33 33 inline bool isPageAligned(size_t size) { return !(size & (pageSize() - 1)); } -
trunk/Source/JavaScriptCore/wtf/RandomNumber.h
r95901 r104900 31 31 // Returns a pseudo-random number in the range [0, 1), attempts to be 32 32 // cryptographically secure if possible on the target platform 33 double randomNumber();33 WTF_EXPORT_PRIVATE double randomNumber(); 34 34 35 35 } -
trunk/Source/JavaScriptCore/wtf/RefCountedLeakCounter.h
r95901 r104900 28 28 29 29 struct RefCountedLeakCounter { 30 static void suppressMessages(const char*);31 static void cancelMessageSuppression(const char*);30 WTF_EXPORT_PRIVATE static void suppressMessages(const char*); 31 WTF_EXPORT_PRIVATE static void cancelMessageSuppression(const char*); 32 32 33 explicit RefCountedLeakCounter(const char* description);34 ~RefCountedLeakCounter();33 WTF_EXPORT_PRIVATE explicit RefCountedLeakCounter(const char* description); 34 WTF_EXPORT_PRIVATE ~RefCountedLeakCounter(); 35 35 36 void increment();37 void decrement();36 WTF_EXPORT_PRIVATE void increment(); 37 WTF_EXPORT_PRIVATE void decrement(); 38 38 39 39 #ifndef NDEBUG -
trunk/Source/JavaScriptCore/wtf/SHA1.h
r95901 r104900 38 38 class SHA1 { 39 39 public: 40 SHA1();40 WTF_EXPORT_PRIVATE SHA1(); 41 41 42 42 void addBytes(const Vector<uint8_t>& input) … … 44 44 addBytes(input.data(), input.size()); 45 45 } 46 void addBytes(const uint8_t* input, size_t length);46 WTF_EXPORT_PRIVATE void addBytes(const uint8_t* input, size_t length); 47 47 48 48 // computeHash has a side effect of resetting the state of the object. 49 void computeHash(Vector<uint8_t, 20>&);49 WTF_EXPORT_PRIVATE void computeHash(Vector<uint8_t, 20>&); 50 50 51 51 private: -
trunk/Source/JavaScriptCore/wtf/Threading.cpp
r95901 r104900 90 90 // compatibility. Use the 3-argument version of createThread above. 91 91 92 ThreadIdentifier createThread(ThreadFunction entryPoint, void* data);92 WTF_EXPORT_PRIVATE ThreadIdentifier createThread(ThreadFunction entryPoint, void* data); 93 93 94 94 ThreadIdentifier createThread(ThreadFunction entryPoint, void* data) -
trunk/Source/JavaScriptCore/wtf/Threading.h
r92068 r104900 84 84 // Darwin is an exception to this rule: it is OK to call it from any thread, the only 85 85 // requirement is that the calls are not reentrant. 86 void initializeThreading();86 WTF_EXPORT_PRIVATE void initializeThreading(); 87 87 88 88 // Returns 0 if thread creation failed. 89 89 // The thread name must be a literal since on some platforms it's passed in to the thread. 90 ThreadIdentifier createThread(ThreadFunction, void*, const char* threadName);90 WTF_EXPORT_PRIVATE ThreadIdentifier createThread(ThreadFunction, void*, const char* threadName); 91 91 92 92 // Internal platform-specific createThread implementation. … … 97 97 void initializeCurrentThreadInternal(const char* threadName); 98 98 99 ThreadIdentifier currentThread();100 int waitForThreadCompletion(ThreadIdentifier, void**);101 void detachThread(ThreadIdentifier);99 WTF_EXPORT_PRIVATE ThreadIdentifier currentThread(); 100 WTF_EXPORT_PRIVATE int waitForThreadCompletion(ThreadIdentifier, void**); 101 WTF_EXPORT_PRIVATE void detachThread(ThreadIdentifier); 102 102 103 void yield();103 WTF_EXPORT_PRIVATE void yield(); 104 104 105 void lockAtomicallyInitializedStaticMutex();106 void unlockAtomicallyInitializedStaticMutex();105 WTF_EXPORT_PRIVATE void lockAtomicallyInitializedStaticMutex(); 106 WTF_EXPORT_PRIVATE void unlockAtomicallyInitializedStaticMutex(); 107 107 108 108 } // namespace WTF -
trunk/Source/JavaScriptCore/wtf/ThreadingPrimitives.h
r101477 r104900 83 83 WTF_MAKE_NONCOPYABLE(Mutex); WTF_MAKE_FAST_ALLOCATED; 84 84 public: 85 Mutex();86 ~Mutex();85 WTF_EXPORT_PRIVATE Mutex(); 86 WTF_EXPORT_PRIVATE ~Mutex(); 87 87 88 void lock();89 bool tryLock();90 void unlock();88 WTF_EXPORT_PRIVATE void lock(); 89 WTF_EXPORT_PRIVATE bool tryLock(); 90 WTF_EXPORT_PRIVATE void unlock(); 91 91 92 92 public: … … 119 119 WTF_MAKE_NONCOPYABLE(ThreadCondition); 120 120 public: 121 ThreadCondition();122 ~ThreadCondition();121 WTF_EXPORT_PRIVATE ThreadCondition(); 122 WTF_EXPORT_PRIVATE ~ThreadCondition(); 123 123 124 void wait(Mutex& mutex);124 WTF_EXPORT_PRIVATE void wait(Mutex& mutex); 125 125 // Returns true if the condition was signaled before absoluteTime, false if the absoluteTime was reached or is in the past. 126 126 // The absoluteTime is in seconds, starting on January 1, 1970. The time is assumed to use the same time zone as WTF::currentTime(). 127 bool timedWait(Mutex&, double absoluteTime);128 void signal();129 void broadcast();127 WTF_EXPORT_PRIVATE bool timedWait(Mutex&, double absoluteTime); 128 WTF_EXPORT_PRIVATE void signal(); 129 WTF_EXPORT_PRIVATE void broadcast(); 130 130 131 131 private: -
trunk/Source/JavaScriptCore/wtf/WTFThreadData.h
r102849 r104900 79 79 WTF_MAKE_NONCOPYABLE(WTFThreadData); 80 80 public: 81 WTF ThreadData();82 ~WTFThreadData();81 WTF_EXPORT_PRIVATE WTFThreadData(); 82 WTF_EXPORT_PRIVATE ~WTFThreadData(); 83 83 84 84 AtomicStringTable* atomicStringTable() -
trunk/Source/JavaScriptCore/wtf/dtoa.h
r101056 r104900 32 32 typedef char DtoaBuffer[80]; 33 33 34 void dtoa(DtoaBuffer result, double dd, bool& sign, int& exponent, unsigned& precision);35 void dtoaRoundSF(DtoaBuffer result, double dd, int ndigits, bool& sign, int& exponent, unsigned& precision);36 void dtoaRoundDP(DtoaBuffer result, double dd, int ndigits, bool& sign, int& exponent, unsigned& precision);34 WTF_EXPORT_PRIVATE void dtoa(DtoaBuffer result, double dd, bool& sign, int& exponent, unsigned& precision); 35 WTF_EXPORT_PRIVATE void dtoaRoundSF(DtoaBuffer result, double dd, int ndigits, bool& sign, int& exponent, unsigned& precision); 36 WTF_EXPORT_PRIVATE void dtoaRoundDP(DtoaBuffer result, double dd, int ndigits, bool& sign, int& exponent, unsigned& precision); 37 37 38 38 // s00: input string. Must not be 0 and must be terminated by 0. 39 39 // se: *se will have the last consumed character position + 1. 40 double strtod(const char* s00, char** se);40 WTF_EXPORT_PRIVATE double strtod(const char* s00, char** se); 41 41 42 42 // Size = 80 for sizeof(DtoaBuffer) + some sign bits, decimal point, 'e', exponent digits. … … 44 44 typedef char NumberToStringBuffer[NumberToStringBufferLength]; 45 45 typedef UChar NumberToUStringBuffer[NumberToStringBufferLength]; 46 const char* numberToString(double, NumberToStringBuffer);46 WTF_EXPORT_PRIVATE const char* numberToString(double, NumberToStringBuffer); 47 47 const char* numberToFixedPrecisionString(double, unsigned significantFigures, NumberToStringBuffer, bool truncateTrailingZeros = false); 48 48 const char* numberToFixedWidthString(double, unsigned decimalPlaces, NumberToStringBuffer); -
trunk/Source/JavaScriptCore/wtf/text/AtomicString.h
r102849 r104900 39 39 class AtomicString { 40 40 public: 41 static void init();41 WTF_EXPORT_PRIVATE static void init(); 42 42 43 43 AtomicString() { } … … 55 55 bool isHashTableDeletedValue() const { return m_string.isHashTableDeletedValue(); } 56 56 57 static AtomicStringImpl* find(const UChar* s, unsigned length, unsigned existingHash);57 WTF_EXPORT_PRIVATE static AtomicStringImpl* find(const UChar* s, unsigned length, unsigned existingHash); 58 58 59 59 operator const String&() const { return m_string; } … … 84 84 { return m_string.endsWith(s, caseSensitive); } 85 85 86 AtomicString lower() const;86 WTF_EXPORT_PRIVATE AtomicString lower() const; 87 87 AtomicString upper() const { return AtomicString(impl()->upper()); } 88 88 … … 121 121 String m_string; 122 122 123 static PassRefPtr<StringImpl> add(const LChar*);123 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> add(const LChar*); 124 124 ALWAYS_INLINE static PassRefPtr<StringImpl> add(const char* s) { return add(reinterpret_cast<const LChar*>(s)); }; 125 static PassRefPtr<StringImpl> add(const UChar*, unsigned length);125 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> add(const UChar*, unsigned length); 126 126 ALWAYS_INLINE static PassRefPtr<StringImpl> add(const char* s, unsigned length) { return add(reinterpret_cast<const char*>(s), length); }; 127 static PassRefPtr<StringImpl> add(const UChar*, unsigned length, unsigned existingHash);128 static PassRefPtr<StringImpl> add(const UChar*);127 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> add(const UChar*, unsigned length, unsigned existingHash); 128 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> add(const UChar*); 129 129 ALWAYS_INLINE PassRefPtr<StringImpl> add(StringImpl* r) 130 130 { … … 133 133 return addSlowCase(r); 134 134 } 135 static PassRefPtr<StringImpl> addSlowCase(StringImpl*);136 static AtomicString fromUTF8Internal(const char*, const char*);135 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> addSlowCase(StringImpl*); 136 WTF_EXPORT_PRIVATE static AtomicString fromUTF8Internal(const char*, const char*); 137 137 }; 138 138 -
trunk/Source/JavaScriptCore/wtf/text/CString.h
r95901 r104900 53 53 public: 54 54 CString() { } 55 CString(const char*);56 CString(const char*, size_t length);55 WTF_EXPORT_PRIVATE CString(const char*); 56 WTF_EXPORT_PRIVATE CString(const char*, size_t length); 57 57 CString(CStringBuffer* buffer) : m_buffer(buffer) { } 58 static CString newUninitialized(size_t length, char*& characterBuffer);58 WTF_EXPORT_PRIVATE static CString newUninitialized(size_t length, char*& characterBuffer); 59 59 60 60 const char* data() const … … 62 62 return m_buffer ? m_buffer->data() : 0; 63 63 } 64 char* mutableData();64 WTF_EXPORT_PRIVATE char* mutableData(); 65 65 size_t length() const 66 66 { … … 78 78 }; 79 79 80 bool operator==(const CString& a, const CString& b);80 WTF_EXPORT_PRIVATE bool operator==(const CString& a, const CString& b); 81 81 inline bool operator!=(const CString& a, const CString& b) { return !(a == b); } 82 82 -
trunk/Source/JavaScriptCore/wtf/text/StringBuilder.h
r102298 r104900 42 42 } 43 43 44 void append(const UChar*, unsigned);45 void append(const LChar*, unsigned);44 WTF_EXPORT_PRIVATE void append(const UChar*, unsigned); 45 WTF_EXPORT_PRIVATE void append(const LChar*, unsigned); 46 46 47 47 ALWAYS_INLINE void append(const char* characters, unsigned length) { append(reinterpret_cast<const LChar*>(characters), length); } … … 128 128 bool isEmpty() const { return !length(); } 129 129 130 void reserveCapacity(unsigned newCapacity);131 132 void resize(unsigned newSize);133 134 void shrinkToFit();130 WTF_EXPORT_PRIVATE void reserveCapacity(unsigned newCapacity); 131 132 WTF_EXPORT_PRIVATE void resize(unsigned newSize); 133 134 WTF_EXPORT_PRIVATE void shrinkToFit(); 135 135 136 136 UChar operator[](unsigned i) const … … 201 201 template <typename CharType> 202 202 ALWAYS_INLINE CharType * getBufferCharacters(); 203 void reifyString();203 WTF_EXPORT_PRIVATE void reifyString(); 204 204 205 205 unsigned m_length; -
trunk/Source/JavaScriptCore/wtf/text/StringImpl.h
r104315 r104900 191 191 192 192 public: 193 ~StringImpl();194 195 static PassRefPtr<StringImpl> create(const UChar*, unsigned length);193 WTF_EXPORT_PRIVATE ~StringImpl(); 194 195 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> create(const UChar*, unsigned length); 196 196 static PassRefPtr<StringImpl> create(const LChar*, unsigned length); 197 197 ALWAYS_INLINE static PassRefPtr<StringImpl> create(const char* s, unsigned length) { return create(reinterpret_cast<const LChar*>(s), length); } 198 static PassRefPtr<StringImpl> create(const LChar*);198 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> create(const LChar*); 199 199 ALWAYS_INLINE static PassRefPtr<StringImpl> create(const char* s) { return create(reinterpret_cast<const LChar*>(s)); } 200 200 … … 227 227 228 228 static PassRefPtr<StringImpl> createUninitialized(unsigned length, LChar*& data); 229 static PassRefPtr<StringImpl> createUninitialized(unsigned length, UChar*& data);229 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> createUninitialized(unsigned length, UChar*& data); 230 230 template <typename T> static ALWAYS_INLINE PassRefPtr<StringImpl> tryCreateUninitialized(unsigned length, T*& output) 231 231 { … … 276 276 277 277 static PassRefPtr<StringImpl> adopt(StringBuffer<LChar>& buffer); 278 static PassRefPtr<StringImpl> adopt(StringBuffer<UChar>& buffer);278 WTF_EXPORT_PRIVATE static PassRefPtr<StringImpl> adopt(StringBuffer<UChar>& buffer); 279 279 280 280 unsigned length() const { return m_length; } … … 309 309 310 310 bool has16BitShadow() const { return m_hashAndFlags & s_hashFlagHas16BitShadow; } 311 void upconvertCharacters(unsigned, unsigned) const;311 WTF_EXPORT_PRIVATE void upconvertCharacters(unsigned, unsigned) const; 312 312 bool isIdentifier() const { return m_hashAndFlags & s_hashFlagIsIdentifier; } 313 313 void setIsIdentifier(bool isIdentifier) … … 394 394 } 395 395 396 static StringImpl* empty();396 WTF_EXPORT_PRIVATE static StringImpl* empty(); 397 397 398 398 // FIXME: Does this really belong in StringImpl? … … 429 429 PassRefPtr<StringImpl> isolatedCopy() const; 430 430 431 PassRefPtr<StringImpl> substring(unsigned pos, unsigned len = UINT_MAX);431 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> substring(unsigned pos, unsigned len = UINT_MAX); 432 432 433 433 UChar operator[](unsigned i) const … … 438 438 return m_data16[i]; 439 439 } 440 UChar32 characterStartingAt(unsigned);441 442 bool containsOnlyWhitespace();440 WTF_EXPORT_PRIVATE UChar32 characterStartingAt(unsigned); 441 442 WTF_EXPORT_PRIVATE bool containsOnlyWhitespace(); 443 443 444 444 int toIntStrict(bool* ok = 0, int base = 10); … … 448 448 intptr_t toIntPtrStrict(bool* ok = 0, int base = 10); 449 449 450 int toInt(bool* ok = 0); // ignores trailing garbage450 WTF_EXPORT_PRIVATE int toInt(bool* ok = 0); // ignores trailing garbage 451 451 unsigned toUInt(bool* ok = 0); // ignores trailing garbage 452 452 int64_t toInt64(bool* ok = 0); // ignores trailing garbage … … 457 457 float toFloat(bool* ok = 0, bool* didReadNumber = 0); 458 458 459 PassRefPtr<StringImpl> lower();460 PassRefPtr<StringImpl> upper();461 462 PassRefPtr<StringImpl> fill(UChar);459 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> lower(); 460 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> upper(); 461 462 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> fill(UChar); 463 463 // FIXME: Do we need fill(char) or can we just do the right thing if UChar is ASCII? 464 464 PassRefPtr<StringImpl> foldCase(); … … 466 466 PassRefPtr<StringImpl> stripWhiteSpace(); 467 467 PassRefPtr<StringImpl> stripWhiteSpace(IsWhiteSpaceFunctionPtr); 468 PassRefPtr<StringImpl> simplifyWhiteSpace();468 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> simplifyWhiteSpace(); 469 469 PassRefPtr<StringImpl> simplifyWhiteSpace(IsWhiteSpaceFunctionPtr); 470 470 … … 473 473 ALWAYS_INLINE PassRefPtr<StringImpl> removeCharacters(const CharType* characters, CharacterMatchFunctionPtr); 474 474 475 size_t find(UChar, unsigned index = 0);476 size_t find(CharacterMatchFunctionPtr, unsigned index = 0);475 WTF_EXPORT_PRIVATE size_t find(UChar, unsigned index = 0); 476 WTF_EXPORT_PRIVATE size_t find(CharacterMatchFunctionPtr, unsigned index = 0); 477 477 size_t find(const LChar*, unsigned index = 0); 478 478 ALWAYS_INLINE size_t find(const char* s, unsigned index = 0) { return find(reinterpret_cast<const LChar*>(s), index); }; 479 size_t find(StringImpl*, unsigned index = 0);479 WTF_EXPORT_PRIVATE size_t find(StringImpl*, unsigned index = 0); 480 480 size_t findIgnoringCase(const LChar*, unsigned index = 0); 481 481 ALWAYS_INLINE size_t findIgnoringCase(const char* s, unsigned index = 0) { return findIgnoringCase(reinterpret_cast<const LChar*>(s), index); }; 482 size_t findIgnoringCase(StringImpl*, unsigned index = 0);483 484 size_t reverseFind(UChar, unsigned index = UINT_MAX);485 size_t reverseFind(StringImpl*, unsigned index = UINT_MAX);486 size_t reverseFindIgnoringCase(StringImpl*, unsigned index = UINT_MAX);482 WTF_EXPORT_PRIVATE size_t findIgnoringCase(StringImpl*, unsigned index = 0); 483 484 WTF_EXPORT_PRIVATE size_t reverseFind(UChar, unsigned index = UINT_MAX); 485 WTF_EXPORT_PRIVATE size_t reverseFind(StringImpl*, unsigned index = UINT_MAX); 486 WTF_EXPORT_PRIVATE size_t reverseFindIgnoringCase(StringImpl*, unsigned index = UINT_MAX); 487 487 488 488 bool startsWith(StringImpl* str, bool caseSensitive = true) { return (caseSensitive ? reverseFind(str, 0) : reverseFindIgnoringCase(str, 0)) == 0; } 489 bool endsWith(StringImpl*, bool caseSensitive = true);490 491 PassRefPtr<StringImpl> replace(UChar, UChar);492 PassRefPtr<StringImpl> replace(UChar, StringImpl*);493 PassRefPtr<StringImpl> replace(StringImpl*, StringImpl*);494 PassRefPtr<StringImpl> replace(unsigned index, unsigned len, StringImpl*);495 496 WTF ::Unicode::Direction defaultWritingDirection(bool* hasStrongDirectionality = 0);489 WTF_EXPORT_PRIVATE bool endsWith(StringImpl*, bool caseSensitive = true); 490 491 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> replace(UChar, UChar); 492 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> replace(UChar, StringImpl*); 493 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> replace(StringImpl*, StringImpl*); 494 WTF_EXPORT_PRIVATE PassRefPtr<StringImpl> replace(unsigned index, unsigned len, StringImpl*); 495 496 WTF_EXPORT_PRIVATE WTF::Unicode::Direction defaultWritingDirection(bool* hasStrongDirectionality = 0); 497 497 498 498 #if USE(CF) … … 511 511 template <class UCharPredicate> PassRefPtr<StringImpl> stripMatchedCharacters(UCharPredicate); 512 512 template <typename CharType, class UCharPredicate> PassRefPtr<StringImpl> simplifyMatchedCharactersToSpace(UCharPredicate); 513 NEVER_INLINE const UChar* getData16SlowCase() const;514 NEVER_INLINE unsigned hashSlowCase() const;513 WTF_EXPORT_PRIVATE NEVER_INLINE const UChar* getData16SlowCase() const; 514 WTF_EXPORT_PRIVATE NEVER_INLINE unsigned hashSlowCase() const; 515 515 516 516 // The bottom bit in the ref count indicates a static (immortal) string. … … 551 551 ALWAYS_INLINE const UChar* StringImpl::getCharacters<UChar>() const { return characters16(); } 552 552 553 bool equal(const StringImpl*, const StringImpl*);554 bool equal(const StringImpl*, const LChar*);553 WTF_EXPORT_PRIVATE bool equal(const StringImpl*, const StringImpl*); 554 WTF_EXPORT_PRIVATE bool equal(const StringImpl*, const LChar*); 555 555 inline bool equal(const StringImpl* a, const char* b) { return equal(a, reinterpret_cast<const LChar*>(b)); } 556 bool equal(const StringImpl*, const LChar*, unsigned);556 WTF_EXPORT_PRIVATE bool equal(const StringImpl*, const LChar*, unsigned); 557 557 inline bool equal(const StringImpl* a, const char* b, unsigned length) { return equal(a, reinterpret_cast<const LChar*>(b), length); } 558 558 inline bool equal(const LChar* a, StringImpl* b) { return equal(b, a); } 559 559 inline bool equal(const char* a, StringImpl* b) { return equal(b, reinterpret_cast<const LChar*>(a)); } 560 bool equal(const StringImpl*, const UChar*, unsigned);560 WTF_EXPORT_PRIVATE bool equal(const StringImpl*, const UChar*, unsigned); 561 561 562 562 // Do comparisons 8 or 4 bytes-at-a-time on architectures where it's safe. … … 716 716 } 717 717 718 bool equalIgnoringCase(StringImpl*, StringImpl*);719 bool equalIgnoringCase(StringImpl*, const LChar*);718 WTF_EXPORT_PRIVATE bool equalIgnoringCase(StringImpl*, StringImpl*); 719 WTF_EXPORT_PRIVATE bool equalIgnoringCase(StringImpl*, const LChar*); 720 720 inline bool equalIgnoringCase(const LChar* a, StringImpl* b) { return equalIgnoringCase(b, a); } 721 bool equalIgnoringCase(const UChar*, const LChar*, unsigned);721 WTF_EXPORT_PRIVATE bool equalIgnoringCase(const UChar*, const LChar*, unsigned); 722 722 inline bool equalIgnoringCase(const UChar* a, const char* b, unsigned length) { return equalIgnoringCase(a, reinterpret_cast<const LChar*>(b), length); } 723 723 inline bool equalIgnoringCase(const LChar* a, const UChar* b, unsigned length) { return equalIgnoringCase(b, a, length); } 724 724 inline bool equalIgnoringCase(const char* a, const UChar* b, unsigned length) { return equalIgnoringCase(b, reinterpret_cast<const LChar*>(a), length); } 725 725 726 bool equalIgnoringNullity(StringImpl*, StringImpl*);726 WTF_EXPORT_PRIVATE bool equalIgnoringNullity(StringImpl*, StringImpl*); 727 727 728 728 template<size_t inlineCapacity> … … 736 736 } 737 737 738 int codePointCompare(const StringImpl*, const StringImpl*);738 WTF_EXPORT_PRIVATE int codePointCompare(const StringImpl*, const StringImpl*); 739 739 740 740 static inline bool isSpaceOrNewline(UChar c) -
trunk/Source/JavaScriptCore/wtf/text/WTFString.h
r104270 r104900 75 75 76 76 int charactersToInt(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage 77 int charactersToInt(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage77 WTF_EXPORT_PRIVATE int charactersToInt(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage 78 78 unsigned charactersToUInt(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage 79 79 unsigned charactersToUInt(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage … … 88 88 WTF_EXPORT_PRIVATE double charactersToDouble(const UChar*, size_t, bool* ok = 0, bool* didReadNumber = 0); 89 89 float charactersToFloat(const LChar*, size_t, bool* ok = 0, bool* didReadNumber = 0); 90 float charactersToFloat(const UChar*, size_t, bool* ok = 0, bool* didReadNumber = 0);90 WTF_EXPORT_PRIVATE float charactersToFloat(const UChar*, size_t, bool* ok = 0, bool* didReadNumber = 0); 91 91 92 92 enum FloatConversionFlags { -
trunk/Source/JavaScriptCore/wtf/unicode/Collator.h
r76248 r104900 46 46 enum Result { Equal = 0, Greater = 1, Less = -1 }; 47 47 48 Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") are accepted, too.49 ~Collator();50 void setOrderLowerFirst(bool);48 WTF_EXPORT_PRIVATE Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") are accepted, too. 49 WTF_EXPORT_PRIVATE ~Collator(); 50 WTF_EXPORT_PRIVATE void setOrderLowerFirst(bool); 51 51 52 52 static PassOwnPtr<Collator> userDefault(); 53 53 54 Result collate(const ::UChar*, size_t, const ::UChar*, size_t) const;54 WTF_EXPORT_PRIVATE Result collate(const ::UChar*, size_t, const ::UChar*, size_t) const; 55 55 56 56 private: -
trunk/Source/JavaScriptCore/wtf/unicode/UTF8.h
r100405 r104900 63 63 // they constitute an error. 64 64 65 ConversionResult convertUTF8ToUTF16(65 WTF_EXPORT_PRIVATE ConversionResult convertUTF8ToUTF16( 66 66 const char** sourceStart, const char* sourceEnd, 67 67 UChar** targetStart, UChar* targetEnd, bool strict = true); … … 71 71 char** targetStart, char* targetEnd); 72 72 73 ConversionResult convertUTF16ToUTF8(73 WTF_EXPORT_PRIVATE ConversionResult convertUTF16ToUTF8( 74 74 const UChar** sourceStart, const UChar* sourceEnd, 75 75 char** targetStart, char* targetEnd, bool strict = true); -
trunk/Source/JavaScriptCore/yarr/Yarr.h
r95901 r104900 63 63 }; 64 64 65 PassOwnPtr<BytecodePattern> byteCompile(YarrPattern&, BumpPointerAllocator*);66 int interpret(BytecodePattern*, const UString& input, unsigned start, unsigned length, int* output);65 JS_EXPORT_PRIVATE PassOwnPtr<BytecodePattern> byteCompile(YarrPattern&, BumpPointerAllocator*); 66 JS_EXPORT_PRIVATE int interpret(BytecodePattern*, const UString& input, unsigned start, unsigned length, int* output); 67 67 68 68 } } // namespace JSC::Yarr -
trunk/Source/JavaScriptCore/yarr/YarrPattern.h
r98316 r104900 317 317 318 318 struct YarrPattern { 319 YarrPattern(const UString& pattern, bool ignoreCase, bool multiline, const char** error);319 JS_EXPORT_PRIVATE YarrPattern(const UString& pattern, bool ignoreCase, bool multiline, const char** error); 320 320 321 321 ~YarrPattern()
Note: See TracChangeset
for help on using the changeset viewer.