Revision: 15299
Author:   [email protected]
Date:     Mon Jun 24 07:21:14 2013
Log:      In revision 15142, the V8_USE_UNSAFE_HANDLES define is removed.

So in the vtune support code ( in vtune-jit.cc file)v8::Handle<T* value> consturctor cannot be invoked directly. We use "->ToString()" to create the Handle<String> object to fix the compilation error.

[email protected]

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

Patch from Chunyang Dai <[email protected]>.
http://code.google.com/p/v8/source/detail?r=15299

Modified:
 /branches/bleeding_edge/src/third_party/vtune/vtune-jit.cc

=======================================
--- /branches/bleeding_edge/src/third_party/vtune/vtune-jit.cc Wed May 8 09:17:23 2013 +++ /branches/bleeding_edge/src/third_party/vtune/vtune-jit.cc Mon Jun 24 07:21:14 2013
@@ -192,8 +192,7 @@
         if (*script != NULL) {
// Get the source file name and set it to jmethod.source_file_name
          if ((*script->GetScriptName())->IsString()) {
-            Handle<String> script_name =
-                Handle<String>(String::Cast(*script->GetScriptName()));
+ Handle<String> 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;

--
--
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.


Reply via email to