Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (154031 => 154032)
--- trunk/Source/_javascript_Core/ChangeLog 2013-08-14 00:12:59 UTC (rev 154031)
+++ trunk/Source/_javascript_Core/ChangeLog 2013-08-14 00:51:25 UTC (rev 154032)
@@ -1,3 +1,21 @@
+2013-08-13 Arunprasad Rajkumar <[email protected]>
+
+ [WTF] [JSC] Replace currentTime() with monotonicallyIncreasingTime() in all possible places
+ https://bugs.webkit.org/show_bug.cgi?id=119762
+
+ Reviewed by Geoffrey Garen.
+
+ * heap/Heap.cpp:
+ (JSC::Heap::Heap):
+ (JSC::Heap::markRoots):
+ (JSC::Heap::collect):
+ * jsc.cpp:
+ (StopWatch::start):
+ (StopWatch::stop):
+ * testRegExp.cpp:
+ (StopWatch::start):
+ (StopWatch::stop):
+
2013-08-13 Julien Brianceau <[email protected]>
[sh4] Prepare LLINT for DFG_JIT implementation.
Modified: trunk/Source/_javascript_Core/heap/Heap.cpp (154031 => 154032)
--- trunk/Source/_javascript_Core/heap/Heap.cpp 2013-08-14 00:12:59 UTC (rev 154031)
+++ trunk/Source/_javascript_Core/heap/Heap.cpp 2013-08-14 00:51:25 UTC (rev 154032)
@@ -90,12 +90,12 @@
struct GCTimerScope {
GCTimerScope(GCTimer* timer)
: m_timer(timer)
- , m_start(WTF::currentTime())
+ , m_start(WTF::monotonicallyIncreasingTime())
{
}
~GCTimerScope()
{
- double delta = WTF::currentTime() - m_start;
+ double delta = WTF::monotonicallyIncreasingTime() - m_start;
if (delta < m_timer->m_min)
m_timer->m_min = delta;
if (delta > m_timer->m_max)
@@ -263,7 +263,7 @@
, m_isSafeToCollect(false)
, m_vm(vm)
, m_lastGCLength(0)
- , m_lastCodeDiscardTime(WTF::currentTime())
+ , m_lastCodeDiscardTime(WTF::monotonicallyIncreasingTime())
, m_activityCallback(DefaultGCActivityCallback::create(this))
, m_sweeper(IncrementalSweeper::create(this))
, m_deferralDepth(0)
@@ -433,7 +433,7 @@
ASSERT(isValidThreadState(m_vm));
#if ENABLE(OBJECT_MARK_LOGGING)
- double gcStartTime = WTF::currentTime();
+ double gcStartTime = WTF::monotonicallyIncreasingTime();
#endif
void* dummy;
@@ -590,7 +590,7 @@
#if ENABLE(PARALLEL_GC)
visitCount += m_sharedData.childVisitCount();
#endif
- MARK_LOG_MESSAGE2("\nNumber of live Objects after full GC %lu, took %.6f secs\n", visitCount, WTF::currentTime() - gcStartTime);
+ MARK_LOG_MESSAGE2("\nNumber of live Objects after full GC %lu, took %.6f secs\n", visitCount, WTF::monotonicallyIncreasingTime() - gcStartTime);
#endif
visitor.reset();
@@ -726,10 +726,10 @@
m_activityCallback->willCollect();
- double lastGCStartTime = WTF::currentTime();
+ double lastGCStartTime = WTF::monotonicallyIncreasingTime();
if (lastGCStartTime - m_lastCodeDiscardTime > minute) {
deleteAllCompiledCode();
- m_lastCodeDiscardTime = WTF::currentTime();
+ m_lastCodeDiscardTime = WTF::monotonicallyIncreasingTime();
}
{
@@ -797,7 +797,7 @@
m_bytesAllocatedLimit = maxHeapSize - currentHeapSize;
m_bytesAllocated = 0;
- double lastGCEndTime = WTF::currentTime();
+ double lastGCEndTime = WTF::monotonicallyIncreasingTime();
m_lastGCLength = lastGCEndTime - lastGCStartTime;
if (Options::recordGCPauseTimes())
Modified: trunk/Source/_javascript_Core/jsc.cpp (154031 => 154032)
--- trunk/Source/_javascript_Core/jsc.cpp 2013-08-14 00:12:59 UTC (rev 154031)
+++ trunk/Source/_javascript_Core/jsc.cpp 2013-08-14 00:51:25 UTC (rev 154032)
@@ -171,12 +171,12 @@
void StopWatch::start()
{
- m_startTime = currentTime();
+ m_startTime = monotonicallyIncreasingTime();
}
void StopWatch::stop()
{
- m_stopTime = currentTime();
+ m_stopTime = monotonicallyIncreasingTime();
}
long StopWatch::getElapsedMS()
Modified: trunk/Source/_javascript_Core/testRegExp.cpp (154031 => 154032)
--- trunk/Source/_javascript_Core/testRegExp.cpp 2013-08-14 00:12:59 UTC (rev 154031)
+++ trunk/Source/_javascript_Core/testRegExp.cpp 2013-08-14 00:51:25 UTC (rev 154032)
@@ -82,12 +82,12 @@
void StopWatch::start()
{
- m_startTime = currentTime();
+ m_startTime = monotonicallyIncreasingTime();
}
void StopWatch::stop()
{
- m_stopTime = currentTime();
+ m_stopTime = monotonicallyIncreasingTime();
}
long StopWatch::getElapsedMS()
Modified: trunk/Source/WTF/ChangeLog (154031 => 154032)
--- trunk/Source/WTF/ChangeLog 2013-08-14 00:12:59 UTC (rev 154031)
+++ trunk/Source/WTF/ChangeLog 2013-08-14 00:51:25 UTC (rev 154032)
@@ -1,3 +1,13 @@
+2013-08-13 Arunprasad Rajkumar <[email protected]>
+
+ [WTF] [JSC] Replace currentTime() with monotonicallyIncreasingTime() in all possible places
+ https://bugs.webkit.org/show_bug.cgi?id=119762
+
+ Reviewed by Geoffrey Garen.
+
+ * wtf/MainThread.cpp:
+ (WTF::dispatchFunctionsFromMainThread):
+
2013-08-12 Ragner Magalhaes <[email protected]>
Broken build with build-webkit --no-webgl
Modified: trunk/Source/WTF/wtf/MainThread.cpp (154031 => 154032)
--- trunk/Source/WTF/wtf/MainThread.cpp 2013-08-14 00:12:59 UTC (rev 154031)
+++ trunk/Source/WTF/wtf/MainThread.cpp 2013-08-14 00:51:25 UTC (rev 154032)
@@ -141,7 +141,7 @@
if (callbacksPaused)
return;
- double startTime = currentTime();
+ double startTime = monotonicallyIncreasingTime();
FunctionWithContext invocation;
while (true) {
@@ -162,7 +162,7 @@
// yield so the user input can be processed. Otherwise user may not be able to even close the window.
// This code has effect only in case the scheduleDispatchFunctionsOnMainThread() is implemented in a way that
// allows input events to be processed before we are back here.
- if (currentTime() - startTime > maxRunLoopSuspensionTime) {
+ if (monotonicallyIncreasingTime() - startTime > maxRunLoopSuspensionTime) {
scheduleDispatchFunctionsOnMainThread();
break;
}