| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 void V8PerIsolateData::addEndOfScopeTask(PassOwnPtr<EndOfScopeTask> task) | 252 void V8PerIsolateData::addEndOfScopeTask(PassOwnPtr<EndOfScopeTask> task) |
| 253 { | 253 { |
| 254 m_endOfScopeTasks.append(task); | 254 m_endOfScopeTasks.append(task); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void V8PerIsolateData::runEndOfScopeTasks() | 257 void V8PerIsolateData::runEndOfScopeTasks() |
| 258 { | 258 { |
| 259 Vector<OwnPtr<EndOfScopeTask>> tasks; | 259 Vector<OwnPtr<EndOfScopeTask>> tasks; |
| 260 tasks.swap(m_endOfScopeTasks); | 260 tasks.swap(m_endOfScopeTasks); |
| 261 for (const auto& task : tasks) | 261 for (const auto& task : tasks) |
| 262 task->Run(); | 262 task->run(); |
| 263 ASSERT(m_endOfScopeTasks.isEmpty()); | 263 ASSERT(m_endOfScopeTasks.isEmpty()); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void V8PerIsolateData::clearEndOfScopeTasks() | 266 void V8PerIsolateData::clearEndOfScopeTasks() |
| 267 { | 267 { |
| 268 m_endOfScopeTasks.clear(); | 268 m_endOfScopeTasks.clear(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace blink | 271 } // namespace blink |
| OLD | NEW |