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