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

Method genCode

src/hx/cppia/StringBuiltin.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 *ioValue = ioValue->substring(start, Dynamic(end));
66 }
67 void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE
68 {
69 JitTemp ioValue(compiler,jtString);
70 JitTemp startVal(compiler,jtInt);
71
72 strVal->genCode(compiler, ioValue, etString);
73 a0->genCode(compiler, startVal, etInt);
74 a1->genCode(compiler, sJitArg2, etObject);
75 compiler->callNative( SUBSTR ? (void *)runSubstr : (void *)runSubstring, ioValue, startVal, sJitArg2.as(jtPointer) );
76 compiler->convert(ioValue, etString, inDest, destType);
77 }
78 #endif
79};
80

Callers

nothing calls this directly

Calls 4

callNativeMethod · 0.80
asMethod · 0.80
convertMethod · 0.80
genCodeMethod · 0.45

Tested by

no test coverage detected