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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca
l<v8::Script>); | 114 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[]
); | 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[]
); |
116 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>
, v8::Local<v8::String>); | 116 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); | 117 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); |
118 v8::Local<v8::Context> regexContext(); | 118 v8::Local<v8::Context> regexContext(); |
119 | 119 |
120 void enableStackCapturingIfNeeded(); | 120 void enableStackCapturingIfNeeded(); |
121 void disableStackCapturingIfNeeded(); | 121 void disableStackCapturingIfNeeded(); |
122 V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId); | 122 V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId); |
| 123 std::unique_ptr<V8StackTraceImpl> createStackTraceImpl(v8::Local<v8::StackTr
ace>); |
| 124 std::unique_ptr<V8StackTraceImpl> captureStackTraceImpl(bool fullStack); |
123 | 125 |
124 // V8Debugger implementation | 126 // V8Debugger implementation |
125 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr
ontendChannel*, V8InspectorSessionClient*, const String16* state) override; | 127 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr
ontendChannel*, V8InspectorSessionClient*, const String16* state) override; |
126 void contextCreated(const V8ContextInfo&) override; | 128 void contextCreated(const V8ContextInfo&) override; |
127 void contextDestroyed(v8::Local<v8::Context>) override; | 129 void contextDestroyed(v8::Local<v8::Context>) override; |
128 void resetContextGroup(int contextGroupId) override; | 130 void resetContextGroup(int contextGroupId) override; |
129 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; | 131 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; |
130 void didExecuteScript(v8::Local<v8::Context>) override; | 132 void didExecuteScript(v8::Local<v8::Context>) override; |
131 void idleStarted() override; | 133 void idleStarted() override; |
132 void idleFinished() override; | 134 void idleFinished() override; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 int m_maxAsyncCallStackDepth; | 202 int m_maxAsyncCallStackDepth; |
201 std::vector<void*> m_currentTasks; | 203 std::vector<void*> m_currentTasks; |
202 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 204 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
203 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 205 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
204 }; | 206 }; |
205 | 207 |
206 } // namespace blink | 208 } // namespace blink |
207 | 209 |
208 | 210 |
209 #endif // V8DebuggerImpl_h | 211 #endif // V8DebuggerImpl_h |
OLD | NEW |