Commit Graph
8 Commits
Author SHA1 Message Date
Bryan Thrall a87ca57c2d Bug 1757833 - Add Profiler markers to track compression cost r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D144738
2022-05-18 21:03:49 +00:00
Bryan Thrall 53928ef514 Bug 1757833 - Add browser.cache.jsbc_compression_level static preference r=nbp
This simplifies profiling since now we can see the results within a single build
based on the preference (though there is still a slight cost to copying the
bytecode).

Setting to (the default) 0 disables compression.

Differential Revision: https://phabricator.services.mozilla.com/D144737
2022-05-18 21:03:48 +00:00
Bryan Thrall 55ed1fd8f6 Bug 1757833 - Extract methods ScriptBytecodeCompress and ScriptBytecodeDecompress r=nbp
This leaves the code in ScriptLoader and ScriptLoadHandler a lot more readable.

ScriptBytecodeCompressedDataLayout and ScriptBytecodeDataLayout simplify
locating data in the ScriptLoadRequest bytecode buffer when compressing and
decompressing it.

The interface is still error-prone. For example, these classes don't check
that the returned pointers are within the bounds of the buffer.

Differential Revision: https://phabricator.services.mozilla.com/D145011
2022-05-18 21:03:48 +00:00
Sebastian Hengst e33f3602b0 Backed out 6 changesets (bug 1757833) for Linux base toolchains build failure
Backed out changeset c8117edaf054 (bug 1757833)
Backed out changeset a46efd9967d0 (bug 1757833)
Backed out changeset f33955b6a7cc (bug 1757833)
Backed out changeset 71f1afa82581 (bug 1757833)
Backed out changeset 868407dccba9 (bug 1757833)
Backed out changeset 79873d83d02b (bug 1757833)
2022-05-17 19:46:50 +02:00
Bryan Thrall 19691282ac Bug 1757833 - Add PerfStat probes for bytecode cache reads, writes, compression, and decompression r=nbp,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D145012
2022-05-17 16:29:05 +00:00
Bryan Thrall f9ee16c613 Bug 1757833 - Add Profiler markers to track compression cost r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D144738
2022-05-17 16:29:04 +00:00
Bryan Thrall 1b711031b7 Bug 1757833 - Add browser.cache.jsbc_compression_level static preference r=nbp
This simplifies profiling since now we can see the results within a single build
based on the preference (though there is still a slight cost to copying the
bytecode).

Setting to (the default) 0 disables compression.

Differential Revision: https://phabricator.services.mozilla.com/D144737
2022-05-17 16:29:04 +00:00
Bryan Thrall 647c123ffc Bug 1757833 - Extract methods ScriptBytecodeCompress and ScriptBytecodeDecompress r=nbp
This leaves the code in ScriptLoader and ScriptLoadHandler a lot more readable.

ScriptBytecodeCompressedDataLayout and ScriptBytecodeDataLayout simplify
locating data in the ScriptLoadRequest bytecode buffer when compressing and
decompressing it.

The interface is still error-prone. For example, these classes don't check
that the returned pointers are within the bounds of the buffer.

Differential Revision: https://phabricator.services.mozilla.com/D145011
2022-05-17 16:29:03 +00:00