| 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 | }; |
nothing calls this directly
no test coverage detected