Closed Bug 1648440 Opened 5 years ago Closed 5 years ago

Various cleanups of dom/workers code

Categories

(Core :: DOM: Workers, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(7 files)

No description provided.

Replace BROADCAST_ALL_WORKERS macro by a BroadcastAllWorkers member function.

Use RemoveIf instead of custom for loop.

Use range-based for where possible.

Use std::transform to transform an array into another instead of custom for loop.

Use std::copy_if for conditional copy of an array into another instead of custom for loop.

Blocks: 1648449
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1c6ad132f93e Cleanup/simplify some loops in RuntimeService. r=dom-workers-and-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/40cb2e9b3650 Use std::find_if and IIFE instead of custom loops in ScriptLoader. r=dom-workers-and-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/946bbe49fcae Use range-based for in WorkerDebugger where possible. r=dom-workers-and-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/cc657f7e9008 Use range-based for in WorkerDebuggerManager. r=dom-workers-and-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/14e580887ae2 Use TransformIntoNewArray and range-based for in WorkerError. r=dom-workers-and-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/23f3be9f84e5 Use TransformIntoNewArray in RemoteWorkerChild. r=dom-workers-and-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/f759e3fa6b6c Remove unused return value from Queue::Push. r=dom-workers-and-storage-reviewers,asuth
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: