OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_DEBUG_INTERFACE_TYPES_H_ | 5 #ifndef V8_DEBUG_INTERFACE_TYPES_H_ |
6 #define V8_DEBUG_INTERFACE_TYPES_H_ | 6 #define V8_DEBUG_INTERFACE_TYPES_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace debug { | 13 namespace debug { |
14 | 14 |
| 15 enum AsyncTaskEventType { |
| 16 EnqueueRecurring = 0, |
| 17 WillHandle = 1, |
| 18 DidHandle = 2, |
| 19 Cancel = 3 |
| 20 }; |
| 21 |
15 /** | 22 /** |
16 * Defines location inside script. | 23 * Defines location inside script. |
17 * Lines and columns are 0-based. | 24 * Lines and columns are 0-based. |
18 */ | 25 */ |
19 class Location { | 26 class Location { |
20 public: | 27 public: |
21 Location(int line_number, int column_number); | 28 Location(int line_number, int column_number); |
22 /** | 29 /** |
23 * Create empty location. | 30 * Create empty location. |
24 */ | 31 */ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 offset_table(std::move(offset_table)) {} | 63 offset_table(std::move(offset_table)) {} |
57 | 64 |
58 std::string disassembly; | 65 std::string disassembly; |
59 OffsetTable offset_table; | 66 OffsetTable offset_table; |
60 }; | 67 }; |
61 | 68 |
62 } // namespace debug | 69 } // namespace debug |
63 } // namespace v8 | 70 } // namespace v8 |
64 | 71 |
65 #endif // V8_DEBUG_INTERFACE_TYPES_H_ | 72 #endif // V8_DEBUG_INTERFACE_TYPES_H_ |
OLD | NEW |