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

Method genCode

src/hx/cppia/Cppia.cpp:7484–7504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7482
7483 #ifdef CPPIA_JIT
7484 void genCode(CppiaCompiler *compiler, const JitVal &inDest, ExprType destType) HXCPP_OVERRIDE
7485 {
7486 if (destType==etInt)
7487 {
7488 value->genCode(compiler, sJitTemp0.as(jtInt), etInt);
7489 compiler->negate(inDest, sJitTemp0.as(jtInt) );
7490 }
7491 else
7492 {
7493 value->genCode(compiler, sJitTempF0, etFloat);
7494 if (destType==etFloat)
7495 {
7496 compiler->negate(inDest.as(jtFloat), sJitTempF0 );
7497 }
7498 else
7499 {
7500 compiler->negate(sJitTempF0, sJitTempF0);
7501 compiler->convert(sJitTempF0, etFloat, inDest, destType);
7502 }
7503 }
7504 }
7505 #endif
7506};
7507

Callers

nothing calls this directly

Calls 4

asMethod · 0.80
negateMethod · 0.80
convertMethod · 0.80
genCodeMethod · 0.45

Tested by

no test coverage detected