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

Method genCompare

src/hx/cppia/Cppia.cpp:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102JumpId CppiaExpr::genCompare(CppiaCompiler *compiler,bool inReverse,LabelId inLabel)
103{
104 genCode(compiler,sJitTemp0.as(jtInt), etInt);
105 // inReverse = false -> jump if not 0
106 // inReverse = true -> jump if zero
107 return compiler->compare(inReverse ? cmpI_EQUAL : cmpI_NOT_EQUAL, sJitTemp0, (int)0, inLabel);
108}
109
110#endif
111

Callers 6

genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCompareMethod · 0.45
genCompareMethod · 0.45
genCompareMethod · 0.45

Calls 3

genCodeFunction · 0.85
asMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected