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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 135 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
136 void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8::
Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hit
Breakpoints, bool isPromiseRejection = false); | 136 void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8::
Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hit
Breakpoints, bool isPromiseRejection = false); |
137 static void v8DebugEventCallback(const v8::Debug::EventDetails&); | 137 static void v8DebugEventCallback(const v8::Debug::EventDetails&); |
138 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); | 138 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); |
139 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 139 void handleV8DebugEvent(const v8::Debug::EventDetails&); |
140 | 140 |
141 v8::Local<v8::String> v8InternalizedString(const char*) const; | 141 v8::Local<v8::String> v8InternalizedString(const char*) const; |
142 | 142 |
143 void handleV8AsyncTaskEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8
::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); | 143 void handleV8AsyncTaskEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8
::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); |
| 144 bool installConsole(v8::Local<v8::Context>); |
144 | 145 |
145 v8::Isolate* m_isolate; | 146 v8::Isolate* m_isolate; |
146 V8DebuggerClient* m_client; | 147 V8DebuggerClient* m_client; |
147 using ContextsByGroupMap = protocol::HashMap<int, OwnPtr<ContextByIdMap>>; | 148 using ContextsByGroupMap = protocol::HashMap<int, OwnPtr<ContextByIdMap>>; |
148 ContextsByGroupMap m_contexts; | 149 ContextsByGroupMap m_contexts; |
149 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; | 150 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; |
150 SessionMap m_sessions; | 151 SessionMap m_sessions; |
151 int m_enabledAgentsCount; | 152 int m_enabledAgentsCount; |
152 bool m_breakpointsActivated; | 153 bool m_breakpointsActivated; |
153 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 154 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
154 v8::Global<v8::Object> m_debuggerScript; | 155 v8::Global<v8::Object> m_debuggerScript; |
155 v8::Global<v8::Context> m_debuggerContext; | 156 v8::Global<v8::Context> m_debuggerContext; |
156 v8::Local<v8::Object> m_executionState; | 157 v8::Local<v8::Object> m_executionState; |
157 v8::Local<v8::Context> m_pausedContext; | 158 v8::Local<v8::Context> m_pausedContext; |
158 bool m_runningNestedMessageLoop; | 159 bool m_runningNestedMessageLoop; |
159 v8::Global<v8::Context> m_regexContext; | 160 v8::Global<v8::Context> m_regexContext; |
160 }; | 161 }; |
161 | 162 |
162 } // namespace blink | 163 } // namespace blink |
163 | 164 |
164 | 165 |
165 #endif // V8DebuggerImpl_h | 166 #endif // V8DebuggerImpl_h |
OLD | NEW |