MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / init

Method init

source/emulation/cpu/jit/jit.cpp:849–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849void JitFlags::init(Jit* jit, CPU* cpu, DecodedOp* op, LazyFlagType flagsType, RegPtr cf) {
850 flags = lazyFlags[flagsType];
851 if (flags) {
852 needsToSetFlags = op->needsToSetFlags(cpu);
853 }
854 if (needsToSetFlags) {
855 if ((flags && flags->usesOldCF(needsToSetFlags)) || (!(instructionInfo[op->inst].flagsSets & CF) && op->getNeededFlagsAfter(CF))) {
856 if (cf) {
857 oldCF = cf;
858 } else {
859 oldCF = jit->getCF();
860 }
861 }
862 }
863}
864
865JitFlags::JitFlags(Jit* jit, CPU* cpu, DecodedOp* op, LazyFlagType flagsType, RegPtr src, RegPtr cf, bool copySrc) {
866 init(jit, cpu, op, flagsType, cf);

Callers 2

JitArmV8CodeGenMethod · 0.45
JitX86CodeGenMethod · 0.45

Calls 4

needsToSetFlagsMethod · 0.80
getNeededFlagsAfterMethod · 0.80
usesOldCFMethod · 0.45
getCFMethod · 0.45

Tested by

no test coverage detected