summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarshitha KP <harshi46@in.ibm.com>2019-07-22 06:04:42 -0400
committerRich Trott <rtrott@gmail.com>2019-07-24 11:33:31 -0700
commit10dd1012d9524554fed627f0649044ba5ec7eb80 (patch)
treea47c335d2c9d5e620a3fa726593005e007385b61 /src
parent30666edd05dd7603e4e97184370cdc6cad7ce71d (diff)
downloadandroid-node-v8-10dd1012d9524554fed627f0649044ba5ec7eb80.tar.gz
android-node-v8-10dd1012d9524554fed627f0649044ba5ec7eb80.tar.bz2
android-node-v8-10dd1012d9524554fed627f0649044ba5ec7eb80.zip
src : elevate v8 namespaces
Leverage `using` semantics for repeated usage of v8 artifacts. PR-URL: https://github.com/nodejs/node/pull/28801 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_win32_etw_provider.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/node_win32_etw_provider.cc b/src/node_win32_etw_provider.cc
index fe9c510221..7b0c696a9c 100644
--- a/src/node_win32_etw_provider.cc
+++ b/src/node_win32_etw_provider.cc
@@ -26,6 +26,7 @@
namespace node {
+using v8::Isolate;
using v8::JitCodeEvent;
using v8::V8;
@@ -127,11 +128,11 @@ void CodeAddressNotification(const JitCodeEvent* jevent) {
void etw_events_change_async(uv_async_t* handle) {
if (events_enabled > 0) {
NODE_V8SYMBOL_RESET();
- v8::Isolate::GetCurrent()->SetJitCodeEventHandler(
+ Isolate::GetCurrent()->SetJitCodeEventHandler(
v8::kJitCodeEventEnumExisting,
CodeAddressNotification);
} else {
- v8::Isolate::GetCurrent()->SetJitCodeEventHandler(
+ Isolate::GetCurrent()->SetJitCodeEventHandler(
v8::kJitCodeEventDefault,
nullptr);
}
@@ -199,7 +200,7 @@ void shutdown_etw() {
}
events_enabled = 0;
- v8::Isolate::GetCurrent()->SetJitCodeEventHandler(
+ Isolate::GetCurrent()->SetJitCodeEventHandler(
v8::kJitCodeEventDefault,
nullptr);