OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GIN_PUBLIC_DEBUG_H_ |
| 6 #define GIN_PUBLIC_DEBUG_H_ |
| 7 |
| 8 #include "gin/gin_export.h" |
| 9 #include "v8/include/v8.h" |
| 10 |
| 11 namespace gin { |
| 12 |
| 13 class GIN_EXPORT Debug { |
| 14 public: |
| 15 /* Installs a callback that is invoked on entry to every V8-generated |
| 16 * function. |
| 17 * |
| 18 * This only affects IsolateHolder instances created after |
| 19 * SetFunctionEntryHook was invoked. |
| 20 */ |
| 21 static void SetFunctionEntryHook(v8::FunctionEntryHook entry_hook); |
| 22 |
| 23 /* Installs a callback that is invoked each time jit code is added, moved, |
| 24 * or removed. |
| 25 * |
| 26 * This only affects IsolateHolder instances created after |
| 27 * SetJitCodeEventHandler was invoked. |
| 28 */ |
| 29 static void SetJitCodeEventHandler(v8::JitCodeEventHandler event_handler); |
| 30 }; |
| 31 |
| 32 } // namespace gin |
| 33 |
| 34 #endif // GIN_PUBLIC_DEBUG_H_ |
OLD | NEW |