summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp
index 045a33a79a..d7fca33387 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/TimeoutChecker.cpp
@@ -120,6 +120,13 @@ void TimeoutChecker::reset()
m_timeExecuting = 0;
}
+void TimeoutChecker::copyTimeoutValues(TimeoutChecker* other)
+{
+ m_timeoutInterval = other->m_timeoutInterval;
+ m_startCount = other->m_startCount;
+ m_intervalBetweenChecks = other->m_intervalBetweenChecks;
+}
+
bool TimeoutChecker::didTimeOut(ExecState* exec)
{
unsigned currentTime = getCPUTime();