Commit fa4fd5bb authored by mark.lam@apple.com's avatar mark.lam@apple.com

Fix broken build. Replaced a static const with a #define.

https://bugs.webkit.org/show_bug.cgi?id=114577.

Unreviewed.

* runtime/Watchdog.cpp:
(JSC::Watchdog::Watchdog):
(JSC::Watchdog::isEnabled):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ce51e71a
2013-04-17 Mark Lam <mark.lam@apple.com>
Fix broken build. Replaced a static const with a #define.
https://bugs.webkit.org/show_bug.cgi?id=114577.
Unreviewed.
* runtime/Watchdog.cpp:
(JSC::Watchdog::Watchdog):
(JSC::Watchdog::isEnabled):
2013-04-17 Mark Lam <mark.lam@apple.com>
Add LLINT and baseline JIT support for timing out scripts.
......@@ -32,12 +32,12 @@
namespace JSC {
static const double noLimit = std::numeric_limits<double>::infinity();
#define NO_LIMIT std::numeric_limits<double>::infinity()
Watchdog::Watchdog()
: m_timerDidFire(false)
, m_didFire(false)
, m_limit(noLimit)
, m_limit(NO_LIMIT)
, m_startTime(0)
, m_elapsedTime(0)
, m_reentryCount(0)
......@@ -135,7 +135,7 @@ bool Watchdog::didFire(ExecState* exec)
bool Watchdog::isEnabled()
{
return (m_limit != noLimit);
return (m_limit != NO_LIMIT);
}
void Watchdog::fire()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment