Changeset 246881 in webkit
- Timestamp:
- Jun 27, 2019 8:38:57 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r246876 r246881 1 2019-06-27 Konstantin Tokarev <annulen@yandex.ru> 2 3 Use JSC_GLIB_API_ENABLED instead of USE(GLIB) as a compile-time check for GLib JSC API 4 https://bugs.webkit.org/show_bug.cgi?id=199270 5 6 Reviewed by Michael Catanzaro. 7 8 This change allows building code with enabled USE(GLIB) but without 9 GLib JSC API. 10 11 * heap/Heap.cpp: 12 (JSC::Heap::releaseDelayedReleasedObjects): 13 * heap/Heap.h: 14 * heap/HeapInlines.h: 15 1 16 2019-06-27 Devin Rousso <drousso@apple.com> 2 17 -
trunk/Source/JavaScriptCore/heap/Heap.cpp
r246565 r246881 97 97 #endif 98 98 99 #if USE(GLIB)99 #ifdef JSC_GLIB_API_ENABLED 100 100 #include "JSCGLibWrapperObject.h" 101 101 #endif … … 478 478 void Heap::releaseDelayedReleasedObjects() 479 479 { 480 #if USE(FOUNDATION) || USE(GLIB)480 #if USE(FOUNDATION) || defined(JSC_GLIB_API_ENABLED) 481 481 // We need to guard against the case that releasing an object can create more objects due to the 482 482 // release calling into JS. When those JS call(s) exit and all locks are being dropped we end up -
trunk/Source/JavaScriptCore/heap/Heap.h
r245808 r246881 87 87 struct CurrentThreadState; 88 88 89 #if USE(GLIB)89 #ifdef JSC_GLIB_API_ENABLED 90 90 class JSCGLibWrapperObject; 91 91 #endif … … 280 280 template<typename T> void releaseSoon(RetainPtr<T>&&); 281 281 #endif 282 #if USE(GLIB)282 #ifdef JSC_GLIB_API_ENABLED 283 283 void releaseSoon(std::unique_ptr<JSCGLibWrapperObject>&&); 284 284 #endif … … 665 665 unsigned m_delayedReleaseRecursionCount { 0 }; 666 666 #endif 667 #if USE(GLIB)667 #ifdef JSC_GLIB_API_ENABLED 668 668 Vector<std::unique_ptr<JSCGLibWrapperObject>> m_delayedReleaseObjects; 669 669 unsigned m_delayedReleaseRecursionCount { 0 }; -
trunk/Source/JavaScriptCore/heap/HeapInlines.h
r245808 r246881 165 165 #endif 166 166 167 #if USE(GLIB)167 #ifdef JSC_GLIB_API_ENABLED 168 168 inline void Heap::releaseSoon(std::unique_ptr<JSCGLibWrapperObject>&& object) 169 169 {
Note: See TracChangeset
for help on using the changeset viewer.