OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 virtual void breakProgram(); | 187 virtual void breakProgram(); |
188 virtual void continueProgram(); | 188 virtual void continueProgram(); |
189 virtual void stepIntoStatement(); | 189 virtual void stepIntoStatement(); |
190 virtual void stepOverStatement(); | 190 virtual void stepOverStatement(); |
191 virtual void stepOutOfFunction(); | 191 virtual void stepOutOfFunction(); |
192 | 192 |
193 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); | 193 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); |
194 virtual ScriptCallFrame topCallFrameNoScopes(); | 194 virtual ScriptCallFrame topCallFrameNoScopes(); |
195 virtual int frameCount(); | 195 virtual int frameCount(); |
196 virtual StackTrace currentCallFrames(); | 196 virtual StackTrace currentCallFrames(); |
197 virtual StackTrace currentCallFramesForVm(); | |
rmacnak
2014/08/14 23:21:08
currentStackWithForeignFrames, currentStackWithout
Jacob
2014/08/15 16:23:01
In response to vsm's comments I refactored the CL
| |
197 virtual StackTrace currentCallFramesForAsyncStack(); | 198 virtual StackTrace currentCallFramesForAsyncStack(); |
198 | 199 |
199 virtual bool isPaused(); | 200 virtual bool isPaused(); |
200 virtual bool runningNestedMessageLoop() { return m_runningNestedMessageLoop; } | 201 virtual bool runningNestedMessageLoop() { return m_runningNestedMessageLoop; } |
201 | 202 |
202 virtual void clearCompiledScripts(); | 203 virtual void clearCompiledScripts(); |
203 virtual void setPreprocessorSource(const String&); | 204 virtual void setPreprocessorSource(const String&); |
204 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou rceCode&); | 205 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou rceCode&); |
205 virtual String preprocessEventListener(LocalFrame*, const String& source, co nst String& url, const String& functionName); | 206 virtual String preprocessEventListener(LocalFrame*, const String& source, co nst String& url, const String& functionName); |
206 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); | 207 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 void cancelDebugBreak(); | 243 void cancelDebugBreak(); |
243 Page* inferPage(Dart_Isolate); | 244 Page* inferPage(Dart_Isolate); |
244 | 245 |
245 Vector<Dart_Isolate> isolates(); | 246 Vector<Dart_Isolate> isolates(); |
246 Vector<DartPageDebug*> pages(); | 247 Vector<DartPageDebug*> pages(); |
247 | 248 |
248 ScriptDebugServer::PauseOnExceptionsState m_pauseOnExceptionState; | 249 ScriptDebugServer::PauseOnExceptionsState m_pauseOnExceptionState; |
249 bool m_breakpointsActivated; | 250 bool m_breakpointsActivated; |
250 bool m_runningNestedMessageLoop; | 251 bool m_runningNestedMessageLoop; |
251 Dart_StackTrace m_executionState; | 252 Dart_StackTrace m_executionState; |
253 bool m_isPaused; | |
252 Dart_Isolate m_pausedIsolate; | 254 Dart_Isolate m_pausedIsolate; |
253 Page* m_pausedPage; | 255 Page* m_pausedPage; |
254 HashSet<Dart_Isolate> m_interruptCalled; | 256 HashSet<Dart_Isolate> m_interruptCalled; |
255 HashSet<Dart_Isolate> m_interruptCancelled; | 257 HashSet<Dart_Isolate> m_interruptCancelled; |
256 | 258 |
257 typedef HashMap<int, DartPageDebug*> DebugDataMap; | 259 typedef HashMap<int, DartPageDebug*> DebugDataMap; |
258 DebugDataMap m_pageIdToDebugDataMap; | 260 DebugDataMap m_pageIdToDebugDataMap; |
259 typedef HashMap<Page*, int> PageToIdMap; | 261 typedef HashMap<Page*, int> PageToIdMap; |
260 PageToIdMap m_pageToIdMap; | 262 PageToIdMap m_pageToIdMap; |
261 | 263 |
(...skipping 26 matching lines...) Expand all Loading... | |
288 virtual void continueProgram(); | 290 virtual void continueProgram(); |
289 virtual void stepIntoStatement(); | 291 virtual void stepIntoStatement(); |
290 virtual void stepOverStatement(); | 292 virtual void stepOverStatement(); |
291 virtual void stepOutOfFunction(); | 293 virtual void stepOutOfFunction(); |
292 | 294 |
293 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); | 295 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); |
294 | 296 |
295 virtual ScriptCallFrame topCallFrameNoScopes(); | 297 virtual ScriptCallFrame topCallFrameNoScopes(); |
296 virtual int frameCount(); | 298 virtual int frameCount(); |
297 virtual StackTrace currentCallFrames(); | 299 virtual StackTrace currentCallFrames(); |
300 virtual StackTrace currentCallFramesForVm(); | |
298 virtual StackTrace currentCallFramesForAsyncStack(); | 301 virtual StackTrace currentCallFramesForAsyncStack(); |
299 | 302 |
300 virtual bool isPaused(); | 303 virtual bool isPaused(); |
301 virtual bool runningNestedMessageLoop(); | 304 virtual bool runningNestedMessageLoop(); |
302 | 305 |
303 virtual void clearCompiledScripts(); | 306 virtual void clearCompiledScripts(); |
304 virtual void setPreprocessorSource(const String&); | 307 virtual void setPreprocessorSource(const String&); |
305 | 308 |
306 // FIXMEDART: this signature is v8 specific. | 309 // FIXMEDART: this signature is v8 specific. |
307 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&); | 310 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&); |
(...skipping 13 matching lines...) Expand all Loading... | |
321 | 324 |
322 bool isDartSourceID(const String& sourceID); | 325 bool isDartSourceID(const String& sourceID); |
323 bool isDartBreakpointId(const String& breakpointId); | 326 bool isDartBreakpointId(const String& breakpointId); |
324 DartScriptDebugServer* m_dart; | 327 DartScriptDebugServer* m_dart; |
325 PageScriptDebugServer* m_v8; | 328 PageScriptDebugServer* m_v8; |
326 }; | 329 }; |
327 | 330 |
328 } | 331 } |
329 | 332 |
330 #endif // DartScriptDebugServer_h | 333 #endif // DartScriptDebugServer_h |
OLD | NEW |