Index: src/v8.cc |
=================================================================== |
--- src/v8.cc (revision 13219) |
+++ src/v8.cc (working copy) |
@@ -45,6 +45,10 @@ |
#include "serialize.h" |
#include "store-buffer.h" |
+#ifdef ENABLE_VTUNE_JIT_INTERFACE |
+#include "third_party/vtune/vtune-jit.h" |
+#endif |
+ |
namespace v8 { |
namespace internal { |
@@ -82,7 +86,10 @@ |
i::Isolate::Current()); |
if (IsDead()) return false; |
- |
+#ifdef ENABLE_VTUNE_JIT_INTERFACE |
+ if (i::FLAG_jit_profile) |
danno
2012/12/20 16:34:38
My primary feedback about this patch is that the e
|
+ v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, i::VTUNEJITInterface::event_handler); |
+#endif |
Isolate* isolate = Isolate::Current(); |
if (isolate->IsInitialized()) return true; |