a32_emit_x64: std::move A32::UserConfig in the constructor

This avoids a few redundant atomic increments and decrements,
considering the UserConfig instance contains a std::array of
std::shared_ptr<Coprocessor> instances.
This commit is contained in:
Lioncash 2018-08-02 21:12:17 -04:00 committed by MerryMage
parent b098c650df
commit 54d8552177

View file

@ -6,6 +6,7 @@
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>
#include <utility>
#include <fmt/ostream.h> #include <fmt/ostream.h>
@ -75,7 +76,7 @@ bool A32EmitContext::FPSCR_DN() const {
} }
A32EmitX64::A32EmitX64(BlockOfCode& code, A32::UserConfig config, A32::Jit* jit_interface) A32EmitX64::A32EmitX64(BlockOfCode& code, A32::UserConfig config, A32::Jit* jit_interface)
: EmitX64(code), config(config), jit_interface(jit_interface) : EmitX64(code), config(std::move(config)), jit_interface(jit_interface)
{ {
GenMemoryAccessors(); GenMemoryAccessors();
code.PreludeComplete(); code.PreludeComplete();