Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: src/inspector/v8-debugger.h

Issue 2748503002: [inspector] changed a way of preserving stepping between tasks (Closed)
Patch Set: rebased on tunned stepping at return Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/inspector/v8-console.cc ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INSPECTOR_V8DEBUGGER_H_ 5 #ifndef V8_INSPECTOR_V8DEBUGGER_H_
6 #define V8_INSPECTOR_V8DEBUGGER_H_ 6 #define V8_INSPECTOR_V8DEBUGGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/base/macros.h" 10 #include "src/base/macros.h"
(...skipping 23 matching lines...) Expand all
34 bool enabled() const; 34 bool enabled() const;
35 35
36 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber, 36 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber,
37 int* actualColumnNumber); 37 int* actualColumnNumber);
38 void removeBreakpoint(const String16& breakpointId); 38 void removeBreakpoint(const String16& breakpointId);
39 void setBreakpointsActivated(bool); 39 void setBreakpointsActivated(bool);
40 bool breakpointsActivated() const { return m_breakpointsActivated; } 40 bool breakpointsActivated() const { return m_breakpointsActivated; }
41 41
42 v8::debug::ExceptionBreakState getPauseOnExceptionsState(); 42 v8::debug::ExceptionBreakState getPauseOnExceptionsState();
43 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState); 43 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState);
44 void setPauseOnNextStatement(bool);
45 bool canBreakProgram(); 44 bool canBreakProgram();
46 void breakProgram(); 45 void breakProgram();
47 void continueProgram(); 46 void continueProgram();
48 void stepIntoStatement(); 47
49 void stepOverStatement(); 48 void setPauseOnNextStatement(bool, int targetContextGroupId);
50 void stepOutOfFunction(); 49 void stepIntoStatement(int targetContextGroupId);
50 void stepOverStatement(int targetContextGroupId);
51 void stepOutOfFunction(int targetContextGroupId);
51 52
52 Response setScriptSource( 53 Response setScriptSource(
53 const String16& sourceID, v8::Local<v8::String> newSource, bool dryRun, 54 const String16& sourceID, v8::Local<v8::String> newSource, bool dryRun,
54 protocol::Maybe<protocol::Runtime::ExceptionDetails>*, 55 protocol::Maybe<protocol::Runtime::ExceptionDetails>*,
55 JavaScriptCallFrames* newCallFrames, protocol::Maybe<bool>* stackChanged, 56 JavaScriptCallFrames* newCallFrames, protocol::Maybe<bool>* stackChanged,
56 bool* compileError); 57 bool* compileError);
57 JavaScriptCallFrames currentCallFrames(int limit = 0); 58 JavaScriptCallFrames currentCallFrames(int limit = 0);
58 59
59 // Each script inherits debug data from v8::Context where it has been 60 // Each script inherits debug data from v8::Context where it has been
60 // compiled. 61 // compiled.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 V8InspectorImpl* m_inspector; 156 V8InspectorImpl* m_inspector;
156 int m_enableCount; 157 int m_enableCount;
157 bool m_breakpointsActivated; 158 bool m_breakpointsActivated;
158 v8::Global<v8::Object> m_debuggerScript; 159 v8::Global<v8::Object> m_debuggerScript;
159 v8::Global<v8::Context> m_debuggerContext; 160 v8::Global<v8::Context> m_debuggerContext;
160 v8::Local<v8::Object> m_executionState; 161 v8::Local<v8::Object> m_executionState;
161 v8::Local<v8::Context> m_pausedContext; 162 v8::Local<v8::Context> m_pausedContext;
162 bool m_runningNestedMessageLoop; 163 bool m_runningNestedMessageLoop;
163 int m_ignoreScriptParsedEventsCounter; 164 int m_ignoreScriptParsedEventsCounter;
164 bool m_scheduledOOMBreak = false; 165 bool m_scheduledOOMBreak = false;
166 int m_targetContextGroupId = 0;
165 167
166 using AsyncTaskToStackTrace = 168 using AsyncTaskToStackTrace =
167 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; 169 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>;
168 AsyncTaskToStackTrace m_asyncTaskStacks; 170 AsyncTaskToStackTrace m_asyncTaskStacks;
169 AsyncTaskToStackTrace m_asyncTaskCreationStacks; 171 AsyncTaskToStackTrace m_asyncTaskCreationStacks;
170 int m_maxAsyncCallStacks; 172 int m_maxAsyncCallStacks;
171 std::map<int, void*> m_idToTask; 173 std::map<int, void*> m_idToTask;
172 std::unordered_map<void*, int> m_taskToId; 174 std::unordered_map<void*, int> m_taskToId;
173 int m_lastTaskId; 175 int m_lastTaskId;
174 protocol::HashSet<void*> m_recurringTasks; 176 protocol::HashSet<void*> m_recurringTasks;
175 int m_maxAsyncCallStackDepth; 177 int m_maxAsyncCallStackDepth;
176 std::vector<void*> m_currentTasks; 178 std::vector<void*> m_currentTasks;
177 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; 179 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks;
178 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; 180 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap;
179 protocol::HashMap<void*, void*> m_parentTask; 181 protocol::HashMap<void*, void*> m_parentTask;
180 protocol::HashMap<void*, void*> m_firstNextTask; 182 protocol::HashMap<void*, void*> m_firstNextTask;
181 void* m_taskWithScheduledBreak = nullptr; 183 void* m_taskWithScheduledBreak = nullptr;
182 184
183 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; 185 v8::debug::ExceptionBreakState m_pauseOnExceptionsState;
184 186
185 WasmTranslation m_wasmTranslation; 187 WasmTranslation m_wasmTranslation;
186 188
187 DISALLOW_COPY_AND_ASSIGN(V8Debugger); 189 DISALLOW_COPY_AND_ASSIGN(V8Debugger);
188 }; 190 };
189 191
190 } // namespace v8_inspector 192 } // namespace v8_inspector
191 193
192 #endif // V8_INSPECTOR_V8DEBUGGER_H_ 194 #endif // V8_INSPECTOR_V8DEBUGGER_H_
OLDNEW
« no previous file with comments | « src/inspector/v8-console.cc ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698