- changed a bunch of manual address additions in string opcodes to leas
This commit is contained in:
parent
3477b22714
commit
69bc39914b
3 changed files with 12 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue