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 6ff595fdf19c10fdab256eb72c03ec6983be75f1..20eebbdefa2711b75486161b6082f70f92b238e5 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<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; |
} |