Changeset 161650 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Jan 10, 2014, 10:38:41 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r161615 r161650 1 2014-01-10 Geoffrey Garen <[email protected]> 2 3 Removed Blackberry #ifdefs and platform code from JavaScriptCore 4 https://bugs.webkit.org/show_bug.cgi?id=126757 5 6 Reviewed by Sam Weinig. 7 8 * PlatformBlackBerry.cmake: Removed. 9 * heap/HeapTimer.cpp: 10 * heap/HeapTimer.h: 11 * heap/IncrementalSweeper.cpp: 12 * heap/IncrementalSweeper.h: 13 * jsc.cpp: 14 (main): 15 * runtime/GCActivityCallbackBlackBerry.cpp: Removed. 16 * runtime/MemoryStatistics.cpp: 17 (JSC::globalMemoryStatistics): 18 1 19 2014-01-07 Mark Hahnenberg <[email protected]> 2 20 -
trunk/Source/JavaScriptCore/heap/HeapTimer.cpp
r157537 r161650 101 101 } 102 102 103 #elif PLATFORM(BLACKBERRY)104 105 HeapTimer::HeapTimer(VM* vm)106 : m_vm(vm)107 , m_timer(this, &HeapTimer::timerDidFire)108 {109 // FIXME: Implement HeapTimer for other threads.110 if (WTF::isMainThread() && !m_timer.tryCreateClient())111 CRASH();112 }113 114 HeapTimer::~HeapTimer()115 {116 }117 118 void HeapTimer::timerDidFire()119 {120 doWork();121 }122 123 void HeapTimer::invalidate()124 {125 }126 127 103 #elif PLATFORM(EFL) 128 104 -
trunk/Source/JavaScriptCore/heap/HeapTimer.h
r157920 r161650 32 32 #if USE(CF) 33 33 #include <CoreFoundation/CoreFoundation.h> 34 #elif PLATFORM(BLACKBERRY)35 #include <BlackBerryPlatformTimer.h>36 34 #elif PLATFORM(EFL) 37 35 #if USE(EO) … … 69 67 70 68 Mutex m_shutdownMutex; 71 #elif PLATFORM(BLACKBERRY)72 void timerDidFire();73 74 BlackBerry::Platform::Timer<HeapTimer> m_timer;75 69 #elif PLATFORM(EFL) 76 70 static bool timerEvent(void*); -
trunk/Source/JavaScriptCore/heap/IncrementalSweeper.cpp
r159508 r161650 39 39 namespace JSC { 40 40 41 #if USE(CF) || PLATFORM(BLACKBERRY)41 #if USE(CF) 42 42 43 43 static const double sweepTimeSlice = .01; // seconds … … 45 45 static const double sweepTimeMultiplier = 1.0 / sweepTimeTotal; 46 46 47 #if USE(CF)48 49 47 IncrementalSweeper::IncrementalSweeper(Heap* heap, CFRunLoopRef runLoop) 50 48 : HeapTimer(heap->vm(), runLoop) … … 68 66 CFRunLoopTimerSetNextFireDate(m_timer.get(), CFAbsoluteTimeGetCurrent() + s_decade); 69 67 } 70 71 #elif PLATFORM(BLACKBERRY)72 73 IncrementalSweeper::IncrementalSweeper(Heap* heap)74 : HeapTimer(heap->vm())75 , m_currentBlockToSweepIndex(0)76 , m_blocksToSweep(heap->m_blockSnapshot)77 {78 }79 80 PassOwnPtr<IncrementalSweeper> IncrementalSweeper::create(Heap* heap)81 {82 return adoptPtr(new IncrementalSweeper(heap));83 }84 85 void IncrementalSweeper::scheduleTimer()86 {87 m_timer.start(sweepTimeSlice * sweepTimeMultiplier);88 }89 90 void IncrementalSweeper::cancelTimer()91 {92 m_timer.stop();93 }94 95 #endif96 68 97 69 void IncrementalSweeper::doWork() -
trunk/Source/JavaScriptCore/heap/IncrementalSweeper.h
r157654 r161650 47 47 #if USE(CF) 48 48 JS_EXPORT_PRIVATE IncrementalSweeper(Heap*, CFRunLoopRef); 49 #elif PLATFORM(BLACKBERRY)50 IncrementalSweeper(Heap*);51 49 #else 52 50 IncrementalSweeper(VM*); 53 51 #endif 54 52 55 #if USE(CF) || PLATFORM(BLACKBERRY)53 #if USE(CF) 56 54 private: 57 55 void doSweep(double startTime); -
trunk/Source/JavaScriptCore/jsc.cpp
r161159 r161650 86 86 #endif 87 87 88 #if PLATFORM(BLACKBERRY)89 #include <BlackBerryPlatformLog.h>90 #endif91 92 88 #if PLATFORM(EFL) 93 89 #include <Ecore.h> … … 589 585 590 586 timeBeginPeriod(1); 591 #endif592 593 #if PLATFORM(BLACKBERRY)594 // Write all WTF logs to the system log595 BlackBerry::Platform::setupApplicationLogging("jsc");596 587 #endif 597 588 -
trunk/Source/JavaScriptCore/runtime/MemoryStatistics.cpp
r148696 r161650 38 38 39 39 stats.stackBytes = JSStack::committedByteCount(); 40 #if ENABLE(EXECUTABLE_ALLOCATOR_FIXED) || ( (PLATFORM(BLACKBERRY) || PLATFORM(EFL)) && ENABLE(JIT))40 #if ENABLE(EXECUTABLE_ALLOCATOR_FIXED) || (PLATFORM(EFL) && ENABLE(JIT)) 41 41 stats.JITBytes = ExecutableAllocator::committedByteCount(); 42 42 #else
Note:
See TracChangeset
for help on using the changeset viewer.