Bug
1875096 - Part 1: Only apply StepBackToLeadSurrogate for atom matches. r=iain
It's no longer necessary to adjust `lastIndex` before calling into irregexp,
because irregexp has been fixed a while ago to correctly handle split surrogate
pairs, cf. `v8::internal::RegExpCompiler::OptionallyStepBackToLeadSurrogate`.
That means we only need to adjust `lastIndex` when performing atom matches,
which allows to remove `StepBackToLeadSurrogate` from code-gen and move the
corresponding C++ code from "builtin/RegExp.cpp" to "vm/RegExpObject.cpp".
Differential Revision: https://phabricator.services.mozilla.com/
D198821