| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-2011 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 inspectedContext); | 253 inspectedContext); |
| 254 discardInspectedContext(contextGroupId, contextId); | 254 discardInspectedContext(contextGroupId, contextId); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void V8InspectorImpl::resetContextGroup(int contextGroupId) { | 257 void V8InspectorImpl::resetContextGroup(int contextGroupId) { |
| 258 m_consoleStorageMap.erase(contextGroupId); | 258 m_consoleStorageMap.erase(contextGroupId); |
| 259 m_muteExceptionsMap.erase(contextGroupId); | 259 m_muteExceptionsMap.erase(contextGroupId); |
| 260 SessionMap::iterator session = m_sessions.find(contextGroupId); | 260 SessionMap::iterator session = m_sessions.find(contextGroupId); |
| 261 if (session != m_sessions.end()) session->second->reset(); | 261 if (session != m_sessions.end()) session->second->reset(); |
| 262 m_contexts.erase(contextGroupId); | 262 m_contexts.erase(contextGroupId); |
| 263 m_debugger->wasmTranslation()->Clear(); |
| 263 } | 264 } |
| 264 | 265 |
| 265 void V8InspectorImpl::willExecuteScript(v8::Local<v8::Context> context, | 266 void V8InspectorImpl::willExecuteScript(v8::Local<v8::Context> context, |
| 266 int scriptId) { | 267 int scriptId) { |
| 267 if (V8DebuggerAgentImpl* agent = | 268 if (V8DebuggerAgentImpl* agent = |
| 268 enabledDebuggerAgentForGroup(V8Debugger::getGroupId(context))) | 269 enabledDebuggerAgentForGroup(V8Debugger::getGroupId(context))) |
| 269 agent->willExecuteScript(scriptId); | 270 agent->willExecuteScript(scriptId); |
| 270 } | 271 } |
| 271 | 272 |
| 272 void V8InspectorImpl::didExecuteScript(v8::Local<v8::Context> context) { | 273 void V8InspectorImpl::didExecuteScript(v8::Local<v8::Context> context) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 368 } |
| 368 | 369 |
| 369 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( | 370 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( |
| 370 int contextGroupId) { | 371 int contextGroupId) { |
| 371 if (!contextGroupId) return nullptr; | 372 if (!contextGroupId) return nullptr; |
| 372 SessionMap::iterator iter = m_sessions.find(contextGroupId); | 373 SessionMap::iterator iter = m_sessions.find(contextGroupId); |
| 373 return iter == m_sessions.end() ? nullptr : iter->second; | 374 return iter == m_sessions.end() ? nullptr : iter->second; |
| 374 } | 375 } |
| 375 | 376 |
| 376 } // namespace v8_inspector | 377 } // namespace v8_inspector |
| OLD | NEW |