Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 4e0d86f570dc2a63812fdc867c71c6fb3b40b8e2..3bd38bea5609ce4b04ebf392cc162a5360b03a7c 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -29,6 +29,10 @@ |
#include "include/v8-testing.h" |
#endif // V8_SHARED |
+#ifdef ENABLE_GDB_JIT_INTERFACE |
+#include "src/gdb-jit.h" |
+#endif |
+ |
#ifdef ENABLE_VTUNE_JIT_INTERFACE |
#include "src/third_party/vtune/v8-vtune.h" |
#endif |
@@ -1577,6 +1581,10 @@ int Shell::Main(int argc, char* argv[]) { |
{ |
Isolate::Scope scope(isolate); |
Initialize(isolate); |
+#ifdef ENABLE_GDB_JIT_INTERFACE |
+ v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, |
+ i::GDBJITInterface::EventHandler); |
+#endif |
#ifdef ENABLE_VTUNE_JIT_INTERFACE |
vTune::InitializeVtuneForV8(); |
#endif |