Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdo Ben-Yair <idoby@wix.com>2015-10-07 18:59:15 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2015-10-21 01:34:53 +0300
commitb244f139bf4bf241178de5d9e0ce9afb7148e861 (patch)
tree15a16c536a3e68fc8a84f9c2cb1906440540e3b1 /src/node_watchdog.cc
parent9adc6a6bd0e575f8d2df33478d501d4032860b38 (diff)
vm: remove Watchdog dependency on Environment
Remove the Watchdog class' dependency on Environment. No functional changes, only code cleanup. PR-URL: https://github.com/nodejs/node/pull/3274 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_watchdog.cc')
-rw-r--r--src/node_watchdog.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc
index 2811ab06ed3..77f93678fb8 100644
--- a/src/node_watchdog.cc
+++ b/src/node_watchdog.cc
@@ -1,15 +1,14 @@
#include "node_watchdog.h"
-#include "env.h"
-#include "env-inl.h"
#include "util.h"
+#include "util-inl.h"
namespace node {
using v8::V8;
-Watchdog::Watchdog(Environment* env, uint64_t ms) : env_(env),
- destroyed_(false) {
+Watchdog::Watchdog(v8::Isolate* isolate, uint64_t ms) : isolate_(isolate),
+ destroyed_(false) {
int rc;
loop_ = new uv_loop_t;
CHECK(loop_);
@@ -84,7 +83,7 @@ void Watchdog::Async(uv_async_t* async) {
void Watchdog::Timer(uv_timer_t* timer) {
Watchdog* w = ContainerOf(&Watchdog::timer_, timer);
uv_stop(w->loop_);
- V8::TerminateExecution(w->env()->isolate());
+ V8::TerminateExecution(w->isolate());
}