mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-17 02:02:08 -07:00
Avoid buffer allocations in CodeGenContext.GetCode(). Avoid stream allocations in PTC.PtcInfo.
Refactoring/nits.
This commit is contained in:
@@ -190,6 +190,11 @@ namespace ARMeilleure.CodeGen.X86
|
||||
|
||||
byte[] code = context.GetCode();
|
||||
|
||||
if (ptcInfo != null)
|
||||
{
|
||||
ptcInfo.Code = code;
|
||||
}
|
||||
|
||||
Logger.EndPass(PassName.CodeGeneration);
|
||||
|
||||
return new CompiledFunction(code, unwindInfo);
|
||||
|
Reference in New Issue
Block a user