| 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 d3f7a68f43a3355cd3cb9c133dfe19fb4f06315f..0f35290d19cc9ac25132ded4b629aba724080075 100644
|
| --- a/src/third_party/vtune/vtune-jit.cc
|
| +++ b/src/third_party/vtune/vtune-jit.cc
|
| @@ -192,8 +192,7 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) {
|
| if (*script != NULL) {
|
| // Get the source file name and set it to jmethod.source_file_name
|
| if ((*script->GetScriptName())->IsString()) {
|
| - Handle<String> script_name =
|
| - Handle<String>(String::Cast(*script->GetScriptName()));
|
| + Handle<String> script_name = script->GetScriptName()->ToString();
|
| temp_file_name = new char[script_name->Utf8Length() + 1];
|
| script_name->WriteUtf8(temp_file_name);
|
| jmethod.source_file_name = temp_file_name;
|
|
|