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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 131 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
132 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); | 132 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); |
133 static void v8DebugEventCallback(const v8::Debug::EventDetails&); | 133 static void v8DebugEventCallback(const v8::Debug::EventDetails&); |
134 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); | 134 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const
char* functionName); |
135 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 135 void handleV8DebugEvent(const v8::Debug::EventDetails&); |
136 | 136 |
137 v8::Local<v8::String> v8InternalizedString(const char*) const; | 137 v8::Local<v8::String> v8InternalizedString(const char*) const; |
138 | 138 |
139 void handleV8AsyncTaskEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8
::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); | 139 void handleV8AsyncTaskEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8
::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); |
140 void handleV8PromiseEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8::
Local<v8::Object> executionState, v8::Local<v8::Object> eventData); | |
141 | 140 |
142 v8::Isolate* m_isolate; | 141 v8::Isolate* m_isolate; |
143 V8DebuggerClient* m_client; | 142 V8DebuggerClient* m_client; |
144 using DebuggerAgentsMap = protocol::HashMap<int, V8DebuggerAgentImpl*>; | 143 using DebuggerAgentsMap = protocol::HashMap<int, V8DebuggerAgentImpl*>; |
145 DebuggerAgentsMap m_debuggerAgentsMap; | 144 DebuggerAgentsMap m_debuggerAgentsMap; |
146 using RuntimeAgentsMap = protocol::HashMap<int, V8RuntimeAgentImpl*>; | 145 using RuntimeAgentsMap = protocol::HashMap<int, V8RuntimeAgentImpl*>; |
147 RuntimeAgentsMap m_runtimeAgentsMap; | 146 RuntimeAgentsMap m_runtimeAgentsMap; |
148 bool m_breakpointsActivated; | 147 bool m_breakpointsActivated; |
149 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 148 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
150 v8::Global<v8::Object> m_debuggerScript; | 149 v8::Global<v8::Object> m_debuggerScript; |
151 v8::Global<v8::Context> m_debuggerContext; | 150 v8::Global<v8::Context> m_debuggerContext; |
152 v8::Local<v8::Object> m_executionState; | 151 v8::Local<v8::Object> m_executionState; |
153 v8::Local<v8::Context> m_pausedContext; | 152 v8::Local<v8::Context> m_pausedContext; |
154 bool m_runningNestedMessageLoop; | 153 bool m_runningNestedMessageLoop; |
155 v8::Global<v8::Context> m_regexContext; | 154 v8::Global<v8::Context> m_regexContext; |
156 }; | 155 }; |
157 | 156 |
158 } // namespace blink | 157 } // namespace blink |
159 | 158 |
160 | 159 |
161 #endif // V8DebuggerImpl_h | 160 #endif // V8DebuggerImpl_h |
OLD | NEW |