Bug 1832044 - Part 4: Move StableCellHasher method definitions to header file r=sfink
commit2b3a9d811c93f238fdfab1426886a3adc79f5114
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 10 May 2023 08:27:02 +0000 (10 08:27 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 10 May 2023 08:27:02 +0000 (10 08:27 +0000)
treead1901b8a6556adba64b1b942d63d6293495acdf
parentb3d800a45475dc69249fbe0b9992e27c1e11dd45
Bug 1832044 - Part 4: Move StableCellHasher method definitions to header file r=sfink

Finally we can move these methods to StableCellHasher-inl.h and allow them to
be inlined.

Local testing shows this reduces the time taken by the weakmap benchark from
49.9 to 47.4 ns, a reduction of 5%.

Depends on D177527

Differential Revision: https://phabricator.services.mozilla.com/D177528
14 files changed:
js/src/debugger/Debugger.cpp
js/src/debugger/DebuggerMemory.cpp
js/src/debugger/Environment.cpp
js/src/debugger/NoExecute.cpp
js/src/debugger/Object.cpp
js/src/gc/Barrier.cpp
js/src/gc/StableCellHasher-inl.h
js/src/gc/WeakMap-inl.h
js/src/jit/Ion.cpp
js/src/vm/EnvironmentObject.cpp
js/src/vm/SavedStacks.cpp
js/src/vm/UbiNode.cpp
js/src/wasm/WasmJS.cpp
js/src/wasm/WasmTable.cpp