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

Method add

src/hx/cppia/CppiaCompiler.cpp:1181–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1179
1180
1181 void add(const JitVal &inDest, const JitVal &v0, const JitVal &v1 ) HXCPP_OVERRIDE
1182 {
1183 if (v0.type==jtFloat)
1184 {
1185 emit_fop2(SLJIT_ADD_F64, inDest, v0, v1);
1186 }
1187 else if (v0.reg0==sLocalReg && v0.position==jposRegister)
1188 {
1189 sljit_s32 tDest = getTarget(inDest);
1190 sljit_s32 t0 = getTarget(v0);
1191 sljit_s32 t1 = getTarget(v1);
1192 if (compiler)
1193 sljit_get_local_base(compiler, tDest, getData(inDest), v1.offset );
1194 }
1195 else if (v0.type==jtPointer)
1196 {
1197 emit_op2(SLJIT_ADD, inDest, v0, v1);
1198 }
1199 else
1200 {
1201 emit_op2(SLJIT_ADD32, inDest, v0, v1);
1202 }
1203 }
1204
1205
1206 void bitNot(const JitVal &inDest, const JitVal &v0) HXCPP_OVERRIDE

Callers 15

genCodeMethod · 0.45
genFunctionCallFunction · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genSetterFunction · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45
genCodeMethod · 0.45

Calls 1

sljit_get_local_baseFunction · 0.50

Tested by

no test coverage detected