| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 106 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
| 107 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 107 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
| 108 virtual void quitMessageLoopOnPause() = 0; | 108 virtual void quitMessageLoopOnPause() = 0; |
| 109 | 109 |
| 110 static v8::Handle<v8::Value> breakProgramCallback(const v8::Arguments& args)
; | 110 static v8::Handle<v8::Value> breakProgramCallback(const v8::Arguments& args)
; |
| 111 void breakProgram(v8::Handle<v8::Object> executionState, v8::Handle<v8::Valu
e> exception); | 111 void breakProgram(v8::Handle<v8::Object> executionState, v8::Handle<v8::Valu
e> exception); |
| 112 | 112 |
| 113 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); | 113 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); |
| 114 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); | 114 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); |
| 115 | 115 |
| 116 void onAfterCompile(ScriptDebugListener* listener, const v8::Debug::EventDet
ails& eventDetails); |
| 116 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); | 117 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); |
| 117 | 118 |
| 118 void ensureDebuggerScriptCompiled(); | 119 void ensureDebuggerScriptCompiled(); |
| 119 | 120 |
| 120 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc,
v8::Handle<v8::Value> argv[]); | 121 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc,
v8::Handle<v8::Value> argv[]); |
| 121 | 122 |
| 122 String preprocessSourceCode(const String& sourceCode); | 123 String preprocessSourceCode(const String& sourceCode); |
| 123 | 124 |
| 124 PauseOnExceptionsState m_pauseOnExceptionsState; | 125 PauseOnExceptionsState m_pauseOnExceptionsState; |
| 125 ScopedPersistent<v8::Object> m_debuggerScript; | 126 ScopedPersistent<v8::Object> m_debuggerScript; |
| 126 ScopedPersistent<v8::Object> m_executionState; | 127 ScopedPersistent<v8::Object> m_executionState; |
| 127 v8::Local<v8::Context> m_pausedContext; | 128 v8::Local<v8::Context> m_pausedContext; |
| 128 bool m_breakpointsActivated; | 129 bool m_breakpointsActivated; |
| 129 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 130 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
| 130 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts; | 131 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts; |
| 131 | 132 |
| 132 private: | 133 private: |
| 133 class ScriptPreprocessor; | 134 class ScriptPreprocessor; |
| 134 OwnPtr<ScriptPreprocessor> m_scriptPreprocessor; | 135 OwnPtr<ScriptPreprocessor> m_scriptPreprocessor; |
| 135 bool m_runningNestedMessageLoop; | 136 bool m_runningNestedMessageLoop; |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace WebCore | 139 } // namespace WebCore |
| 139 | 140 |
| 140 | 141 |
| 141 #endif // ScriptDebugServer_h | 142 #endif // ScriptDebugServer_h |
| OLD | NEW |