Ignore:
Timestamp:
Jul 13, 2012, 1:12:36 PM (13 years ago)
Author:
[email protected]
Message:

[BlackBerry] Implement GCActivityCallback with platform timer
https://bugs.webkit.org/show_bug.cgi?id=90175

Patch by Yong Li <[email protected]> on 2012-07-13
Reviewed by Rob Buis.

Implement GCActivityCallback and HeapTimer for BlackBerry port.

  • heap/HeapTimer.cpp:

(JSC):
(JSC::HeapTimer::HeapTimer):
(JSC::HeapTimer::~HeapTimer):
(JSC::HeapTimer::timerDidFire):
(JSC::HeapTimer::synchronize):
(JSC::HeapTimer::invalidate):
(JSC::HeapTimer::didStartVMShutdown):

  • heap/HeapTimer.h:

(HeapTimer):

  • runtime/GCActivityCallbackBlackBerry.cpp:

(JSC):
(JSC::DefaultGCActivityCallback::doWork):
(JSC::DefaultGCActivityCallback::didAllocate):
(JSC::DefaultGCActivityCallback::willCollect):
(JSC::DefaultGCActivityCallback::cancel):

File:
1 edited

Legend:

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

    r121381 r122624  
    3232#if USE(CF)
    3333#include <CoreFoundation/CoreFoundation.h>
     34#elif PLATFORM(BLACKBERRY)
     35#include <BlackBerryPlatformTimer.h>
    3436#endif
    3537
     
    6466
    6567    Mutex m_shutdownMutex;
     68#elif PLATFORM(BLACKBERRY)
     69    void timerDidFire();
     70
     71    BlackBerry::Platform::Timer<HeapTimer> m_timer;
    6672#endif
    6773   
Note: See TracChangeset for help on using the changeset viewer.