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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 void ensureDebuggerScriptCompiled(); | 134 void ensureDebuggerScriptCompiled(); |
135 void discardDebuggerScript(); | 135 void discardDebuggerScript(); |
136 | 136 |
137 PauseOnExceptionsState m_pauseOnExceptionsState; | 137 PauseOnExceptionsState m_pauseOnExceptionsState; |
138 ScopedPersistent<v8::Object> m_debuggerScript; | 138 ScopedPersistent<v8::Object> m_debuggerScript; |
139 v8::Local<v8::Object> m_executionState; | 139 v8::Local<v8::Object> m_executionState; |
140 RefPtr<ScriptState> m_pausedScriptState; | 140 RefPtr<ScriptState> m_pausedScriptState; |
141 bool m_breakpointsActivated; | 141 bool m_breakpointsActivated; |
142 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 142 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
143 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts; | 143 HashMap<String, OwnPtr<ScopedPersistent<v8::Script>>> m_compiledScripts; |
144 v8::Isolate* m_isolate; | 144 v8::Isolate* m_isolate; |
145 | 145 |
146 private: | 146 private: |
147 enum ScopeInfoDetails { | 147 enum ScopeInfoDetails { |
148 AllScopes, | 148 AllScopes, |
149 FastAsyncScopes, | 149 FastAsyncScopes, |
150 NoScopes // Should be the last option. | 150 NoScopes // Should be the last option. |
151 }; | 151 }; |
152 | 152 |
153 ScriptValue currentCallFramesInner(ScopeInfoDetails); | 153 ScriptValue currentCallFramesInner(ScopeInfoDetails); |
154 | 154 |
155 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit,
ScopeInfoDetails); | 155 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit,
ScopeInfoDetails); |
156 | 156 |
157 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 157 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
158 | 158 |
159 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 159 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
160 | 160 |
161 bool m_runningNestedMessageLoop; | 161 bool m_runningNestedMessageLoop; |
162 }; | 162 }; |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
165 | 165 |
166 | 166 |
167 #endif // ScriptDebugServer_h | 167 #endif // ScriptDebugServer_h |
OLD | NEW |