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