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

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

Issue 2651153004: Fix uncaught exception bug from liveEditScriptSource (Closed)
Patch Set: ac Created 3 years, 11 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 | « no previous file | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 V8InspectorImpl* inspector() { return m_inspector; } 91 V8InspectorImpl* inspector() { return m_inspector; }
92 92
93 WasmTranslation* wasmTranslation() { return &m_wasmTranslation; } 93 WasmTranslation* wasmTranslation() { return &m_wasmTranslation; }
94 94
95 void setMaxAsyncTaskStacksForTest(int limit) { m_maxAsyncCallStacks = limit; } 95 void setMaxAsyncTaskStacksForTest(int limit) { m_maxAsyncCallStacks = limit; }
96 96
97 private: 97 private:
98 void compileDebuggerScript(); 98 void compileDebuggerScript();
99 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, 99 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName,
100 int argc, 100 int argc,
101 v8::Local<v8::Value> argv[]); 101 v8::Local<v8::Value> argv[],
102 bool catchExceptions);
102 v8::Local<v8::Context> debuggerContext() const; 103 v8::Local<v8::Context> debuggerContext() const;
103 void clearBreakpoints(); 104 void clearBreakpoints();
104 105
105 static void v8OOMCallback(void* data); 106 static void v8OOMCallback(void* data);
106 107
107 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); 108 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&);
108 void handleProgramBreak(v8::Local<v8::Context> pausedContext, 109 void handleProgramBreak(v8::Local<v8::Context> pausedContext,
109 v8::Local<v8::Object> executionState, 110 v8::Local<v8::Object> executionState,
110 v8::Local<v8::Value> exception, 111 v8::Local<v8::Value> exception,
111 v8::Local<v8::Array> hitBreakpoints, 112 v8::Local<v8::Array> hitBreakpoints,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; 177 v8::debug::ExceptionBreakState m_pauseOnExceptionsState;
177 178
178 WasmTranslation m_wasmTranslation; 179 WasmTranslation m_wasmTranslation;
179 180
180 DISALLOW_COPY_AND_ASSIGN(V8Debugger); 181 DISALLOW_COPY_AND_ASSIGN(V8Debugger);
181 }; 182 };
182 183
183 } // namespace v8_inspector 184 } // namespace v8_inspector
184 185
185 #endif // V8_INSPECTOR_V8DEBUGGER_H_ 186 #endif // V8_INSPECTOR_V8DEBUGGER_H_
OLDNEW
« no previous file with comments | « no previous file | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698