- changed a bunch of manual address additions in string opcodes to leas

This commit is contained in:
Jonathan Russell 2018-09-15 21:09:43 +01:00
commit 69bc39914b
3 changed files with 12 additions and 27 deletions

View file

@ -265,8 +265,7 @@ void JitCompiler::Setup()
FString regname;
regname.Format("regS%d", i);
regS[i] = cc.newIntPtr(regname.GetChars());
cc.mov(regS[i], frameS);
if (i != 0) cc.add(regS[i], (int)(i * sizeof(FString)));
cc.lea(regS[i], x86::ptr(frameS, i * sizeof(FString)));
}
}
if (sfunc->NumRegA > 0)