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

Method JumpIfCondition

source/emulation/cpu/armv8/jitArmV8CodeGen.cpp:3254–3271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3252}
3253
3254void JitArmV8CodeGen::JumpIfCondition(JitConditional condition, U32 address) {
3255 Label label;
3256
3257 bool negative = false;
3258 RegPtr reg;
3259
3260 preIfCondition(condition, negative, reg);
3261
3262 if (!opLabels.get(address, label)) {
3263 label = compiler.new_label();
3264 opLabels.set(address, label);
3265 }
3266 if (negative) {
3267 compiler.cbz(R32(reg), label);
3268 } else {
3269 compiler.cbnz(R32(reg), label);
3270 }
3271}
3272
3273U32 JitArmV8CodeGen::MarkJumpLocation() {
3274 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