From: fennecdjay Date: Wed, 29 Jun 2022 15:03:32 +0000 (+0200) Subject: :art: change emit call X-Git-Tag: nightly~264^2~125 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1f8ffc4e97a70c33a1345c09e8f55d5b3b4165ca;p=gwion.git :art: change emit call --- diff --git a/src/emit/emit.c b/src/emit/emit.c index ec6ae806..abc2f703 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1616,7 +1616,12 @@ ANN m_bool emit_exp_call1(const Emitter emit, const Func f, else if (unlikely(!f->code && emit->env->func != f)) { if (tmpl) CHECK_BB(emit_template_code(emit, f)); else CHECK_BB(emit_ensure_func(emit, f)); - } else push_func_code(emit, f); + } else { + if(!f->value_ref->from->owner_class || + GET_FLAG(f->value_ref->from->owner_class, final) || + GET_FLAG(f->value_ref->from->owner_class, static)) + push_func_code(emit, f); + } call_finish(emit, f, is_static); emit->status = status; return GW_OK;