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

Side by Side Diff: src/inspector/v8-inspector-impl.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-debugger-agent-impl.cc ('k') | src/inspector/v8-inspector-impl.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 /* 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 public: 53 public:
54 V8InspectorImpl(v8::Isolate*, V8InspectorClient*); 54 V8InspectorImpl(v8::Isolate*, V8InspectorClient*);
55 ~V8InspectorImpl() override; 55 ~V8InspectorImpl() override;
56 56
57 v8::Isolate* isolate() const { return m_isolate; } 57 v8::Isolate* isolate() const { return m_isolate; }
58 V8InspectorClient* client() { return m_client; } 58 V8InspectorClient* client() { return m_client; }
59 V8Debugger* debugger() { return m_debugger.get(); } 59 V8Debugger* debugger() { return m_debugger.get(); }
60 int contextGroupId(v8::Local<v8::Context>); 60 int contextGroupId(v8::Local<v8::Context>);
61 int contextGroupId(int contextId); 61 int contextGroupId(int contextId);
62 62
63 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>,
64 v8::Local<v8::Script>);
65 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>,
66 v8::Local<v8::Context>,
67 v8::Local<v8::Value> receiver,
68 int argc, v8::Local<v8::Value> info[]);
69 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>, 63 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context>,
70 v8::Local<v8::String>); 64 v8::Local<v8::String>);
71 v8::MaybeLocal<v8::Value> callInternalFunction(v8::Local<v8::Function>,
72 v8::Local<v8::Context>,
73 v8::Local<v8::Value> receiver,
74 int argc,
75 v8::Local<v8::Value> info[]);
76 v8::MaybeLocal<v8::Script> compileScript(v8::Local<v8::Context>, 65 v8::MaybeLocal<v8::Script> compileScript(v8::Local<v8::Context>,
77 const String16& code, 66 const String16& code,
78 const String16& fileName); 67 const String16& fileName);
79 v8::Local<v8::Context> regexContext(); 68 v8::Local<v8::Context> regexContext();
80 69
81 // V8Inspector implementation. 70 // V8Inspector implementation.
82 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, 71 std::unique_ptr<V8InspectorSession> connect(int contextGroupId,
83 V8Inspector::Channel*, 72 V8Inspector::Channel*,
84 const StringView& state) override; 73 const StringView& state) override;
85 void contextCreated(const V8ContextInfo&) override; 74 void contextCreated(const V8ContextInfo&) override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void discardInspectedContext(int contextGroupId, int contextId); 108 void discardInspectedContext(int contextGroupId, int contextId);
120 const ContextByIdMap* contextGroup(int contextGroupId); 109 const ContextByIdMap* contextGroup(int contextGroupId);
121 void disconnect(V8InspectorSessionImpl*); 110 void disconnect(V8InspectorSessionImpl*);
122 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId); 111 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId);
123 InspectedContext* getContext(int groupId, int contextId) const; 112 InspectedContext* getContext(int groupId, int contextId) const;
124 V8DebuggerAgentImpl* enabledDebuggerAgentForGroup(int contextGroupId); 113 V8DebuggerAgentImpl* enabledDebuggerAgentForGroup(int contextGroupId);
125 V8RuntimeAgentImpl* enabledRuntimeAgentForGroup(int contextGroupId); 114 V8RuntimeAgentImpl* enabledRuntimeAgentForGroup(int contextGroupId);
126 V8ProfilerAgentImpl* enabledProfilerAgentForGroup(int contextGroupId); 115 V8ProfilerAgentImpl* enabledProfilerAgentForGroup(int contextGroupId);
127 116
128 private: 117 private:
129 v8::MaybeLocal<v8::Value> callFunction(
130 v8::Local<v8::Function>, v8::Local<v8::Context>,
131 v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[],
132 v8::MicrotasksScope::Type runMicrotasks);
133
134 v8::Isolate* m_isolate; 118 v8::Isolate* m_isolate;
135 V8InspectorClient* m_client; 119 V8InspectorClient* m_client;
136 std::unique_ptr<V8Debugger> m_debugger; 120 std::unique_ptr<V8Debugger> m_debugger;
137 v8::Global<v8::Context> m_regexContext; 121 v8::Global<v8::Context> m_regexContext;
138 int m_capturingStackTracesCount; 122 int m_capturingStackTracesCount;
139 unsigned m_lastExceptionId; 123 unsigned m_lastExceptionId;
140 int m_lastContextId; 124 int m_lastContextId;
141 125
142 using MuteExceptionsMap = protocol::HashMap<int, int>; 126 using MuteExceptionsMap = protocol::HashMap<int, int>;
143 MuteExceptionsMap m_muteExceptionsMap; 127 MuteExceptionsMap m_muteExceptionsMap;
(...skipping 10 matching lines...) Expand all
154 ConsoleStorageMap m_consoleStorageMap; 138 ConsoleStorageMap m_consoleStorageMap;
155 139
156 protocol::HashMap<int, int> m_contextIdToGroupIdMap; 140 protocol::HashMap<int, int> m_contextIdToGroupIdMap;
157 141
158 DISALLOW_COPY_AND_ASSIGN(V8InspectorImpl); 142 DISALLOW_COPY_AND_ASSIGN(V8InspectorImpl);
159 }; 143 };
160 144
161 } // namespace v8_inspector 145 } // namespace v8_inspector
162 146
163 #endif // V8_INSPECTOR_V8INSPECTORIMPL_H_ 147 #endif // V8_INSPECTOR_V8INSPECTORIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | src/inspector/v8-inspector-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698