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

Method finishGeneration

src/hx/cppia/CppiaCompiler.cpp:338–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 CppiaFunc finishGeneration() HXCPP_OVERRIDE
339 {
340 for(int i=0;i<uncaught.size();i++)
341 comeFrom(uncaught[i]);
342 uncaught.setSize(0);
343
344 if (onReturn)
345 onReturn(this, onReturnStackSize);
346
347 sljit_emit_return(compiler, SLJIT_UNUSED, SLJIT_UNUSED, 0);
348 CppiaFunc func = (CppiaFunc)sljit_generate_code(compiler);
349 sljit_free_compiler(compiler);
350 compiler = 0;
351 return func;
352 }
353
354
355 int allocTempSize(int size) HXCPP_OVERRIDE

Callers 1

compileMethod · 0.80

Calls 6

onReturnFunction · 0.85
sljit_free_compilerFunction · 0.85
setSizeMethod · 0.80
sljit_emit_returnFunction · 0.50
sljit_generate_codeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected