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

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

Issue 2516973003: [inspector] Expose scopes for suspended generator objects (Closed)
Patch Set: Address comments Created 4 years 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/debugger_script_externs.js ('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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, 119 void handleV8AsyncTaskEvent(v8::Local<v8::Context>,
120 v8::Local<v8::Object> executionState, 120 v8::Local<v8::Object> executionState,
121 v8::Local<v8::Object> eventData); 121 v8::Local<v8::Object> eventData);
122 122
123 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, 123 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>,
124 v8::Local<v8::Object>); 124 v8::Local<v8::Object>);
125 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, 125 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>,
126 v8::Local<v8::Object>); 126 v8::Local<v8::Object>);
127 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, 127 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>,
128 v8::Local<v8::Function>); 128 v8::Local<v8::Function>);
129
130 enum ScopeTargetKind {
131 FUNCTION,
132 GENERATOR,
133 };
134 v8::MaybeLocal<v8::Value> getTargetScopes(v8::Local<v8::Context>,
135 v8::Local<v8::Value>,
136 ScopeTargetKind);
137
129 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Context>, 138 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Context>,
130 v8::Local<v8::Function>); 139 v8::Local<v8::Function>);
140 v8::MaybeLocal<v8::Value> generatorScopes(v8::Local<v8::Context>,
141 v8::Local<v8::Value>);
131 142
132 v8::Isolate* m_isolate; 143 v8::Isolate* m_isolate;
133 V8InspectorImpl* m_inspector; 144 V8InspectorImpl* m_inspector;
134 int m_lastContextId; 145 int m_lastContextId;
135 int m_enableCount; 146 int m_enableCount;
136 bool m_breakpointsActivated; 147 bool m_breakpointsActivated;
137 v8::Global<v8::Object> m_debuggerScript; 148 v8::Global<v8::Object> m_debuggerScript;
138 v8::Global<v8::Context> m_debuggerContext; 149 v8::Global<v8::Context> m_debuggerContext;
139 v8::Local<v8::Object> m_executionState; 150 v8::Local<v8::Object> m_executionState;
140 v8::Local<v8::Context> m_pausedContext; 151 v8::Local<v8::Context> m_pausedContext;
(...skipping 12 matching lines...) Expand all
153 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; 164 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState;
154 165
155 WasmTranslation m_wasmTranslation; 166 WasmTranslation m_wasmTranslation;
156 167
157 DISALLOW_COPY_AND_ASSIGN(V8Debugger); 168 DISALLOW_COPY_AND_ASSIGN(V8Debugger);
158 }; 169 };
159 170
160 } // namespace v8_inspector 171 } // namespace v8_inspector
161 172
162 #endif // V8_INSPECTOR_V8DEBUGGER_H_ 173 #endif // V8_INSPECTOR_V8DEBUGGER_H_
OLDNEW
« no previous file with comments | « src/inspector/debugger_script_externs.js ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698