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

Method genCode

src/hx/cppia/Cppia.cpp:6869–6891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6867
6868 #ifdef CPPIA_JIT
6869 void genCode(CppiaCompiler *compiler, const JitVal &inDest, ExprType destType) HXCPP_OVERRIDE
6870 {
6871 if (destType==etVoid)
6872 {
6873 left->genCode(compiler,JitVal(),etVoid);
6874 right->genCode(compiler,JitVal(),etVoid);
6875 }
6876 else
6877 {
6878 JitTemp lval(compiler,jtFloat);
6879 left->genCode(compiler,lval,etFloat);
6880 right->genCode(compiler,sJitTempF0,etFloat);
6881 if (destType==etFloat)
6882 {
6883 compiler->fdiv(inDest,lval,sJitTempF0);
6884 }
6885 else
6886 {
6887 compiler->fdiv(sJitTempF0,lval,sJitTempF0);
6888 compiler->convert(sJitTempF0, etFloat, inDest, destType);
6889 }
6890 }
6891 }
6892 #endif
6893
6894};

Callers

nothing calls this directly

Calls 4

JitValClass · 0.85
fdivMethod · 0.80
convertMethod · 0.80
genCodeMethod · 0.45

Tested by

no test coverage detected