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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 protected: | 113 protected: |
114 explicit ScriptDebugServer(v8::Isolate*); | 114 explicit ScriptDebugServer(v8::Isolate*); |
115 virtual ~ScriptDebugServer(); | 115 virtual ~ScriptDebugServer(); |
116 | 116 |
117 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 117 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
118 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 118 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
119 virtual void quitMessageLoopOnPause() = 0; | 119 virtual void quitMessageLoopOnPause() = 0; |
120 | 120 |
121 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 121 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
122 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints); | 122 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints, bool isPromiseRejection = false); |
123 | 123 |
124 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); | 124 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); |
125 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); | 125 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); |
126 | 126 |
127 void dispatchDidParseSource(ScriptDebugListener*, v8::Handle<v8::Object> sou
rceObject, CompileResult); | 127 void dispatchDidParseSource(ScriptDebugListener*, v8::Handle<v8::Object> sou
rceObject, CompileResult); |
128 | 128 |
129 void ensureDebuggerScriptCompiled(); | 129 void ensureDebuggerScriptCompiled(); |
130 void discardDebuggerScript(); | 130 void discardDebuggerScript(); |
131 | 131 |
132 PauseOnExceptionsState m_pauseOnExceptionsState; | 132 PauseOnExceptionsState m_pauseOnExceptionsState; |
(...skipping 20 matching lines...) Expand all Loading... |
153 | 153 |
154 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 154 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
155 | 155 |
156 bool m_runningNestedMessageLoop; | 156 bool m_runningNestedMessageLoop; |
157 }; | 157 }; |
158 | 158 |
159 } // namespace blink | 159 } // namespace blink |
160 | 160 |
161 | 161 |
162 #endif // ScriptDebugServer_h | 162 #endif // ScriptDebugServer_h |
OLD | NEW |