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

Method runObject

src/hx/cppia/ArrayBuiltin.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 return ValToString(elem);
155 }
156 hx::Object *runObject(CppiaCtx *ctx) HXCPP_OVERRIDE
157 {
158 Array_obj<ELEM> *thisVal = reinterpret_cast<Array_obj<ELEM>*>(thisExpr->runObject(ctx));
159 BCR_CHECK;
160 int i = args[0]->runInt(ctx);
161 BCR_CHECK;
162 ELEM &elem = thisVal->Item(i);
163 FUNC::run(elem, ctx, args[1]);
164 #ifdef HXCPP_GC_GENERATIONAL
165 if (hx::ContainsPointers<ELEM>())
166 HX_OBJ_WB_CTX(thisVal,hx::PointerOf(elem),ctx);
167 #endif
168 return Dynamic(elem).mPtr;
169 }
170
171 #ifdef CPPIA_JIT
172

Callers 8

runIntMethod · 0.45
runFloatMethod · 0.45
runStringMethod · 0.45
runIntMethod · 0.45
runFloatMethod · 0.45
runStringMethod · 0.45
runObjectMethod · 0.45
runVoidMethod · 0.45

Calls 4

runFunction · 0.85
PointerOfFunction · 0.85
DynamicClass · 0.50
runIntMethod · 0.45

Tested by

no test coverage detected