From: danno@chromium.org Date: Mon, 24 Jun 2013 14:21:14 +0000 (+0000) Subject: In revision 15142, the V8_USE_UNSAFE_HANDLES define is removed. X-Git-Tag: upstream/4.7.83~13703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0f41ad31a1b3129817a7be3e246d63ab466093d;p=platform%2Fupstream%2Fv8.git In revision 15142, the V8_USE_UNSAFE_HANDLES define is removed. So in the vtune support code ( in vtune-jit.cc file)v8::Handle consturctor cannot be invoked directly. We use "->ToString()" to create the Handle object to fix the compilation error. R=danno@chromium.org Review URL: https://codereview.chromium.org/17343005 Patch from Chunyang Dai . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15299 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc index d3f7a68..0f35290 100644 --- a/src/third_party/vtune/vtune-jit.cc +++ b/src/third_party/vtune/vtune-jit.cc @@ -192,8 +192,7 @@ void VTUNEJITInterface::event_handler(const v8::JitCodeEvent* event) { if (*script != NULL) { // Get the source file name and set it to jmethod.source_file_name if ((*script->GetScriptName())->IsString()) { - Handle script_name = - Handle(String::Cast(*script->GetScriptName())); + Handle script_name = script->GetScriptName()->ToString(); temp_file_name = new char[script_name->Utf8Length() + 1]; script_name->WriteUtf8(temp_file_name); jmethod.source_file_name = temp_file_name;