Commit 24649209 authored by dcarney@chromium.org's avatar dcarney@chromium.org

remove use of WriteAscii for vtune

R=svenpanne@chromium.org
BUG=

Review URL: https://codereview.chromium.org/14900003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14562 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9b45b71d
......@@ -194,8 +194,8 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) {
if ((*script->GetScriptName())->IsString()) {
Handle<String> script_name =
Handle<String>(String::Cast(*script->GetScriptName()));
temp_file_name = new char[script_name->Length() + 1];
script_name->WriteAscii(temp_file_name);
temp_file_name = new char[script_name->Utf8Length() + 1];
script_name->WriteUtf8(temp_file_name);
jmethod.source_file_name = temp_file_name;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment