diff --git a/src/third_party/vtune/v8vtune.gyp b/src/third_party/vtune/v8vtune.gyp index 6adf365689..92df29a82b 100644 --- a/src/third_party/vtune/v8vtune.gyp +++ b/src/third_party/vtune/v8vtune.gyp @@ -37,6 +37,10 @@ 'dependencies': [ '../../../tools/gyp/v8.gyp:v8', ], + 'defines': [ + # TODO(jochen): Remove again after this is globally turned on. + 'V8_IMMINENT_DEPRECATION_WARNINGS', + ], 'sources': [ 'ittnotify_config.h', 'ittnotify_types.h', diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc index b621cbcb8f..30f6196001 100644 --- a/src/third_party/vtune/vtune-jit.cc +++ b/src/third_party/vtune/vtune-jit.cc @@ -192,12 +192,13 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) { jmethod.method_size = static_cast(event->code_len); jmethod.method_name = temp_method_name; - Handle script = event->script; + Local script = event->script; if (*script != NULL) { // Get the source file name and set it to jmethod.source_file_name if ((*script->GetScriptName())->IsString()) { - Handle script_name = script->GetScriptName()->ToString(); + Local script_name = + Local::Cast(script->GetScriptName()); temp_file_name = new char[script_name->Utf8Length() + 1]; script_name->WriteUtf8(temp_file_name); jmethod.source_file_name = temp_file_name;