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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 explicit ScriptDebugServer(v8::Isolate*); | 101 explicit ScriptDebugServer(v8::Isolate*); |
102 virtual ~ScriptDebugServer(); | 102 virtual ~ScriptDebugServer(); |
103 | 103 |
104 ScriptValue currentCallFrame(); | 104 ScriptValue currentCallFrame(); |
105 | 105 |
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, v8::Handle<v8::Array> hitBreakpoints); |
| 112 void breakProgram(const v8::Debug::EventDetails&, v8::Handle<v8::Value> exce
ption, v8::Handle<v8::Array> hitBreakpointNumbers); |
112 | 113 |
113 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); | 114 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); |
114 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); | 115 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); |
115 | 116 |
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 |
(...skipping 11 matching lines...) Expand all Loading... |
133 private: | 134 private: |
134 class ScriptPreprocessor; | 135 class ScriptPreprocessor; |
135 OwnPtr<ScriptPreprocessor> m_scriptPreprocessor; | 136 OwnPtr<ScriptPreprocessor> m_scriptPreprocessor; |
136 bool m_runningNestedMessageLoop; | 137 bool m_runningNestedMessageLoop; |
137 }; | 138 }; |
138 | 139 |
139 } // namespace WebCore | 140 } // namespace WebCore |
140 | 141 |
141 | 142 |
142 #endif // ScriptDebugServer_h | 143 #endif // ScriptDebugServer_h |
OLD | NEW |