forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.h
37 lines (29 loc) · 965 Bytes
/
debug.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GIN_PUBLIC_DEBUG_H_
#define GIN_PUBLIC_DEBUG_H_
#include <stddef.h>
#include "build/build_config.h"
#include "gin/gin_export.h"
#include "v8/include/v8-callbacks.h"
namespace gin {
class GIN_EXPORT Debug {
public:
/* Installs a callback that is invoked each time jit code is added, moved,
* or removed.
*
* This only affects IsolateHolder instances created after
* SetJitCodeEventHandler was invoked.
*/
static void SetJitCodeEventHandler(v8::JitCodeEventHandler event_handler);
#if BUILDFLAG(IS_WIN)
/* Sets a callback that is invoked for exceptions that arise in V8-generated
* code (jitted code or embedded builtins).
*/
static void SetUnhandledExceptionCallback(
v8::UnhandledExceptionCallback callback);
#endif
};
} // namespace gin
#endif // GIN_PUBLIC_DEBUG_H_