Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: Source/WebCore/bindings/v8/ScriptDebugServer.h

Issue 9375012: Merge 106662 - inspector/debugger/pause-in-inline-script.html asserts in chromium debug (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void recompileAllJSFunctions(Timer<ScriptDebugServer>* = 0) { } 85 void recompileAllJSFunctions(Timer<ScriptDebugServer>* = 0) { }
86 86
87 class Task { 87 class Task {
88 public: 88 public:
89 virtual ~Task() { } 89 virtual ~Task() { }
90 virtual void run() = 0; 90 virtual void run() = 0;
91 }; 91 };
92 static void interruptAndRun(PassOwnPtr<Task>); 92 static void interruptAndRun(PassOwnPtr<Task>);
93 void runPendingTasks(); 93 void runPendingTasks();
94 94
95 bool isPaused();
96
95 protected: 97 protected:
96 ScriptDebugServer(); 98 ScriptDebugServer();
97 ~ScriptDebugServer() { } 99 ~ScriptDebugServer() { }
98 100
99 ScriptValue currentCallFrame(); 101 ScriptValue currentCallFrame();
100 102
101 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0; 103 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0;
102 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; 104 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0;
103 virtual void quitMessageLoopOnPause() = 0; 105 virtual void quitMessageLoopOnPause() = 0;
104 106
105 static v8::Handle<v8::Value> breakProgramCallback(const v8::Arguments& args) ; 107 static v8::Handle<v8::Value> breakProgramCallback(const v8::Arguments& args) ;
106 void breakProgram(v8::Handle<v8::Object> executionState, v8::Handle<v8::Valu e> exception); 108 void breakProgram(v8::Handle<v8::Object> executionState, v8::Handle<v8::Valu e> exception);
107 109
108 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails ); 110 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails );
109 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); 111 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails);
110 112
111 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob ject> sourceObject); 113 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob ject> sourceObject);
112 114
113 void ensureDebuggerScriptCompiled(); 115 void ensureDebuggerScriptCompiled();
114 116
115 bool isPaused();
116
117 PauseOnExceptionsState m_pauseOnExceptionsState; 117 PauseOnExceptionsState m_pauseOnExceptionsState;
118 OwnHandle<v8::Object> m_debuggerScript; 118 OwnHandle<v8::Object> m_debuggerScript;
119 OwnHandle<v8::Object> m_executionState; 119 OwnHandle<v8::Object> m_executionState;
120 v8::Local<v8::Context> m_pausedContext; 120 v8::Local<v8::Context> m_pausedContext;
121 121
122 bool m_breakpointsActivated; 122 bool m_breakpointsActivated;
123 OwnHandle<v8::FunctionTemplate> m_breakProgramCallbackTemplate; 123 OwnHandle<v8::FunctionTemplate> m_breakProgramCallbackTemplate;
124 }; 124 };
125 125
126 } // namespace WebCore 126 } // namespace WebCore
127 127
128 #endif // ENABLE(JAVASCRIPT_DEBUGGER) 128 #endif // ENABLE(JAVASCRIPT_DEBUGGER)
129 129
130 #endif // ScriptDebugServer_h 130 #endif // ScriptDebugServer_h
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/js/ScriptDebugServer.h ('k') | Source/WebCore/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698