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

Function genCode

src/hx/cppia/Cppia.cpp:451–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450 #ifdef CPPIA_JIT
451 void genCode(CppiaCompiler *compiler, const JitVal &inDest, ExprType destType) HXCPP_OVERRIDE
452 {
453 int n = expressions.size();
454 int lineOffset = compiler->getLineOffset();
455 //compiler->trace(filename);
456 for(int i=0;i<n;i++)
457 {
458 if (lineOffset)
459 compiler->move( sJitFrame.star(etInt)+lineOffset, expressions[i]->line );
460 //compiler->traceInt("line",expressions[i]->line);
461 if (i<n-1)
462 expressions[i]->genCode(compiler);
463 else
464 expressions[i]->genCode(compiler, inDest, destType);
465 }
466 }
467 #endif
468
469};

Callers 1

genCompareMethod · 0.85

Calls 5

getLineOffsetMethod · 0.80
moveMethod · 0.80
sizeMethod · 0.45
starMethod · 0.45
genCodeMethod · 0.45

Tested by

no test coverage detected