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

Method scompare

src/hx/cppia/CppiaCompiler.cpp:532–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531
532 JumpId scompare(JitCompare condition, const JitVal &v0, const JitVal &v1, LabelId andJump) HXCPP_OVERRIDE
533 {
534 switch(condition)
535 {
536 case cmpP_EQUAL:
537 callNative( (void *)strEqual, v0, v1 );
538 break;
539 case cmpP_NOT_EQUAL:
540 callNative( (void *)strNotEqual, v0, v1 );
541 break;
542 default:
543 setError("Unknown string compare");
544 }
545 return compare(cmpI_NOT_EQUAL, sJitReturnReg.as(jtInt), (int)0, andJump);
546 }
547
548 // Link
549 void comeFrom(JumpId inJump) HXCPP_OVERRIDE

Callers 1

genCodeMethod · 0.80

Calls 2

compareFunction · 0.85
asMethod · 0.80

Tested by

no test coverage detected