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

Method genCode

src/hx/cppia/Cppia.cpp:7635–7651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7633
7634 #ifdef CPPIA_JIT
7635 void genCode(CppiaCompiler *compiler, const JitVal &inDest, ExprType destType) HXCPP_OVERRIDE
7636 {
7637 if (destType==etVoid)
7638 {
7639 left->genCode(compiler,JitVal(),etVoid);
7640 right->genCode(compiler,JitVal(),etVoid);
7641 }
7642 else
7643 {
7644 JitTemp leftRightVal(compiler,etFloat, sizeof(Float)*2 );
7645 left->genCode(compiler, leftRightVal, etFloat);
7646 right->genCode(compiler, leftRightVal + sizeof(Float), etFloat);
7647 compiler->add(sJitArg0, leftRightVal.getReg(), leftRightVal.offset );
7648 compiler->callNative((void *)double_mod, sJitArg0 );
7649 compiler->convert(leftRightVal,etFloat,inDest,destType);
7650 }
7651 }
7652 #endif
7653};
7654

Callers

nothing calls this directly

Calls 6

JitValClass · 0.85
getRegMethod · 0.80
callNativeMethod · 0.80
convertMethod · 0.80
genCodeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected