| 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 ea897e58e4d1c2a1815b03f6002bb74e93c2be65..023dd1864be03bdef449e14d89e086da00dd76a2 100644
|
| --- a/src/third_party/vtune/vtune-jit.cc
|
| +++ b/src/third_party/vtune/vtune-jit.cc
|
| @@ -196,8 +196,9 @@ 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 = script->GetScriptName()->ToString();
|
| + if ((*script->GetUnboundScript()->GetScriptName())->IsString()) {
|
| + Handle<String> script_name =
|
| + script->GetUnboundScript()->GetScriptName()->ToString();
|
| temp_file_name = new char[script_name->Utf8Length() + 1];
|
| script_name->WriteUtf8(temp_file_name);
|
| jmethod.source_file_name = temp_file_name;
|
| @@ -224,7 +225,7 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) {
|
| jmethod.line_number_table[index].Offset =
|
| static_cast<unsigned int>(Iter->pc_);
|
| jmethod.line_number_table[index++].LineNumber =
|
| - script->GetLineNumber(Iter->pos_)+1;
|
| + script->GetUnboundScript()->GetLineNumber(Iter->pos_)+1;
|
| }
|
| GetEntries()->erase(event->code_start);
|
| }
|
|
|