| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void debuggerAgentDisabled(); | 99 void debuggerAgentDisabled(); |
| 100 | 100 |
| 101 bool isPaused() override; | 101 bool isPaused() override; |
| 102 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 102 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
| 103 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } | 103 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } |
| 104 V8StackTraceImpl* currentAsyncCallChain(); | 104 V8StackTraceImpl* currentAsyncCallChain(); |
| 105 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); | 105 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); |
| 106 | 106 |
| 107 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); | 107 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Function>); |
| 108 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, v8::Loc
al<v8::Value>); | 108 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, v8::Loc
al<v8::Value>); |
| 109 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); | |
| 110 | 109 |
| 111 v8::Isolate* isolate() const { return m_isolate; } | 110 v8::Isolate* isolate() const { return m_isolate; } |
| 112 V8DebuggerClient* client() { return m_client; } | 111 V8DebuggerClient* client() { return m_client; } |
| 113 | 112 |
| 114 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); | 113 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); |
| 115 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[]
); | 114 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[]
); |
| 116 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); | 115 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); |
| 117 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); | 116 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); |
| 118 v8::Local<v8::Context> regexContext(); | 117 v8::Local<v8::Context> regexContext(); |
| 119 | 118 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); | 168 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); |
| 170 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 169 void handleV8DebugEvent(const v8::Debug::EventDetails&); |
| 171 | 170 |
| 172 v8::Local<v8::String> v8InternalizedString(const char*) const; | 171 v8::Local<v8::String> v8InternalizedString(const char*) const; |
| 173 | 172 |
| 174 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, v8::Local<v8::Object> ex
ecutionState, v8::Local<v8::Object> eventData); | 173 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, v8::Local<v8::Object> ex
ecutionState, v8::Local<v8::Object> eventData); |
| 175 | 174 |
| 176 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI
dMap>>; | 175 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI
dMap>>; |
| 177 | 176 |
| 178 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, v8::Local<v8:
:Object>); | 177 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, v8::Local<v8:
:Object>); |
| 178 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Object>); |
| 179 | 179 |
| 180 v8::Isolate* m_isolate; | 180 v8::Isolate* m_isolate; |
| 181 V8DebuggerClient* m_client; | 181 V8DebuggerClient* m_client; |
| 182 ContextsByGroupMap m_contexts; | 182 ContextsByGroupMap m_contexts; |
| 183 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; | 183 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; |
| 184 SessionMap m_sessions; | 184 SessionMap m_sessions; |
| 185 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe
ssageStorage>>; | 185 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe
ssageStorage>>; |
| 186 ConsoleStorageMap m_consoleStorageMap; | 186 ConsoleStorageMap m_consoleStorageMap; |
| 187 int m_capturingStackTracesCount; | 187 int m_capturingStackTracesCount; |
| 188 int m_muteConsoleCount; | 188 int m_muteConsoleCount; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 202 int m_maxAsyncCallStackDepth; | 202 int m_maxAsyncCallStackDepth; |
| 203 std::vector<void*> m_currentTasks; | 203 std::vector<void*> m_currentTasks; |
| 204 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 204 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
| 205 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 205 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 } // namespace blink | 208 } // namespace blink |
| 209 | 209 |
| 210 | 210 |
| 211 #endif // V8DebuggerImpl_h | 211 #endif // V8DebuggerImpl_h |
| OLD | NEW |