Closed Bug 1648449 Opened 4 years ago Closed 4 years ago

Redesign mLoadInfos handling in ScriptLoader

Categories

(Core :: DOM: Workers, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(8 files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

Currently, pairs of indexes and references to mLoadInfos elements are passed around, which is complex and error-prone. Essentially the index passing can be eliminated.

Depends on: 1648440
Depends on: 1648705
Attachment #9159257 - Attachment description: Bug 1648449 - Use Span for ScriptLoaderRunnable::mLoadInfos. r=#dom-workers-and-storage → Bug 1648449 - Use nsTArrayView for ScriptLoaderRunnable::mLoadInfos. r=#dom-workers-and-storage
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a1a0390cd1a1
Use nsTArrayView for ScriptLoaderRunnable::mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80

"leave-open" missing?

Keywords: leave-open
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: leave-open

(In reply to Takanori MATSUURA from comment #11)

"leave-open" missing?

Yes, thanks! (I removed it again now since I am now landing the remaining patches. I somehow accidentally landed the first one separately yesterday).

Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/54bee02abda4
Improve variable naming and comments related to script scheduling. r=asuth,dom-workers-and-storage-reviewers
https://hg.mozilla.org/integration/autoland/rev/a99208767bc1
Stop passing around indexes to mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/d174dd6c2822
Use range-based for for iterating mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/9ac5934bdea1
Pass Span instead of indexes to ScriptExecutorRunnable. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/ae9b646341ae
Remove intermediate conversion from iterators to indexes. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/1ebae06069e7
Use TransformIntoNewArray in Load. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/e5b9c33679ef
Use NotNull for CacheCreator::mLoaders. 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: