Bug
1837620 - Part 3: Don't discard JIT code twice if we sweep in slice started in prepare phase r=sfink
We skip the extra discard if we run all the way through to sweeping without
yielding, but if we start a slice in the prepare phase we will do an
unnecessary extra discard. This is probablly quite common since we always yield
at the start of an incremental GC, and budget can be long if we run in idle
time.
Using the flag rather than checking initialState makes it clearer what's going on.
Differential Revision: https://phabricator.services.mozilla.com/
D181983