MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / compare

Method compare

src/hx/cppia/CppiaCompiler.cpp:462–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460 }
461
462 JumpId compare(JitCompare condition, const JitVal &v0, const JitVal &v1, LabelId andJump) HXCPP_OVERRIDE
463 {
464 sljit_sw t0 = getTarget(v0);
465 sljit_sw t1 = getTarget(v1);
466 if (compiler)
467 {
468 JumpId result = sljit_emit_cmp(compiler, condition, t0, getData(v0), t1, getData(v1) );
469 if (andJump)
470 sljit_set_label(result, andJump);
471 return result;
472 }
473 return 0;
474 }
475
476
477 JumpId fcompare(JitCompare condition, const JitVal &v0, const JitVal &v1, LabelId andJump,bool inReverse) HXCPP_OVERRIDE

Callers 15

genCompareMethod · 0.45
genCompareMethod · 0.45
genCompareMethod · 0.45
genFunctionResultFunction · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genWriteBarrierFunction · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
stringCompareMethod · 0.45

Calls 2

sljit_set_labelFunction · 0.85
sljit_emit_cmpFunction · 0.50

Tested by

no test coverage detected