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

Method genCode

src/hx/cppia/Cppia.cpp:2023–2034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2021
2022 #ifdef CPPIA_JIT
2023 void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE
2024 {
2025 thisExpr->genCode(compiler, sJitTemp0, etObject);
2026 genNullReferenceExceptionCheck(compiler,sJitTemp0);
2027 if (destType==etInt)
2028 compiler->move( inDest, sJitTemp0.star( jtInt, offsetof(hx::EnumBase_obj, index) ) );
2029 else
2030 {
2031 compiler->move( sJitTemp0, sJitTemp0.star( jtInt, offsetof(hx::EnumBase_obj, index) ) );
2032 compiler->convert( sJitTemp0, etInt, inDest, destType );
2033 }
2034 }
2035 #endif
2036};
2037

Callers

nothing calls this directly

Calls 5

moveMethod · 0.80
convertMethod · 0.80
genCodeMethod · 0.45
starMethod · 0.45

Tested by

no test coverage detected