summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2014-10-18 23:25:10 +1100
committerBen Noordhuis <info@bnoordhuis.nl>2014-10-18 04:00:18 +0200
commitb2b59febe8bf1d411e7d8faacd23789784aac1f0 (patch)
tree3baf7c5ea5c490dde9d6e13f5e00088cbf390524 /src
parent05daf5f7b77e01abf83f25bce859aaa1b1313567 (diff)
downloadandroid-node-v8-b2b59febe8bf1d411e7d8faacd23789784aac1f0.tar.gz
android-node-v8-b2b59febe8bf1d411e7d8faacd23789784aac1f0.tar.bz2
android-node-v8-b2b59febe8bf1d411e7d8faacd23789784aac1f0.zip
etw: use Isolate to SetJitCodeEventHandler
PR-URL: https://github.com/node-forward/node/pull/27 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_win32_etw_provider.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/node_win32_etw_provider.cc b/src/node_win32_etw_provider.cc
index 849ea764e4..c228dd884c 100644
--- a/src/node_win32_etw_provider.cc
+++ b/src/node_win32_etw_provider.cc
@@ -127,10 +127,13 @@ void CodeAddressNotification(const JitCodeEvent* jevent) {
void etw_events_change_async(uv_async_t* handle) {
if (events_enabled > 0) {
NODE_V8SYMBOL_RESET();
- V8::SetJitCodeEventHandler(v8::kJitCodeEventEnumExisting,
- CodeAddressNotification);
+ v8::Isolate::GetCurrent()->SetJitCodeEventHandler(
+ v8::kJitCodeEventEnumExisting,
+ CodeAddressNotification);
} else {
- V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, NULL);
+ v8::Isolate::GetCurrent()->SetJitCodeEventHandler(
+ v8::kJitCodeEventDefault,
+ NULL);
}
}
@@ -196,7 +199,9 @@ void shutdown_etw() {
}
events_enabled = 0;
- V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, NULL);
+ v8::Isolate::GetCurrent()->SetJitCodeEventHandler(
+ v8::kJitCodeEventDefault,
+ NULL);
if (advapi) {
FreeLibrary(advapi);