MCPcopy Create free account
hub / github.com/ZDoom/Raze / EmitBOUND_K

Method EmitBOUND_K

source/common/scripting/jit/jit_flow.cpp:292–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void JitCompiler::EmitBOUND_K()
293{
294 auto cursor = cc.getCursor();
295 auto label = cc.newLabel();
296 cc.bind(label);
297 auto call = CreateCall<void, int, int>(&JitCompiler::ThrowArrayOutOfBounds);
298 call->setArg(0, regD[A]);
299 call->setArg(1, asmjit::imm(konstd[BC]));
300 cc.setCursor(cursor);
301
302 cc.cmp(regD[A], (int)konstd[BC]);
303 cc.jae(label);
304
305 JitLineInfo info;
306 info.Label = label;
307 info.LineNumber = sfunc->PCToLine(pc);
308 LineInfo.Push(info);
309}
310
311void JitCompiler::EmitBOUND_R()
312{

Callers

nothing calls this directly

Calls 8

immFunction · 0.85
getCursorMethod · 0.80
PCToLineMethod · 0.80
newLabelMethod · 0.45
bindMethod · 0.45
setArgMethod · 0.45
setCursorMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected