| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual void quitMessageLoopOnPause() = 0; | 117 virtual void quitMessageLoopOnPause() = 0; |
| 118 | 118 |
| 119 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 119 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
| 120 void handleProgramBreak(v8::Handle<v8::Object> executionState, v8::Handle<v8
::Value> exception, v8::Handle<v8::Array> hitBreakpoints); | 120 void handleProgramBreak(v8::Handle<v8::Object> executionState, v8::Handle<v8
::Value> exception, v8::Handle<v8::Array> hitBreakpoints); |
| 121 void handleProgramBreak(const v8::Debug::EventDetails&, v8::Handle<v8::Value
> exception, v8::Handle<v8::Array> hitBreakpointNumbers); | 121 void handleProgramBreak(const v8::Debug::EventDetails&, v8::Handle<v8::Value
> exception, v8::Handle<v8::Array> hitBreakpointNumbers); |
| 122 | 122 |
| 123 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); | 123 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); |
| 124 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); | 124 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); |
| 125 | 125 |
| 126 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); | 126 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); |
| 127 void dispatchFailedToParseSource(ScriptDebugListener*, v8::Handle<v8::Object
> sourceObject); |
| 127 | 128 |
| 128 void ensureDebuggerScriptCompiled(); | 129 void ensureDebuggerScriptCompiled(); |
| 129 | 130 |
| 130 PauseOnExceptionsState m_pauseOnExceptionsState; | 131 PauseOnExceptionsState m_pauseOnExceptionsState; |
| 131 ScopedPersistent<v8::Object> m_debuggerScript; | 132 ScopedPersistent<v8::Object> m_debuggerScript; |
| 132 ScopedPersistent<v8::Object> m_executionState; | 133 ScopedPersistent<v8::Object> m_executionState; |
| 133 v8::Handle<v8::Context> m_pausedContext; | 134 v8::Handle<v8::Context> m_pausedContext; |
| 134 bool m_breakpointsActivated; | 135 bool m_breakpointsActivated; |
| 135 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 136 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
| 136 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts; | 137 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 149 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut
ionState, int maximumLimit, ScopeInfoDetails); | 150 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut
ionState, int maximumLimit, ScopeInfoDetails); |
| 150 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand
le<v8::Object> executionState); | 151 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand
le<v8::Object> executionState); |
| 151 | 152 |
| 152 bool m_runningNestedMessageLoop; | 153 bool m_runningNestedMessageLoop; |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace WebCore | 156 } // namespace WebCore |
| 156 | 157 |
| 157 | 158 |
| 158 #endif // ScriptDebugServer_h | 159 #endif // ScriptDebugServer_h |
| OLD | NEW |