Reviewers: Sven Panne,
Message:
Committed patchset #1 manually as r14562 (presubmit successful).
Description:
remove use of WriteAscii for vtune
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=14562
Please review this at https://codereview.chromium.org/14900003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/third_party/vtune/vtune-jit.cc
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;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.