From 24649209a098e090ef1e47b9890f59bc4a0648c8 Mon Sep 17 00:00:00 2001 From: "dcarney@chromium.org" Date: Tue, 7 May 2013 07:23:39 +0000 Subject: [PATCH] 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 --- src/third_party/vtune/vtune-jit.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc index 6ff595f..20eebbd 100644 --- a/src/third_party/vtune/vtune-jit.cc +++ b/src/third_party/vtune/vtune-jit.cc @@ -194,8 +194,8 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) { if ((*script->GetScriptName())->IsString()) { Handle script_name = Handle(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; } -- 2.7.4