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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void debuggerAgentEnabled(); | 91 void debuggerAgentEnabled(); |
92 void debuggerAgentDisabled(); | 92 void debuggerAgentDisabled(); |
93 | 93 |
94 bool isPaused() override; | 94 bool isPaused() override; |
95 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 95 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
96 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } | 96 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } |
97 V8StackTraceImpl* currentAsyncCallChain(); | 97 V8StackTraceImpl* currentAsyncCallChain(); |
98 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); | 98 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); |
99 | 99 |
100 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); | 100 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); |
| 101 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, v8::Loc
al<v8::Value>); |
101 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); | 102 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); |
102 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); | |
103 | 103 |
104 v8::Isolate* isolate() const { return m_isolate; } | 104 v8::Isolate* isolate() const { return m_isolate; } |
105 V8DebuggerClient* client() { return m_client; } | 105 V8DebuggerClient* client() { return m_client; } |
106 | 106 |
107 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); | 107 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); |
108 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[]
); | 108 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[]
); |
109 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); | 109 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); |
110 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); | 110 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); |
111 v8::Local<v8::Context> regexContext(); | 111 v8::Local<v8::Context> regexContext(); |
112 | 112 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 149 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
150 void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8::
Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hit
Breakpoints, bool isPromiseRejection = false); | 150 void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8::
Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hit
Breakpoints, bool isPromiseRejection = false); |
151 static void v8DebugEventCallback(const v8::Debug::EventDetails&); | 151 static void v8DebugEventCallback(const v8::Debug::EventDetails&); |
152 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); | 152 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); |
153 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 153 void handleV8DebugEvent(const v8::Debug::EventDetails&); |
154 | 154 |
155 v8::Local<v8::String> v8InternalizedString(const char*) const; | 155 v8::Local<v8::String> v8InternalizedString(const char*) const; |
156 | 156 |
157 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, v8::Local<v8::Object> ex
ecutionState, v8::Local<v8::Object> eventData); | 157 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, v8::Local<v8::Object> ex
ecutionState, v8::Local<v8::Object> eventData); |
158 | 158 |
| 159 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>); |
| 160 |
159 v8::Isolate* m_isolate; | 161 v8::Isolate* m_isolate; |
160 V8DebuggerClient* m_client; | 162 V8DebuggerClient* m_client; |
161 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI
dMap>>; | 163 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI
dMap>>; |
162 ContextsByGroupMap m_contexts; | 164 ContextsByGroupMap m_contexts; |
163 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; | 165 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; |
164 SessionMap m_sessions; | 166 SessionMap m_sessions; |
165 int m_enabledAgentsCount; | 167 int m_enabledAgentsCount; |
166 bool m_breakpointsActivated; | 168 bool m_breakpointsActivated; |
167 v8::Global<v8::Object> m_debuggerScript; | 169 v8::Global<v8::Object> m_debuggerScript; |
168 v8::Global<v8::Context> m_debuggerContext; | 170 v8::Global<v8::Context> m_debuggerContext; |
169 v8::Local<v8::Object> m_executionState; | 171 v8::Local<v8::Object> m_executionState; |
170 v8::Local<v8::Context> m_pausedContext; | 172 v8::Local<v8::Context> m_pausedContext; |
171 bool m_runningNestedMessageLoop; | 173 bool m_runningNestedMessageLoop; |
172 v8::Global<v8::Context> m_regexContext; | 174 v8::Global<v8::Context> m_regexContext; |
173 | 175 |
174 using AsyncTaskToStackTrace = protocol::HashMap<void*, std::unique_ptr<V8Sta
ckTraceImpl>>; | 176 using AsyncTaskToStackTrace = protocol::HashMap<void*, std::unique_ptr<V8Sta
ckTraceImpl>>; |
175 AsyncTaskToStackTrace m_asyncTaskStacks; | 177 AsyncTaskToStackTrace m_asyncTaskStacks; |
176 protocol::HashSet<void*> m_recurringTasks; | 178 protocol::HashSet<void*> m_recurringTasks; |
177 int m_maxAsyncCallStackDepth; | 179 int m_maxAsyncCallStackDepth; |
178 protocol::Vector<void*> m_currentTasks; | 180 protocol::Vector<void*> m_currentTasks; |
179 protocol::Vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 181 protocol::Vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
180 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 182 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
181 }; | 183 }; |
182 | 184 |
183 } // namespace blink | 185 } // namespace blink |
184 | 186 |
185 | 187 |
186 #endif // V8DebuggerImpl_h | 188 #endif // V8DebuggerImpl_h |
OLD | NEW |