MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / reinit

Method reinit

lib/asmjit/asmjit/core/codeholder.cpp:271–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271Error CodeHolder::reinit() noexcept {
272 // Cannot reinitialize if it's not initialized.
273 if (ASMJIT_UNLIKELY(!is_initialized())) {
274 return make_error(Error::kNotInitialized);
275 }
276
277 CodeHolder_reset_sections_and_containers(this, ResetPolicy::kSoft);
278
279 // Create a default section and insert it to the `_sections` array.
280 (void)CodeHolder_init_section_storage(this);
281 CodeHolder_add_text_section(this);
282
283 BaseEmitter* emitter = _attached_first;
284 while (emitter) {
285 emitter->on_reinit(*this);
286 emitter = emitter->_attached_next;
287 }
288
289 return Error::kOk;
290}
291
292void CodeHolder::reset(ResetPolicy reset_policy) noexcept {
293 if (is_initialized()) {

Callers 12

bench_codeholderFunction · 0.80
bench_assemblerFunction · 0.80
bench_assembler_funcFunction · 0.80
bench_assembler_func_rtFunction · 0.80
bench_builderFunction · 0.80
bench_builder_funcFunction · 0.80
bench_compilerFunction · 0.80
bench_compiler_funcFunction · 0.80
bench_compiler_func_rtFunction · 0.80
run_archMethod · 0.80
benchFunction · 0.80

Calls 6

is_initializedFunction · 0.85
make_errorFunction · 0.85
on_reinitMethod · 0.45

Tested by

no test coverage detected