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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void breakProgram(); | 98 void breakProgram(); |
99 void continueProgram(); | 99 void continueProgram(); |
100 void stepIntoStatement(); | 100 void stepIntoStatement(); |
101 void stepOverStatement(); | 101 void stepOverStatement(); |
102 void stepOutOfFunction(); | 102 void stepOutOfFunction(); |
103 void clearStepping(); | 103 void clearStepping(); |
104 | 104 |
105 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceError>&, Sc
riptValue* newCallFrames, RefPtr<JSONObject>* result); | 105 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceError>&, Sc
riptValue* newCallFrames, RefPtr<JSONObject>* result); |
106 ScriptValue currentCallFrames(); | 106 ScriptValue currentCallFrames(); |
107 ScriptValue currentCallFramesForAsyncStack(); | 107 ScriptValue currentCallFramesForAsyncStack(); |
108 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> callFrameNoScopes(int index); | 108 PassRefPtr<JavaScriptCallFrame> callFrameNoScopes(int index); |
109 int frameCount(); | 109 int frameCount(); |
110 | 110 |
111 static PassRefPtrWillBeRawPtr<JavaScriptCallFrame> toJavaScriptCallFrameUnsa
fe(const ScriptValue&); | 111 static PassRefPtr<JavaScriptCallFrame> toJavaScriptCallFrameUnsafe(const Scr
iptValue&); |
112 | 112 |
113 bool isPaused(); | 113 bool isPaused(); |
114 | 114 |
115 v8::Local<v8::Value> functionScopes(v8::Local<v8::Function>); | 115 v8::Local<v8::Value> functionScopes(v8::Local<v8::Function>); |
116 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); | 116 v8::Local<v8::Value> generatorObjectDetails(v8::Local<v8::Object>&); |
117 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); | 117 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Object>&); |
118 v8::MaybeLocal<v8::Value> setFunctionVariableValue(v8::Local<v8::Value> func
tionValue, int scopeNumber, const String& variableName, v8::Local<v8::Value> new
Value); | 118 v8::MaybeLocal<v8::Value> setFunctionVariableValue(v8::Local<v8::Value> func
tionValue, int scopeNumber, const String& variableName, v8::Local<v8::Value> new
Value); |
119 | 119 |
120 v8::Isolate* isolate() const { return m_isolate; } | 120 v8::Isolate* isolate() const { return m_isolate; } |
121 | 121 |
(...skipping 15 matching lines...) Expand all Loading... |
137 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 137 void handleV8DebugEvent(const v8::Debug::EventDetails&); |
138 | 138 |
139 v8::Local<v8::String> v8InternalizedString(const char*) const; | 139 v8::Local<v8::String> v8InternalizedString(const char*) const; |
140 | 140 |
141 enum ScopeInfoDetails { | 141 enum ScopeInfoDetails { |
142 AllScopes, | 142 AllScopes, |
143 FastAsyncScopes, | 143 FastAsyncScopes, |
144 NoScopes // Should be the last option. | 144 NoScopes // Should be the last option. |
145 }; | 145 }; |
146 ScriptValue currentCallFramesInner(ScopeInfoDetails); | 146 ScriptValue currentCallFramesInner(ScopeInfoDetails); |
147 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit,
ScopeInfoDetails); | 147 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit, ScopeInfoDe
tails); |
148 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); | 148 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); |
149 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); | 149 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); |
150 | 150 |
151 v8::Isolate* m_isolate; | 151 v8::Isolate* m_isolate; |
152 Client* m_client; | 152 Client* m_client; |
153 bool m_breakpointsActivated; | 153 bool m_breakpointsActivated; |
154 v8::UniquePersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 154 v8::UniquePersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
155 v8::UniquePersistent<v8::Object> m_debuggerScript; | 155 v8::UniquePersistent<v8::Object> m_debuggerScript; |
156 v8::UniquePersistent<v8::Context> m_debuggerContext; | 156 v8::UniquePersistent<v8::Context> m_debuggerContext; |
157 v8::UniquePersistent<v8::FunctionTemplate> m_callFrameWrapperTemplate; | 157 v8::UniquePersistent<v8::FunctionTemplate> m_callFrameWrapperTemplate; |
158 v8::Local<v8::Object> m_executionState; | 158 v8::Local<v8::Object> m_executionState; |
159 RefPtr<ScriptState> m_pausedScriptState; | 159 RefPtr<ScriptState> m_pausedScriptState; |
160 bool m_runningNestedMessageLoop; | 160 bool m_runningNestedMessageLoop; |
161 }; | 161 }; |
162 | 162 |
163 } // namespace blink | 163 } // namespace blink |
164 | 164 |
165 | 165 |
166 #endif // V8Debugger_h | 166 #endif // V8Debugger_h |
OLD | NEW |