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_V8_INSPECTOR_H_ | 5 #ifndef V8_V8_INSPECTOR_H_ |
6 #define V8_V8_INSPECTOR_H_ | 6 #define V8_V8_INSPECTOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <cctype> | 9 #include <cctype> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 hasMemoryOnConsole(false) {} | 78 hasMemoryOnConsole(false) {} |
79 | 79 |
80 v8::Local<v8::Context> context; | 80 v8::Local<v8::Context> context; |
81 // Each v8::Context is a part of a group. The group id must be non-zero. | 81 // Each v8::Context is a part of a group. The group id must be non-zero. |
82 int contextGroupId; | 82 int contextGroupId; |
83 StringView humanReadableName; | 83 StringView humanReadableName; |
84 StringView origin; | 84 StringView origin; |
85 StringView auxData; | 85 StringView auxData; |
86 bool hasMemoryOnConsole; | 86 bool hasMemoryOnConsole; |
87 | 87 |
| 88 static int executionContextId(v8::Local<v8::Context> context); |
| 89 |
88 private: | 90 private: |
89 // Disallow copying and allocating this one. | 91 // Disallow copying and allocating this one. |
90 enum NotNullTagEnum { NotNullLiteral }; | 92 enum NotNullTagEnum { NotNullLiteral }; |
91 void* operator new(size_t) = delete; | 93 void* operator new(size_t) = delete; |
92 void* operator new(size_t, NotNullTagEnum, void*) = delete; | 94 void* operator new(size_t, NotNullTagEnum, void*) = delete; |
93 void* operator new(size_t, void*) = delete; | 95 void* operator new(size_t, void*) = delete; |
94 V8ContextInfo(const V8ContextInfo&) = delete; | 96 V8ContextInfo(const V8ContextInfo&) = delete; |
95 V8ContextInfo& operator=(const V8ContextInfo&) = delete; | 97 V8ContextInfo& operator=(const V8ContextInfo&) = delete; |
96 }; | 98 }; |
97 | 99 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 260 |
259 // API methods. | 261 // API methods. |
260 virtual std::unique_ptr<V8StackTrace> createStackTrace( | 262 virtual std::unique_ptr<V8StackTrace> createStackTrace( |
261 v8::Local<v8::StackTrace>) = 0; | 263 v8::Local<v8::StackTrace>) = 0; |
262 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; | 264 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; |
263 }; | 265 }; |
264 | 266 |
265 } // namespace v8_inspector | 267 } // namespace v8_inspector |
266 | 268 |
267 #endif // V8_V8_INSPECTOR_H_ | 269 #endif // V8_V8_INSPECTOR_H_ |
OLD | NEW |