Unbreak vtunejit=on.
BUG=v8:3288 LOG=y R=yangguo@chromium.org Review URL: https://codereview.chromium.org/254793002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20955 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
0fc9354a1f
commit
7f217b9d49
7
src/third_party/vtune/vtune-jit.cc
vendored
7
src/third_party/vtune/vtune-jit.cc
vendored
@ -196,8 +196,9 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) {
|
|||||||
|
|
||||||
if (*script != NULL) {
|
if (*script != NULL) {
|
||||||
// Get the source file name and set it to jmethod.source_file_name
|
// Get the source file name and set it to jmethod.source_file_name
|
||||||
if ((*script->GetScriptName())->IsString()) {
|
if ((*script->GetUnboundScript()->GetScriptName())->IsString()) {
|
||||||
Handle<String> script_name = script->GetScriptName()->ToString();
|
Handle<String> script_name =
|
||||||
|
script->GetUnboundScript()->GetScriptName()->ToString();
|
||||||
temp_file_name = new char[script_name->Utf8Length() + 1];
|
temp_file_name = new char[script_name->Utf8Length() + 1];
|
||||||
script_name->WriteUtf8(temp_file_name);
|
script_name->WriteUtf8(temp_file_name);
|
||||||
jmethod.source_file_name = 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 =
|
jmethod.line_number_table[index].Offset =
|
||||||
static_cast<unsigned int>(Iter->pc_);
|
static_cast<unsigned int>(Iter->pc_);
|
||||||
jmethod.line_number_table[index++].LineNumber =
|
jmethod.line_number_table[index++].LineNumber =
|
||||||
script->GetLineNumber(Iter->pos_)+1;
|
script->GetUnboundScript()->GetLineNumber(Iter->pos_)+1;
|
||||||
}
|
}
|
||||||
GetEntries()->erase(event->code_start);
|
GetEntries()->erase(event->code_start);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user