| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 protected: | 124 protected: |
| 125 explicit ScriptDebugServer(v8::Isolate*); | 125 explicit ScriptDebugServer(v8::Isolate*); |
| 126 | 126 |
| 127 virtual void clearCompiledScripts(); | 127 virtual void clearCompiledScripts(); |
| 128 | 128 |
| 129 virtual ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Contex
t>) = 0; | 129 virtual ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Contex
t>) = 0; |
| 130 virtual void runMessageLoopOnPause(v8::Local<v8::Context>) = 0; | 130 virtual void runMessageLoopOnPause(v8::Local<v8::Context>) = 0; |
| 131 virtual void quitMessageLoopOnPause() = 0; | 131 virtual void quitMessageLoopOnPause() = 0; |
| 132 | 132 |
| 133 private: | 133 private: |
| 134 void ensureDebuggerScriptCompiled(); | 134 void compileDebuggerScript(); |
| 135 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a
rgc, v8::Local<v8::Value> argv[]); | 135 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a
rgc, v8::Local<v8::Value> argv[]); |
| 136 v8::Local<v8::Object> debuggerScriptLocal() const; | 136 v8::Local<v8::Object> debuggerScriptLocal() const; |
| 137 void clearBreakpoints(); | 137 void clearBreakpoints(); |
| 138 | 138 |
| 139 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour
ceObject, CompileResult); | 139 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour
ceObject, CompileResult); |
| 140 | 140 |
| 141 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 141 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
| 142 void handleProgramBreak(ScriptState* pausedScriptState, v8::Local<v8::Object
> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakp
oints, bool isPromiseRejection = false); | 142 void handleProgramBreak(ScriptState* pausedScriptState, v8::Local<v8::Object
> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakp
oints, bool isPromiseRejection = false); |
| 143 static void v8InterruptCallback(v8::Isolate*, void*); | 143 static void v8InterruptCallback(v8::Isolate*, void*); |
| 144 static void v8DebugEventCallback(const v8::Debug::EventDetails&); | 144 static void v8DebugEventCallback(const v8::Debug::EventDetails&); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 166 RefPtr<ScriptState> m_pausedScriptState; | 166 RefPtr<ScriptState> m_pausedScriptState; |
| 167 bool m_runningNestedMessageLoop; | 167 bool m_runningNestedMessageLoop; |
| 168 class ThreadSafeTaskQueue; | 168 class ThreadSafeTaskQueue; |
| 169 OwnPtr<ThreadSafeTaskQueue> m_taskQueue; | 169 OwnPtr<ThreadSafeTaskQueue> m_taskQueue; |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 } // namespace blink | 172 } // namespace blink |
| 173 | 173 |
| 174 | 174 |
| 175 #endif // ScriptDebugServer_h | 175 #endif // ScriptDebugServer_h |
| OLD | NEW |