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