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

Method JumpIfCondition

source/emulation/cpu/x32/jitX86CodeGen.cpp:2925–2943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2923}
2924
2925void JitX86CodeGen::JumpIfCondition(JitConditional condition, U32 address) {
2926 Label label;
2927
2928 bool negative = false;
2929 RegPtr reg;
2930
2931 preIfCondition(condition, negative, reg);
2932
2933 if (!opLabels.get(address, label)) {
2934 label = compiler.new_label();
2935 opLabels.set(address, label);
2936 }
2937 compiler.test(R32(reg), R32(reg));
2938 if (negative) {
2939 compiler.jz(label);
2940 } else {
2941 compiler.jnz(label);
2942 }
2943}
2944
2945void JitX86CodeGen::IfDF() {
2946 Label label = compiler.new_label();

Callers

nothing calls this directly

Calls 4

R32Function · 0.70
getMethod · 0.45
new_labelMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected