| 3203 | |
| 3204 | #ifdef CPPIA_JIT |
| 3205 | void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE |
| 3206 | { |
| 3207 | JitTemp functionObject(compiler, jtPointer); |
| 3208 | func->genCode(compiler, functionObject, etObject ); |
| 3209 | |
| 3210 | { |
| 3211 | AutoFramePos frame(compiler); |
| 3212 | |
| 3213 | for(int a=0;a<args.size();a++) |
| 3214 | { |
| 3215 | args[a]->genCode(compiler, JitFramePos(compiler->getCurrentFrameSize(),etObject), etObject); |
| 3216 | compiler->addFrame(etObject); |
| 3217 | } |
| 3218 | // restore frame size |
| 3219 | } |
| 3220 | |
| 3221 | compiler->add(sJitCtxFrame, sJitFrame, compiler->getCurrentFrameSize()); |
| 3222 | |
| 3223 | compiler->callNative((void *)callDynamic,sJitCtx,functionObject,JitVal( (int)args.size() ) ); |
| 3224 | |
| 3225 | compiler->checkException(); |
| 3226 | if (destType!=etVoid) |
| 3227 | compiler->convertResult( etObject, inDest, destType ); |
| 3228 | } |
| 3229 | #endif |
| 3230 | }; |
| 3231 |
nothing calls this directly
no test coverage detected