Move setup of code event handlers to gin
This will make sure that the handlers are set at the correct point
during v8::Isolate construction
BUG=none
[email protected]
Review URL: https://codereview.chromium.org/567343002
Cr-Commit-Position: refs/heads/master@{#295066}
diff --git a/gin/debug_impl.h b/gin/debug_impl.h
new file mode 100644
index 0000000..1fc5e4d9
--- /dev/null
+++ b/gin/debug_impl.h
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GIN_PUBLIC_DEBUG_IMPL_H_
+#define GIN_PUBLIC_DEBUG_IMPL_H_
+
+#include "gin/public/debug.h"
+#include "v8/include/v8.h"
+
+namespace gin {
+
+class DebugImpl {
+ public:
+ static v8::FunctionEntryHook GetFunctionEntryHook();
+ static v8::JitCodeEventHandler GetJitCodeEventHandler();
+};
+
+} // namespace gin
+
+#endif // GIN_PUBLIC_DEBUG_IMPL_H_