OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void debuggerAgentEnabled(); | 94 void debuggerAgentEnabled(); |
95 void debuggerAgentDisabled(); | 95 void debuggerAgentDisabled(); |
96 | 96 |
97 bool isPaused() override; | 97 bool isPaused() override; |
98 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 98 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
99 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } | 99 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } |
100 V8StackTraceImpl* currentAsyncCallChain(); | 100 V8StackTraceImpl* currentAsyncCallChain(); |
101 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); | 101 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); |
102 | 102 |
103 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); | 103 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); |
| 104 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, v8::Loc
al<v8::Value>); |
104 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); | 105 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); |
105 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); | |
106 | 106 |
107 v8::Isolate* isolate() const { return m_isolate; } | 107 v8::Isolate* isolate() const { return m_isolate; } |
108 V8DebuggerClient* client() { return m_client; } | 108 V8DebuggerClient* client() { return m_client; } |
109 | 109 |
110 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); | 110 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); |
111 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8
::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]
); | 111 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8
::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]
); |
112 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); | 112 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); |
113 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); | 113 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); |
114 v8::Local<v8::Context> regexContext(); | 114 v8::Local<v8::Context> regexContext(); |
115 | 115 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); | 155 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); |
156 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 156 void handleV8DebugEvent(const v8::Debug::EventDetails&); |
157 | 157 |
158 v8::Local<v8::String> v8InternalizedString(const char*) const; | 158 v8::Local<v8::String> v8InternalizedString(const char*) const; |
159 | 159 |
160 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, v8::Local<v8::Object> ex
ecutionState, v8::Local<v8::Object> eventData); | 160 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, v8::Local<v8::Object> ex
ecutionState, v8::Local<v8::Object> eventData); |
161 InspectedContext* getContext(int groupId, int contextId) const; | 161 InspectedContext* getContext(int groupId, int contextId) const; |
162 | 162 |
163 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI
dMap>>; | 163 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI
dMap>>; |
164 | 164 |
| 165 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, v8::Local<v8:
:Object>); |
| 166 |
165 v8::Isolate* m_isolate; | 167 v8::Isolate* m_isolate; |
166 V8DebuggerClient* m_client; | 168 V8DebuggerClient* m_client; |
167 ContextsByGroupMap m_contexts; | 169 ContextsByGroupMap m_contexts; |
168 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; | 170 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; |
169 SessionMap m_sessions; | 171 SessionMap m_sessions; |
170 int m_enabledAgentsCount; | 172 int m_enabledAgentsCount; |
171 bool m_breakpointsActivated; | 173 bool m_breakpointsActivated; |
172 v8::Global<v8::Object> m_debuggerScript; | 174 v8::Global<v8::Object> m_debuggerScript; |
173 v8::Global<v8::Context> m_debuggerContext; | 175 v8::Global<v8::Context> m_debuggerContext; |
174 v8::Local<v8::Object> m_executionState; | 176 v8::Local<v8::Object> m_executionState; |
175 v8::Local<v8::Context> m_pausedContext; | 177 v8::Local<v8::Context> m_pausedContext; |
176 bool m_runningNestedMessageLoop; | 178 bool m_runningNestedMessageLoop; |
177 v8::Global<v8::Context> m_regexContext; | 179 v8::Global<v8::Context> m_regexContext; |
178 | 180 |
179 using AsyncTaskToStackTrace = protocol::HashMap<void*, std::unique_ptr<V8Sta
ckTraceImpl>>; | 181 using AsyncTaskToStackTrace = protocol::HashMap<void*, std::unique_ptr<V8Sta
ckTraceImpl>>; |
180 AsyncTaskToStackTrace m_asyncTaskStacks; | 182 AsyncTaskToStackTrace m_asyncTaskStacks; |
181 protocol::HashSet<void*> m_recurringTasks; | 183 protocol::HashSet<void*> m_recurringTasks; |
182 int m_maxAsyncCallStackDepth; | 184 int m_maxAsyncCallStackDepth; |
183 std::vector<void*> m_currentTasks; | 185 std::vector<void*> m_currentTasks; |
184 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 186 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
185 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 187 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
186 }; | 188 }; |
187 | 189 |
188 } // namespace blink | 190 } // namespace blink |
189 | 191 |
190 | 192 |
191 #endif // V8DebuggerImpl_h | 193 #endif // V8DebuggerImpl_h |
OLD | NEW |