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

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

Issue 1038603002: DevTools: use v8::Isolate::RequestInterrupt instead of v8::Debug::DebugBreakForCommand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/core/v8/ScriptDebugServer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour ceObject, CompileResult); 135 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour ceObject, CompileResult);
136 136
137 void ensureDebuggerScriptCompiled(); 137 void ensureDebuggerScriptCompiled();
138 void discardDebuggerScript(); 138 void discardDebuggerScript();
139 v8::Local<v8::Object> debuggerScriptLocal() const; 139 v8::Local<v8::Object> debuggerScriptLocal() const;
140 140
141 v8::Isolate* m_isolate; 141 v8::Isolate* m_isolate;
142 142
143 private: 143 private:
144 static void v8InterruptCallback(v8::Isolate*, void*);
144 static void v8DebugEventCallback(const v8::Debug::EventDetails&); 145 static void v8DebugEventCallback(const v8::Debug::EventDetails&);
145 void handleV8DebugEvent(const v8::Debug::EventDetails&); 146 void handleV8DebugEvent(const v8::Debug::EventDetails&);
146 147
147 v8::Local<v8::String> v8InternalizedString(const char*) const; 148 v8::Local<v8::String> v8InternalizedString(const char*) const;
148 149
149 enum ScopeInfoDetails { 150 enum ScopeInfoDetails {
150 AllScopes, 151 AllScopes,
151 FastAsyncScopes, 152 FastAsyncScopes,
152 NoScopes // Should be the last option. 153 NoScopes // Should be the last option.
153 }; 154 };
154 ScriptValue currentCallFramesInner(ScopeInfoDetails); 155 ScriptValue currentCallFramesInner(ScopeInfoDetails);
155 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit, ScopeInfoDetails); 156 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit, ScopeInfoDetails);
156 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS tate, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); 157 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS tate, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData);
157 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); 158 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData);
158 159
159 bool m_breakpointsActivated; 160 bool m_breakpointsActivated;
160 V8PersistentValueMap<String, v8::Script, false> m_compiledScripts; 161 V8PersistentValueMap<String, v8::Script, false> m_compiledScripts;
161 v8::UniquePersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; 162 v8::UniquePersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate;
162 v8::UniquePersistent<v8::Object> m_debuggerScript; 163 v8::UniquePersistent<v8::Object> m_debuggerScript;
163 v8::Local<v8::Object> m_executionState; 164 v8::Local<v8::Object> m_executionState;
164 RefPtr<ScriptState> m_pausedScriptState; 165 RefPtr<ScriptState> m_pausedScriptState;
165 bool m_runningNestedMessageLoop; 166 bool m_runningNestedMessageLoop;
167 class ThreadSafeTaskQueue;
168 OwnPtr<ThreadSafeTaskQueue> m_taskQueue;
166 }; 169 };
167 170
168 } // namespace blink 171 } // namespace blink
169 172
170 173
171 #endif // ScriptDebugServer_h 174 #endif // ScriptDebugServer_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/ScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698