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_DEBUG_INTERFACE_H_ | 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ |
6 #define V8_DEBUG_DEBUG_INTERFACE_H_ | 6 #define V8_DEBUG_DEBUG_INTERFACE_H_ |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "include/v8-debug.h" | 10 #include "include/v8-debug.h" |
11 #include "include/v8-util.h" | 11 #include "include/v8-util.h" |
12 #include "include/v8.h" | 12 #include "include/v8.h" |
13 | 13 |
14 #include "src/debug/interface-types.h" | 14 #include "src/debug/interface-types.h" |
15 #include "src/globals.h" | 15 #include "src/globals.h" |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
18 | 18 |
19 namespace internal { | 19 namespace internal { |
20 struct CoverageFunction; | 20 struct CoverageFunction; |
21 struct CoverageScript; | 21 struct CoverageScript; |
22 class Coverage; | 22 class Coverage; |
23 class Script; | 23 class Script; |
24 } | 24 } |
25 | 25 |
26 namespace debug { | 26 namespace debug { |
27 | 27 |
| 28 void SetContextId(Local<Context> context, int id); |
| 29 int GetContextId(Local<Context> context); |
| 30 |
28 /** | 31 /** |
29 * Debugger is running in its own context which is entered while debugger | 32 * Debugger is running in its own context which is entered while debugger |
30 * messages are being dispatched. This is an explicit getter for this | 33 * messages are being dispatched. This is an explicit getter for this |
31 * debugger context. Note that the content of the debugger context is subject | 34 * debugger context. Note that the content of the debugger context is subject |
32 * to change. The Context exists only when the debugger is active, i.e. at | 35 * to change. The Context exists only when the debugger is active, i.e. at |
33 * least one DebugEventListener or MessageHandler is set. | 36 * least one DebugEventListener or MessageHandler is set. |
34 */ | 37 */ |
35 Local<Context> GetDebugContext(Isolate* isolate); | 38 Local<Context> GetDebugContext(Isolate* isolate); |
36 | 39 |
37 /** | 40 /** |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 ~Coverage(); | 285 ~Coverage(); |
283 | 286 |
284 private: | 287 private: |
285 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 288 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
286 i::Coverage* coverage_; | 289 i::Coverage* coverage_; |
287 }; | 290 }; |
288 } // namespace debug | 291 } // namespace debug |
289 } // namespace v8 | 292 } // namespace v8 |
290 | 293 |
291 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 294 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |