Index: src/third_party/vtune/vtune-jit.cc |
diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc |
index d62dcfbb7191147b16a42df7f59ba0fd9e5cde5b..e489d6e21537945504276dd9cb533c588f0db541 100644 |
--- a/src/third_party/vtune/vtune-jit.cc |
+++ b/src/third_party/vtune/vtune-jit.cc |
@@ -271,13 +271,10 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) { |
} // namespace internal |
-void InitializeVtuneForV8() { |
- if (v8::V8::Initialize()) { |
- v8::V8::SetFlagsFromString("--nocompact_code_space", |
- (int)strlen("--nocompact_code_space")); |
- v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, |
- vTune::internal::VTUNEJITInterface::event_handler); |
- } |
+void InitializeVtuneForV8(v8::Isolate::CreateParams& params) { |
+ v8::V8::SetFlagsFromString("--nocompact_code_space", |
+ (int)strlen("--nocompact_code_space")); |
+ params.code_event_handler = vTune::internal::VTUNEJITInterface::event_handler; |
} |
} // namespace vTune |