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

Method genCode

src/hx/cppia/StringBuiltin.cpp:379–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 return ioValue->lastIndexOf(*sought, Dynamic(first));
378 }
379 void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE
380 {
381 JitTemp value(compiler,jtString);
382 JitTemp soughtTemp(compiler,jtString);
383
384 strVal->genCode(compiler, value, etString);
385 sought->genCode(compiler, soughtTemp, etString);
386 start->genCode(compiler, sJitArg2, etObject);
387 compiler->callNative( LAST ? (void *)runLastIndexOf : (void *)runIndexOf, value, soughtTemp, sJitArg2.as(jtPointer) );
388 compiler->convertReturnReg(etInt, inDest, destType);
389 }
390 #endif
391
392};

Callers

nothing calls this directly

Calls 4

callNativeMethod · 0.80
asMethod · 0.80
convertReturnRegMethod · 0.80
genCodeMethod · 0.45

Tested by

no test coverage detected