OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_V8_DEBUG_H_ | 5 #ifndef V8_V8_DEBUG_H_ |
6 #define V8_V8_DEBUG_H_ | 6 #define V8_V8_DEBUG_H_ |
7 | 7 |
8 #include "v8.h" // NOLINT(build/include) | 8 #include "v8.h" // NOLINT(build/include) |
9 | 9 |
10 /** | 10 /** |
11 * Debugger support for the V8 JavaScript engine. | 11 * Debugger support for the V8 JavaScript engine. |
12 */ | 12 */ |
13 namespace v8 { | 13 namespace v8 { |
14 | 14 |
15 // Debug events which can occur in the V8 JavaScript engine. | 15 // Debug events which can occur in the V8 JavaScript engine. |
16 enum DebugEvent { | 16 enum DebugEvent { |
17 Break = 1, | 17 Break = 1, |
18 Exception = 2, | 18 Exception = 2, |
19 NewFunction = 3, | 19 NewFunction = 3, |
20 BeforeCompile = 4, | 20 BeforeCompile = 4, |
21 AfterCompile = 5, | 21 AfterCompile = 5, |
22 CompileError = 6, | 22 CompileError = 6, |
23 PromiseEvent = 7, | 23 AsyncTaskEvent = 7, |
24 AsyncTaskEvent = 8, | |
25 }; | 24 }; |
26 | 25 |
27 | |
28 class V8_EXPORT Debug { | 26 class V8_EXPORT Debug { |
29 public: | 27 public: |
30 /** | 28 /** |
31 * A client object passed to the v8 debugger whose ownership will be taken by | 29 * A client object passed to the v8 debugger whose ownership will be taken by |
32 * it. v8 is always responsible for deleting the object. | 30 * it. v8 is always responsible for deleting the object. |
33 */ | 31 */ |
34 class ClientData { | 32 class ClientData { |
35 public: | 33 public: |
36 virtual ~ClientData() {} | 34 virtual ~ClientData() {} |
37 }; | 35 }; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 }; | 277 }; |
280 | 278 |
281 | 279 |
282 } // namespace v8 | 280 } // namespace v8 |
283 | 281 |
284 | 282 |
285 #undef EXPORT | 283 #undef EXPORT |
286 | 284 |
287 | 285 |
288 #endif // V8_V8_DEBUG_H_ | 286 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |