OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 DCHECK(!m_workerThreads.contains(workerContextGroupId)); | 99 DCHECK(!m_workerThreads.contains(workerContextGroupId)); |
100 m_workerThreads.add(workerContextGroupId, workerThread); | 100 m_workerThreads.add(workerContextGroupId, workerThread); |
101 } | 101 } |
102 | 102 |
103 void WorkerThreadDebugger::contextWillBeDestroyed( | 103 void WorkerThreadDebugger::contextWillBeDestroyed( |
104 WorkerThread* workerThread, | 104 WorkerThread* workerThread, |
105 v8::Local<v8::Context> context) { | 105 v8::Local<v8::Context> context) { |
106 int workerContextGroupId = contextGroupId(workerThread); | 106 int workerContextGroupId = contextGroupId(workerThread); |
107 DCHECK(m_workerThreads.contains(workerContextGroupId)); | 107 DCHECK(m_workerThreads.contains(workerContextGroupId)); |
108 m_workerThreads.remove(workerContextGroupId); | 108 m_workerThreads.erase(workerContextGroupId); |
109 v8Inspector()->contextDestroyed(context); | 109 v8Inspector()->contextDestroyed(context); |
110 } | 110 } |
111 | 111 |
112 void WorkerThreadDebugger::exceptionThrown(WorkerThread* workerThread, | 112 void WorkerThreadDebugger::exceptionThrown(WorkerThread* workerThread, |
113 ErrorEvent* event) { | 113 ErrorEvent* event) { |
114 workerThread->workerReportingProxy().reportConsoleMessage( | 114 workerThread->workerReportingProxy().reportConsoleMessage( |
115 JSMessageSource, ErrorMessageLevel, event->messageForConsole(), | 115 JSMessageSource, ErrorMessageLevel, event->messageForConsole(), |
116 event->location()); | 116 event->location()); |
117 | 117 |
118 const String defaultMessage = "Uncaught"; | 118 const String defaultMessage = "Uncaught"; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 | 218 |
219 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo( | 219 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo( |
220 v8::Isolate*, | 220 v8::Isolate*, |
221 v8::Local<v8::Context>) { | 221 v8::Local<v8::Context>) { |
222 ASSERT_NOT_REACHED(); | 222 ASSERT_NOT_REACHED(); |
223 return v8::MaybeLocal<v8::Value>(); | 223 return v8::MaybeLocal<v8::Value>(); |
224 } | 224 } |
225 | 225 |
226 } // namespace blink | 226 } // namespace blink |
OLD | NEW |