diff options
Diffstat (limited to 'src/node_dtrace.cc')
-rw-r--r-- | src/node_dtrace.cc | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/node_dtrace.cc b/src/node_dtrace.cc index 534b3b9670..99bc3002d7 100644 --- a/src/node_dtrace.cc +++ b/src/node_dtrace.cc @@ -129,10 +129,10 @@ using namespace v8; Handle<Value> DTRACE_NET_SERVER_CONNECTION(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_NET_SERVER_CONNECTION_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); SLURP_CONNECTION(args[0], conn); #ifdef HAVE_SYSTEMTAP @@ -142,16 +142,16 @@ Handle<Value> DTRACE_NET_SERVER_CONNECTION(const Arguments& args) { NODE_NET_SERVER_CONNECTION(&conn); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_NET_STREAM_END(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_NET_STREAM_END_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); SLURP_CONNECTION(args[0], conn); #ifdef HAVE_SYSTEMTAP @@ -160,16 +160,16 @@ Handle<Value> DTRACE_NET_STREAM_END(const Arguments& args) { NODE_NET_STREAM_END(&conn); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_NET_SOCKET_READ(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_NET_SOCKET_READ_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); SLURP_CONNECTION(args[0], conn); @@ -184,16 +184,16 @@ Handle<Value> DTRACE_NET_SOCKET_READ(const Arguments& args) { NODE_NET_SOCKET_READ(&conn, nbytes); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_NET_SOCKET_WRITE(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_NET_SOCKET_WRITE_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); SLURP_CONNECTION(args[0], conn); @@ -208,7 +208,7 @@ Handle<Value> DTRACE_NET_SOCKET_WRITE(const Arguments& args) { NODE_NET_SOCKET_WRITE(&conn, nbytes); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_HTTP_SERVER_REQUEST(const Arguments& args) { @@ -216,10 +216,10 @@ Handle<Value> DTRACE_HTTP_SERVER_REQUEST(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_HTTP_SERVER_REQUEST_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); Local<Object> arg0 = Local<Object>::Cast(args[0]); Local<Object> headers; @@ -249,16 +249,16 @@ Handle<Value> DTRACE_HTTP_SERVER_REQUEST(const Arguments& args) { #else NODE_HTTP_SERVER_REQUEST(&req, &conn); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_HTTP_SERVER_RESPONSE(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_HTTP_SERVER_RESPONSE_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); SLURP_CONNECTION(args[0], conn); #ifdef HAVE_SYSTEMTAP @@ -267,7 +267,7 @@ Handle<Value> DTRACE_HTTP_SERVER_RESPONSE(const Arguments& args) { NODE_HTTP_SERVER_RESPONSE(&conn); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_HTTP_CLIENT_REQUEST(const Arguments& args) { @@ -276,10 +276,10 @@ Handle<Value> DTRACE_HTTP_CLIENT_REQUEST(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_HTTP_CLIENT_REQUEST_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); /* * For the method and URL, we're going to dig them out of the header. This @@ -312,15 +312,15 @@ Handle<Value> DTRACE_HTTP_CLIENT_REQUEST(const Arguments& args) { #else NODE_HTTP_CLIENT_REQUEST(&req, &conn); #endif - return Undefined(); + return Undefined(node_isolate); } Handle<Value> DTRACE_HTTP_CLIENT_RESPONSE(const Arguments& args) { #ifndef HAVE_SYSTEMTAP if (!NODE_HTTP_CLIENT_RESPONSE_ENABLED()) - return Undefined(); + return Undefined(node_isolate); #endif - HandleScope scope; + HandleScope scope(node_isolate); SLURP_CONNECTION_HTTP_CLIENT_RESPONSE(args[0], args[1], conn); #ifdef HAVE_SYSTEMTAP @@ -329,7 +329,7 @@ Handle<Value> DTRACE_HTTP_CLIENT_RESPONSE(const Arguments& args) { NODE_HTTP_CLIENT_RESPONSE(&conn); #endif - return Undefined(); + return Undefined(node_isolate); } #define NODE_PROBE(name) #name, name, Persistent<FunctionTemplate>() |