diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-03-19 14:55:05 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-20 01:11:02 +0100 |
commit | f65e14ed1daa20a6d2aae08556b2a059f5d90599 (patch) | |
tree | 58d433ccbb58dbbb09b9700176e422c88685f287 /src/node_dtrace.cc | |
parent | da4d79ac47c1ad5923b26fd78c385deeb82d9370 (diff) | |
download | node-new-f65e14ed1daa20a6d2aae08556b2a059f5d90599.tar.gz |
src: pass Isolate to all applicable api
Update the api to pass node_isolate to all supported methods.
Much thanks to Ben Noordhuis and his work in 51f6e6a.
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>() |